Thanks to David Montgomery <david@cs.newcastle.edu.au> for the solution.
--sk
Stuart Kendrick
Network Services
FHCRC
I have users in passwd.org_dir which aren't functional. "ls -l" on files
which they own display the UID but not the name. I can't use "chown" to
give them files. I can't su to them.
These are all pseudo-users: accounts without passwords, NIS+
credentials (can't have a credential if they don't have a password), or
people attached to them. I've added them via "nisaddent
-avf passwd.tmp passwd" + "nisaddent -avf shadow.tmp shadow" or via the
Solstice GUI.
I can see all these users fine via niscat and nisgrep on the
passwd table and via the Solstice GUI.
These UIDs used to work fine ... but they quit working recently.
Has anyone seen this before?
Solaris 2.5.1 with selection of latest patches.
--sk
Stuart Kendrick
Network Services
FHCRC
gnat% ls -l
total 6
drwxrwxr-x 2 4005 admin 512 Apr 16 14:28 bin
drwxrwxr-x 2 4005 admin 512 Apr 16 14:32 log
drwxrwxr-x 2 4005 admin 512 Apr 16 20:00 tmp
gnat% chown nisops *
chown: unknown user id nisops
gnat% nisgrep uid=4005 passwd.org_dir
nisops:x:4005:90:NIS Operations:/home/nisops:/bin/csh:9967::::::
gnat% nisls -l passwd.org_dir
T ----rmcdrmcdr--- bug0.fhcrc.org. Fri Feb 28 12:16:05 1997
passwd.org_dir.fhcrc.org.
gnat% niscat -o '[uid=4005],passwd.org_dir'
Object Name : passwd
Directory : org_dir.fhcrc.org.
Owner : nisops.fhcrc.org.
Group :
Access Rights : ----r-----------
Time to Live : 12:0:0
Creation Time : Wed Apr 16 09:48:10 1997
Mod. Time : Wed Apr 16 09:48:15 1997
Object Type : ENTRY
Entry data of type passwd_tbl
[0] - [7 bytes] 'nisops'
[1] - [2 bytes] Encrypted data
[2] - [5 bytes] '4005'
[3] - [3 bytes] '90'
[4] - [15 bytes] 'NIS Operations'
[5] - [13 bytes] '/home/nisops'
[6] - [9 bytes] '/bin/csh'
[7] - [11 bytes] Encrypted data
gnat% chown nisops *
chown: unknown user id nisops
gnat% niscat -o passwd.org_dir
Object Name : passwd
Directory : org_dir.fhcrc.org.
Owner : bug0.fhcrc.org.
Group : admin.fhcrc.org.
Access Rights : ----rmcdrmcdr---
Time to Live : 12:0:0
Creation Time : Fri Feb 28 12:16:05 1997
Mod. Time : Mon Apr 14 10:14:51 1997
Object Type : TABLE
Table Type : passwd_tbl
Number of Columns : 8
Character Separator : :
Search Path :
Columns :
[0] Name : name
Attributes : (SEARCHABLE, TEXTUAL DATA, CASE SENSITIVE)
Access Rights : r---r---r---r---
[1] Name : passwd
Attributes : (TEXTUAL DATA)
Access Rights : ----rm--r---r---
[2] Name : uid
Attributes : (SEARCHABLE, TEXTUAL DATA, CASE SENSITIVE)
Access Rights : r---r---r---r---
[3] Name : gid
Attributes : (TEXTUAL DATA)
Access Rights : r---r---r---r---
[4] Name : gcos
Attributes : (TEXTUAL DATA)
Access Rights : r---rmcdrmcdr---
[5] Name : home
Attributes : (TEXTUAL DATA)
Access Rights : r---rmcdrmcdr---
[6] Name : shell
Attributes : (TEXTUAL DATA)
Access Rights : r---rmcdrmcdr---
[7] Name : shadow
Attributes : (TEXTUAL DATA)
Access Rights : ----r-----------
gnat%