Mailinglist Archive: opensuse (1377 mails)

< Previous Next >
[SuSE Linux] Re: SUDO
  • From: alexm@xxxxxxxxxxxxxxxxxx (alexm)
  • Date: Thu, 27 Aug 1998 17:56:33 -0500 (CDT)
  • Message-id: <Pine.LNX.3.96.980827174722.28051A-100000@xxxxxxxxxxxxxxxxxx>



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@xxxxxxxx with
this text in its body: unsubscribe suse-linux-e

< Previous Next >
Follow Ups
References