Jump to content

LINUX: Reset root account with AD priv account


Oscar

Recommended Posts

Hi Guys,

 

Can you please tell me if there is a way to reset the root account on a linux server with an AD account with privilege? We do this with windows server.

On linux, i can reset other accounts password but not the root.

 

We are running build 8865

 

Thank you!

Link to comment
Share on other sites

That didnt seem to work unfortunately, unless im doing something wrong.

 

I vi /etc/sudoers file and add the follow at the very bottom:

 

## Enable sudo rootpw for Passwordstate Privileged Account Defaults

Defaults:<svc_password_reset> rootpw

image.png.9266418abe72e1208fd44db7490a1714.png

 

Save it, then try to run the password reset again, and still nothing. The password to root is unchanged.

 

 

Link to comment
Share on other sites

Hi Oscar,  

 

could you try removing the  < > in the username and see if that helps?

 

## Enable sudo rootpw for Passwordstate Privileged Account Defaults

Defaults:svc_password_reset rootpw

 

 

If that doesn't help then we're unsure sorry, as we do not have an environment set up to use AD accounts with Linux machines.

 

 

Regards,

Support

Link to comment
Share on other sites

  • 2 months later...

I found this post as I need the same functionality. I was able to get it to work by adding my full domain to the user account. Example below.

 

## Enable sudo rootpw for Passwordstate Privileged Account Defaults

Defaults:svc_password_reset@example.com rootpw

 

I personally added it to a /etc/sudoers.d/some_sudoers_file as I do not like to modify the original sudoers file, /etc/sudoers, if I can help it. It works in either of these locations.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...