Jump to content

LINUX: Reset root account with AD priv account


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 post
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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...