UIDs in /etc/passwd file


 
Thread Tools Search this Thread
Operating Systems Solaris UIDs in /etc/passwd file
# 8  
Old 04-09-2009
I think that note is precisely referring to the NFS specific accounts I already mentioned.

Otherwise, unless you use a really old (>13 years) Solaris release, there should be no problem using large UIDs.
# 9  
Old 04-09-2009
I remember having problems with group names that were too long causing the output of "ls -l" to have the owner and group names to crash into each other (no space in between), a UID with extra digits could cause problems when doing an "ls -ln" could suffer the same problem.
# 10  
Old 04-09-2009
Although useradd and groupadd complain about long names, neither them nor long ids seems to hurt ls with Solaris:
Code:
$ pfexec groupadd -g 2147483647 biggroupbiggroupbiggroupbiggroup
UX: groupadd: biggroupbiggroupbiggroupbiggroup name too long.
$ pfexec useradd -u 2147483647 -g biggroupbiggroupbiggroupbiggroup biguserbiguserbiguserbiguser
UX: useradd: biguserbiguserbiguserbiguser name too long.
UX: useradd: biggroupbiggroupbiggroupbiggroup name too long.
$ pfexec su biguserbiguserbiguserbiguser               
$ id
uid=2147483647(biguserbiguserbiguserbiguser) gid=2147483647(biggroupbiggroupbiggroupbiggroup)
$ cd /tmp
$ touch foo
$ ls -ln foo
-rw-r--r--   1 2147483647 2147483647       0 avr   9 22:22 foo
$ ls -l foo
-rw-r--r--   1 biguserbiguserbiguserbiguser biggroupbiggroupbiggroupbiggroup       0 avr   9 22:22 foo

# 11  
Old 04-10-2009
Interesting! I can't remember which version of Solaris I had the problem with, probably Solaris 2.6 (on Sparc of course)..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Display usernames and their UIDs

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a script that displays all usernames and their UIDs in the following fashion: name1 uid=999 name2... (2 Replies)
Discussion started by: baniel
2 Replies

2. AIX

When did AIX start using /etc/security/passwd instead of /etc/passwd to store encrypted passwords?

Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies

3. Red Hat

pam_krb5 UID mapping (clashing UIDs)

Hi, I'm considering implementing pam_krb5 on RHEL 5.5 and Solaris 10, and I'm in an environment that has a number of legacy NIS domains. They've all been migrated into Active Directory, RFC2307, with the NIS maps that differed in each domain kept within its own container. However, users and... (0 Replies)
Discussion started by: cambridge
0 Replies

4. UNIX for Dummies Questions & Answers

help with passwd file

Not an unix expert, I read a few pages on the web about passwd files, but I didn't find the answers I need about the last 8 lines of the passwd file I'm taking a look at. I'm assuming their shortcuts to another file that may have the actual usernames of users on the system. Please, any help... (1 Reply)
Discussion started by: fusion31
1 Replies

5. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

6. UNIX for Advanced & Expert Users

keep UIDs/GIDs consistent

Hi, What is the best ways to keep UIDs and GIDs consistent across unix and linux server. my company have a servers running on hpux, linux, aix and many of them have veritas cluster and hacmp running, many time user account have been created only on one of the cluster node and not the others... (4 Replies)
Discussion started by: robertngo
4 Replies

7. AIX

UIDs being overwritten immediately

We have a problem where we delete a user and their associated UID gets dumped back in the UID pool. The if we immediately create a another (new) user, AIX reuses the last UID, the one that was just released. This is causing a problem when reports are being generated because the new users name is... (2 Replies)
Discussion started by: xsys2000
2 Replies

8. HP-UX

Valid ranges for uids for HP-UX

Hi , I am using adduser in hp-ux to create users in Hp-ux. i would like to know what are the valid values for uids and gids in hp-ux what are the rannges for the valid uids . How to check what are the used uids in Hp-ux . Thanks Narendra babu C (7 Replies)
Discussion started by: naren_chella
7 Replies

9. Cybersecurity

/etc/passwd file

hi Does anyone anyone know what the last line of a unix user passwd file signifes? Mine shows "+:::::" best (4 Replies)
Discussion started by: s_mad010
4 Replies

10. UNIX for Dummies Questions & Answers

about UIDs, very urgent

hello guys, well as i mentioned first i have a serious problem, i need your help. i have a hosting plan with linux, apache and php. i have a script (that have my UID=32256) inside my web site (in the panel folder -see below-) that creates new scripts (in the pages folder) (the new scripts... (1 Reply)
Discussion started by: mehdi
1 Replies
Login or Register to Ask a Question