[SuSE Linux] SUDO
Hello. 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? 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
Nick K. Kozubsky wrote:
Hello.
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?
does not look realy bad. If you use the 'visudo' command as root, you start vi with an additional syntax check for sudo. my equivalent entry looks, howver a bit different: brauki slartibartfast=NOPASSWD:DOWN braukman slartibartfast=/sbin/halt NOPASSWD:ALL I forgot what it all meant, but it worked. have another look at the examples from the manpage, they were helpful to me. Jürgen -- ========================================== __ _ Juergen Braukmann mail: brauki@cityweb.de| / / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu| / /__/ / _ \/ // /\ \/ / ========================================== /____/_/_//_/\_,_/ /_/\_\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi,
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?
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 - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
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
participants (3)
-
alexm@hr60.tx.symbio.net
-
brauki@cityweb.de
-
nick@belam.gazinter.net