alexm <suse-linux-e@suse.com> writes:
My question is about SUDO.
How I can start my script (/usr/local/bin/zzzz.pl only) as the superuser ? And I won't to enter password. My user is - "egor".
my /etc/sudoers file like this
#sudoers file # # # # egor purple=NOPASSWD: /usr/local/bin/zzzz.pl
Is it right?
ôÅÐÅÒØ ÐÏ ÒÕÓÓËÉ! íÏÊ ×ÏÐÒÏÓ Ï SUDO!!!! á ÎÅ Ï ÔÏÍ, ËÁË ÓÍÅÎÉÔØ ÐÅÒÍÉÓÓÉÉ!!! êÏÐÅÒÎÙÊ ÔÅÁÔÒ! ÷ ÎÁÔÕÒÅ! P.S. ïÔ×ÅÔ "ÞÉÔÁÊ ÍÁÎÙ" ÍÅÎÑ ÎÅ ÕÓÔÒÁÉ×ÁÅÔ ÔÏÖÅ!
I just have a suggestion. What you might want to do is to change permissions on the zzzz.pl so that it runs with the effective id of root. Remember, how the passwd command works? So, change the owner to root, then run: # chmod 4755 zzzz.pl # ls -l zzzz.pl --> -rwsr-xr-x root someuser size ......... which basically means that no matter who runs the program it is executed with the effective id of root (which is pretty cool). Is that that you want? Also, if you have a brief access to somebody's system as a root, you can do lots of things with the chmod command, hehehe.
By, the way this is how I run Quake on my system to solve the i/o permissions.
Hope I helped, v nature.
alexm
Nick K. Kozubsky nick@belam.koenig.ru Tel/FAX: +7 0112 350601 Rem: No Microsoft products were used in the production of this message. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e