View Full Version : How to: change root password?
johnswb
November 14th, 2007, 09:57 PM
OK, I give up... I've looked on the forum for users that had problems with the root account. I can not do anything. I just install Ubuntu server 7.10 and now when I do "sudo vi anything" I get the following.
"
john is not in the sudoers file. This incident will be reported.
john@userver:/$ sendmail: fatal: open /etc/postfix/main.cf: No such file ro directory"
if I do "sudo passwd root" I get the same error.
I really do not want to reinstall if I don't have too. My guess is I will run in to the same problem.
Vitamin-Carrot
November 14th, 2007, 09:58 PM
cant you add test user account to the root usergroup?
johnswb
November 14th, 2007, 10:01 PM
I have an account called john that I created in the beginning and I still get the same thing.
aysiu
November 14th, 2007, 10:15 PM
Try this:
http://www.psychocats.net/ubuntu/sudo
johnswb
November 14th, 2007, 11:36 PM
Thank you for replying, but I was still unable to logon as root or use sudo. I went ahead and reinstalled and this time I didn't install the mail server. All is good now. Again, thank you for replying to a noob.
MrSully
November 23rd, 2007, 08:25 AM
Thanks for posting back here John.... I had the same issue and also did a reinstall without the mail server.
Regards,
Sully
vinicius.vbf
November 23rd, 2007, 09:51 AM
What if you try:
# su -
?
techno-wiz
November 23rd, 2007, 10:05 AM
I had the same problem due to installing the mail server. Reinstalled without it and everything was fine.
trayor
November 23rd, 2007, 03:13 PM
Yep, I had the same problem and also re-installed without mailserver. Works OK.
thegnuguru
November 23rd, 2007, 05:17 PM
try booting into recovery mode and then
adduser yourusernamehere admin
I sometimes get the same thing that always works
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.