• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

Change root password from normal account

I would imagine this is not possible, however I do not have physical access to this machine, nor do I remember the root password for this server.  I do have my own account that has administrative privileges, however I'd like to recover the root password somehow.

The server is a FreeBSD box running just qmail acting as a mail relay server.  Any ideas as to how I can recover the root password using a normal account from a remote location?

Thanks for any advice.
0
JWeb Admin
Asked:
JWeb Admin
  • 2
  • 2
  • 2
1 Solution
 
ibu1Commented:
If you have administrative privileges to system means u can modify /etc/sudoers. Add any account to /etc/sudoers to grant access to all the commands like this
any ALL (ALL) ALL                                         -> any is the user name
save and exit

Now login as any account
do
# sudo passwd root
Enter password
Re-enter password


That's it
 

0
 
ibu1Commented:
Sorry,its

any ALL=(ALL) ALL                                         -> any is the user name
0
 
_iskywalker_Commented:
i am not sure, but if the sudoers dont work, try removing the file with  the passwordds (make a backup). then try to log in. be careful, i did not test it and i dont grant anything, i think it is VERY risky to do it, if yu dont have any manuall acces. if you have manual access, you could boot with a live cd, and repair, or change the thing without muich problem.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
JWeb AdminAuthor Commented:
There doesn't seem to be an /etc/sudoers file.  
0
 
_iskywalker_Commented:
a group?
can you install the sudo package? it is very simple in linux but i dont know if it works on freebsd
0
 
JWeb AdminAuthor Commented:
Thanks i'll give that a shot
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now