Pratul Kalia wrote:
> 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.
>
> Maybe I am doing something stupid? Help!
> pratul
>
>   

My best guess is you are trying to start some UI application lets say 
synaptic which needs superuser
permissions to work properly or even start. You have given sudo 
<appname> in gnome session but
its not working. To solve that there are 2 solutions I can recommend 
though i must say they are a
MAJOR security loop hole in system.
1. Run this on the app
 # chmod u+s <appname>
This will let ANY user run the app as super user without sudo
2. Or
#visudo
and change your sudo entry to look like this
<user>   ALL=NOPASSWD:ALL
This will give the specific user rights to EXECUTE anything as superuser 
without giving passwd but
still needing sudo (This is probably what you want if you are running a 
desktop)

--MSN

_______________________________________________
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]/

Reply via email to