Antoine Jacoutot wrote:
> On Thursday 20 February 2003 16:17, Dan Nelson wrote:
[ ... ]
The MINUID and MINGID allow to create* only with account which UID are equal or higher than MINUID and* 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.

You don't need to copy
/var/yp/master.passwd to edit it; just make the change and run "make".
So I would change the original /etc/master.passwd ?????? Is that OK, it looks like it's not.
Use 'vipw' to edit /etc/passwd safely.

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 NIS maps to the NIS clients.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to