General discussion

Locked

System Administration

By rgooding ·
I added a user (adduser) with rights to allow for resetting of passwords. However, when attempting to reset, the adduser is being prompted for the user's old password. is there a way to get around this..just like if adduser was root.

Thanks
Richard

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

System Administration

by techrepublic In reply to System Administration

Not really, no.

The whole point of passwd asking for the user's old password is so that I can't come up to an unlocked terminal, and reset a user's password arbitrarily. You *could* set them a null password, but that has obvious security issues too!

Collapse -

System Administration

by techrepublic In reply to System Administration

It just occurred to me, you could use "sudo" to give them root access to only the passwd command.

This does have the obvious side effect of allowing them to change the root password, and do naughty stuff, but it is another option for you.

Collapse -

System Administration

by rgooding In reply to System Administration

Poster rated this answer

Collapse -

System Administration

by rgooding In reply to System Administration

Reason for request:

We have a user who is "familiar" with unix administration and wants him to support the user accounts, without giving him full root access.
I was hoping that there might be a way to give specific authority to certain users other that root.
Thanks again

Collapse -

System Administration

by talbotn In reply to System Administration

you can use sudo to give the user access to reset passwords as the root user. you can also restrict the options that they can pass to sudo so that the suer cannot reset the root password. Read the sudo man pages and documentation for specific help and sudo config details.

Collapse -

System Administration

by rgooding In reply to System Administration

Poster rated this answer

Collapse -

System Administration

by anp04 In reply to System Administration

Install sudo on you machine.

In the setting set
User_Alias PASS=<your user>
Cmnd_Alias PASSWORD=/usr/bin/passwd

and Finally,
PASS ALL=PASSWORD

Your power-user can then change the password by running: sudo /usr/bin/passwd

Collapse -

System Administration

by rgooding In reply to System Administration

Poster rated this answer

Collapse -

System Administration

by rgooding In reply to System Administration

This question was closed by the author

Back to Linux Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums