1835293 Members
2454 Online
110078 Solutions
New Discussion

Account disable

 
Manuel_8
Advisor

Account disable

Hello Guys,
I want excute /usr/lbin/modprpw command with user different from root.
For Example
I have an account disable on machine and I want rest its with /usr/lbin/modprpw -k root command, but I can use this command ONLY if I'm a superuser.
If somebody know another method to resolving this problem, please tell me.

Thanks
6 REPLIES 6
Bart_6
Advisor

Re: Account disable

try the setuid flag but be awre of the potential security risks.
oh no.... not THAT again
Alex Glennie
Honored Contributor

Re: Account disable

see http://www.courtesan.com/sudo/

"Sudo (superuser do) allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root while logging all commands and arguments. Sudo operates on a per-command basis,"
harry d brown jr
Honored Contributor

Re: Account disable

If you don't have sudo, get it from here:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.6/


live free or die
harry
Live Free or Die
Kellogg Unix Team
Trusted Contributor

Re: Account disable

If you have sudo installed on your server, you can selectively give this privelege to some users to execute these commands.

Rgds
...Manjeet
work is fun ! (my manager is standing behind me!!)
harry d brown jr
Honored Contributor

Re: Account disable

sudo ?

or

Make the script setuid to root

live free or die
harry
Live Free or Die
Wodisch
Honored Contributor

Re: Account disable

Hi,

add that command line to your SAM's options, then use "sam -r" to permit the plain user to have use ONLY that single option within SAM, and then tell him/her to use SAM...

FWIW,
Wodisch