Pratul Kalia <[EMAIL PROTECTED]> writes: > > This is something I have been battling for long. How can I set a > program to start using superuser privileges, when my computer boots? > Lets say I want a daemon to run the time I login, but it needs > superuser privileges to work properly. If i just add "sudo daemonname" > in gnome-sessions, it doesn't work. >
"it doesn't work" is too vague a description. Go through http://catb.org/~esr/faqs/smart-questions.html to understand how to ask questions the smart way. Then, give a clear, specific example; explain why you want to do it that way; and the discussion will be off to a better start. To try and answer your question already: There are standard documented ways of building a daemon from a skeleton. Your problem may be how you are using sudo (but the "it doesn't work" description won't help people understand what you want clearly enough). If you don't want a daemon, consider setting the process to run using cron's @reboot setting (see man 5 crontab). If you want something to start after you have logged in, consider putting it in your .xsession or your .bash_login. PJ _______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/
