|
Linux Network Administrator Guide, Second EditionTo update the group ownerships of files, use a similar method with the gid instead of the uid, and chgrp instead of chown. Once you do this, the numerical uids and gids on your system will agree with those on all other hosts in your NIS domain. The next step is to add configuration lines to nsswitch.conf that enable NIS lookups for user and group information: # /etc/nsswitch.conf - passwd and group treatment passwd: nis files group: nis files This affects where the login command and all its friends look for user information. When a user tries to log in, login queries the NIS maps first, and if this lookup fails, falls back to the local files. Usually, you will remove almost all users from your local files, and only leave entries for root and generic accounts like mail in it. This is because some vital system tasks may have to map uids to usernames or vice versa. For example, administrative cron jobs may execute the su command to temporarily become news, or the UUCP subsystem may mail a status report. If news and uucp don't have entries in the local passwd file, these jobs will fail miserably during an NIS brownout ...» |
Код для вставки книги в блог HTML
phpBB
текст
|
|