Antoine Jacoutot wrote: > On Thursday 20 February 2003 16:17, Dan Nelson wrote: [ ... ]
The MINUID and MINGID allow to create passwd.by* only with account which UID are equal or higher than MINUID and group.by* only with groups which GID are equal or higher than MINGID.20-sec% MINUID=50
21-sec% awk -F: "{if (\$3 > $MINUID) print }" /etc/passwd
bind:*:53:53:Bind Sandbox:/:/sbin/nologin
uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/libexec/uucp/uucico
xten:*:67:67:X-10 daemon:/usr/local/xten:/sbin/nologin
pop:*:68:6:Post Office Owner:/nonexistent:/sbin/nologin
www:*:80:80:World Wide Web Owner:/nonexistent:/sbin/nologin
nobody:*:65534:65534:Unprivileged user:/nonexistent:/sbin/nologin
chuck:*:1000:1000:Charles Swiger:/home/chuck:/bin/zsh
squid:*:3128:3128:Squid Cache:/home/squid:/sbin/nologin
...or `ypcat`, or however you get a flatfile version of /etc/passwd.
Use 'vipw' to edit /etc/passwd safely.So I would change the original /etc/master.passwd ?????? Is that OK, it looks like it's not.You don't need to copy /var/yp/master.passwd to edit it; just make the change and run "make".
However, the point of NIS is to provide a network-based source of users which are in addition to the users in the local /etc/passwd database. On your YP/NIS master server, cd to "/var/yp" and do a make. That will propogate updated versions of the passwd.foo NIS maps to the NIS clients.
-Chuck
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message