Using chuser and stopudt without root

0

I am trying to create a user account that can preform certain commands via command line without having to login as root. The commands I want to run are stopudt, chuser, chpasswd. What I have tried is setting the admin flag to true and putting it in the security group... this allows me to run execute the command but it tells me I do not have permission as seen below:

$ chuser account_locked=true ds10
Error changing "account_locked" to "true" : You do not have permission.

Is there a way I can create a user account that has access to chuser, stopudt and chpasswd without root access? Thank you!

duckwizzle

Posted 2015-04-06T18:10:41.810

Reputation: 115

Answers

0

Yes, you can. Install and configure sudo package. This will permit you to do the task

Romeo Ninov

Posted 2015-04-06T18:10:41.810

Reputation: 2 062

1Thank you very much, this worked. I tried to upvote you but my rep is not high enough. – duckwizzle – 2015-04-06T18:40:15.640

Don't worry, glad to help you :) – Romeo Ninov – 2015-04-06T18:47:07.070