![]() |
|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
||||
![]()
If it's only the group file you hosed I'd suggest dropping to single user and restoring the group file. By the way, root and toor are not in the group file at all. Root is part of the wheel and operator groups, that's all.
|
|
||||
![]()
Ok...root is in the wheel group when I look at the current group file.
But trying to login as root gives me incorrect password. Trying to reset the password gives me unknown user. I think I'm missing something here, but I don't know what?
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
||||
![]()
Can't check that at the moment as ssh isn't working either it seems. But that's the first thing I'll do as soon as I get home.
I did have to adduser my normal user account also to get it to work. I was just uncomfortable doing such with root.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
||||
![]()
ok, root was not in /etc/passwd or /etc/master.passwd
I tried to restore /etc/passwd, /etc/master.passwd and group from a backup file I had but that did not work either. Any hints?
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
||||
![]()
toor didn't work.
sudo didn't work. I tried to adduser root and it said root exists, but when I tried passwd root it said no such user....
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
||||
![]()
It seems like your master.passwd is not in sync with its db. How about:
First, # vipw And add the following entry if you haven't already: Code:
root:*:0:0:Charlie &:/root:/bin/csh # pwd_mkdb (I don't have a test box in front of me to try that on, but it seems logical.) edit: Please back up your current /etc/passwd and /etc/master.passwd before attempting what I posted...
__________________
Kill your t.v. |
|
||||
![]()
OK...finally.
I got this right before seeing anomie's post. But after restoring /etc/master.passwd you need to do the following: Code:
pwd_mkdb -C /etc/master.passwd pwd_mkdb -p /etc/master.passwd pwd_mkdb /etc/master.passwd after that, I could passwd root to set the password!
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HOWTO: mounting an USB device as normal non-root user in OpenBSD | J65nko | Guides | 6 | 20th May 2017 12:03 PM |
Startx executes as root, "startx:not found" as user | Mr-Biscuit | NetBSD Installation and Upgrading | 4 | 27th May 2009 08:44 AM |
Run daemon as other user than root | phreud | FreeBSD General | 8 | 11th November 2008 04:11 AM |
Non-root user editing automatically mounted smb share | tad1214 | FreeBSD General | 8 | 8th July 2008 02:28 AM |
postfix + dovecot LDA: bounce, user unknown | cbrace | FreeBSD General | 1 | 9th May 2008 05:19 PM |