From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079034715756.tru64-unix-managers.marc@archive.invalid> From: Ian Mortimer Date: Thu, 21 Jan 1999 23:13:27 +0000 To: tru64-unix-managers Subject: [Q] NIS netgroup and `id -un` - additional X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079034715756 Hi DU Admins I noticed the id -un problem late yesterday but this morning I found a few more problems so I'll try again: I've just implemented a NIS netgroup to restrict access to a cluster of workstations.The netgroup is included like this in /etc/passwd: +@lusers: Previously it had the full NIS passwd map added with "+:". Now `id -un` gets `Could not get "user" information', whoami gets `Intruder alert' and ls -l shows the uid instead of the user name. Users (in the netgroup) can login; w, who, who -m, and who am i are all correct; id -u shows the correct uid; sendmail recognizes the users as local; /var/adm/sialog reports "Successful session authentication for _user_". It seems like this is the behaviour you would get when the effective user ID is not in /etc/passwd. It's not literally there but is supposed to be added by the "+@lusers:". This works okay with "+:" so does anyone know why it doesn't work with the netgroup? Things I tried which made no difference: Removed passwd.dir and passwd.pag. Rebuilt passwd.dir and passwd.pag. Tried "+@lusers::::::". Tried "+@lusers::0:0:::". The quick fix is to not use the netgroup but add each user individually to /etc/passwd like this: +user_1: +user_2: ... +user_n: While this works it has to be done for every user on every host in the cluster. The netgroup would be a lot easier to manage if I could get it to work properly. Any suggestions as to what else I can try? Thanks Ian _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Ian Mortimer _/ _/ ian@physics.uq.edu.au ,-_|\ Department of Physics _/ _/ Tel: +61 7 3365 3436 / *\ University of Queensland _/ _/ Fax: +61 7 3365 1242 \_,-._/ St. Lucia, Brisbane _/ _/ v Queensland, Australia 4072 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Disclaimer: Speaking only for myself.