Diskless question

Trond Endrestøl Trond.Endrestol at fagskolen.gjovik.no
Wed Apr 24 13:27:23 UTC 2013


On Wed, 24 Apr 2013 09:07-0400, Lowell Gilbert wrote:

> Bernt Hansson <bah at bananmonarki.se> writes:
> 
> > 2013-04-24 12:30, Arthur Chance skrev:
> >> On 04/24/13 09:18, Bernt Hansson wrote:
> >>> Hello list!
> >>>
> >>> I have set up a diskless machine with 8.3-stable and i as a user can log
> >>> in, but when I try to log in as root it won't work. How to resolv that
> >>> issue. I have tried with and without password but the computer said no.
> >>
> >> How did it say no? What does the entry for root in /etc/passwd say?
> >
> > $su
> > Sorry
> >
> > root:*:0:0:Charlie &:/root:/bin/csh
>        ^
>       / \
> 
> Root has no valid password. 
> 
> You'll need to go into single-user mode and either give it one or
> install sudo and add your regular user to the sudoers file.

Why look at the /etc/passwd file when the key files are:

* /etc/master.passwd
* /etc/spwd.db
* /etc/passwd
* /etc/pwd.db

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+


More information about the freebsd-questions mailing list