| Summary: | chown statement in /etc/rc fails if NIS is configured and root is not in passwd | ||
|---|---|---|---|
| Product: | Base System | Reporter: | damien <damien> |
| Component: | conf | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.1-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
damien
2000-09-22 20:44:38 UTC
Workstations takes a very long time to bood due to NIS timeout. The /etc/rc boot script has the following line: chown root:wheel /dev/tty[pqrsPQRS]* This statement occurs before NIS services are started (network_pass2). Because of this, the system will pause for a very long time at boot while it attempts to get the UID/GID from NIS until it times out. Fix: This problem is fixed by moving the 'chown' statement (as described above in /etc/rc) directly after NIS service startup (network_pass2). This allows the chown statement to properly get the UID/GID information it requires from NIS hence avoiding the timeout. How-To-Repeat: Setup a workstation to act as an NIS client. Install /etc/master.passwd with the following line only: +::::::::: Install /etc/group with the following line only: +:*:: Reboot the system. damien@carroll.com writes: > FreeBSD 4.1-STABLE workstation configured an an NIS client. > The /etc/master.password file contains only one entry: > > +::::::::: This is wrong. You should always have a root entry in your passwd file, even if you're using NIS. > The file /etc/group contains only one entry: > > +:*:: This is also wrong; you should always have a wheel entry in your group file, even if you're using NIS. DES -- Dag-Erling Smorgrav - des@ofug.org State Changed From-To: open->closed Pilot error. |