Solved

Change root password from normal account

Posted on 2006-11-20
6
189 Views
Last Modified: 2010-03-18
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
Comment
Question by:JWeb Admin
  • 2
  • 2
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
ibu1 earned 500 total points
Comment Utility
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
 
LVL 12

Expert Comment

by:ibu1
Comment Utility
Sorry,its

any ALL=(ALL) ALL                                         -> any is the user name
0
 
LVL 6

Expert Comment

by:_iskywalker_
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:JWeb Admin
Comment Utility
There doesn't seem to be an /etc/sudoers file.  
0
 
LVL 6

Expert Comment

by:_iskywalker_
Comment Utility
a group?
can you install the sudo package? it is very simple in linux but i dont know if it works on freebsd
0
 

Author Comment

by:JWeb Admin
Comment Utility
Thanks i'll give that a shot
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now