* [SUMMARY (of sorts)] NIS netgroup and `id -un`
@ 1999-02-01 5:24 Ian Mortimer
0 siblings, 0 replies; only message in thread
From: Ian Mortimer @ 1999-02-01 5:24 UTC (permalink / raw)
To: tru64-unix-managers
Hi DU Admins
I didn't get any responses to my second posting of this
question so here is what I was able to find out and the
workaround I've had to use.
The problem came from adding users to a cluster of workstations
using a NIS netgroup. The netgroup was included like this
in /etc/passwd:
+@lusers:
Almost everything works correctly: 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_".
But: `id -un` gets `Could not get "user" information', whoami
gets `Intruder alert' and ls -l shows the uid instead of the
user name.
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:". Adding users with
a simple +: in /etc/passwd doesn't cause these problems.
The problem doesn't show itself if you `su -' to the user.
You have to login as the user to see it.
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 workaround is to not use the netgroup but add each user
individually to /etc/passwd like this:
+user_1:
+user_2:
...
+user_n:
This is a pain since it has to be done on each host in the
cluster but it works.
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-02-01 5:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-01 5:24 [SUMMARY (of sorts)] NIS netgroup and `id -un` Ian Mortimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox