- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unique User ID
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2008 02:34 AM
тАО10-13-2008 02:34 AM
>>>look at this
$pwd
/usr/users/test
-rw-r--r-- 1 #test users 76 Jul 10 2000 .netrc
drwx------ 5 #test users 8192 Dec 23 2007 .netscape
-rwxr-xr-x 1 #test users 2260 Jul 24 2001 .profile
-rw------- 1 #test users 16 Oct 10 2005 .sh_history
drwxr-xr-x 2 #test users 8192 Dec 23 2007 .sysman
-rwxr-xr-x 1 #test users 80 Jun 12 2000 .xsession
drwxr-xr-x 3 #test users 8192 Dec 23 2007 bin
drwxr-xr-x 2 #test users 8192 Dec 23 2007 java
-rw------- 1 #test users 505 Jun 12 2000 mbox
Kindly explain the same, where as doing finger -l test it shows other 3 users login details:
Waiting for the reply full points who will try!!!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2008 02:44 AM
тАО10-13-2008 02:44 AM
Re: Unique User ID
logins -d
to display users with duplicate id's.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2008 02:52 AM
тАО10-13-2008 02:52 AM
Re: Unique User ID
Please post this output
grep -i test /etc/passwd
and
cat /etc/passwd
I too think some duplicate id will be there
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2008 03:23 AM
тАО10-13-2008 03:23 AM
Re: Unique User ID
grep -i test /etc/passwd
cat /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2008 03:37 AM
тАО10-13-2008 03:37 AM
SolutionThe comment character "#" is supported in many scripts and configuration files, but NOT in /etc/passwd. The attempt to comment out the user will only cause the username to be changed just as you've seen.
See "grep test /etc/passwd".
File ownership is not determined by human-friendly usernames, but by "machine-friendly" UID numbers. When the "ls" command is used, the command will examine the UID numbers on the disk and find the matching usernames. If more than one username is found for a given UID number, the result depends on the utility doing the lookup... usually the first username with the correct UID is listed.
To fix the problem, you may have to use "vipw". Be very very careful when using it.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2008 03:37 AM
тАО10-13-2008 03:37 AM
Re: Unique User ID
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2008 03:38 AM
тАО10-13-2008 03:38 AM
Re: Unique User ID
You have two test accounts, the "#test" with uid 243 and the "test" with user id 238.
What do you want to do? I am guessing you want to keep one of the two accounts "test" and find all the files that belong to "#test" and change their ownership to "test".
Or if the new "test" account does not own any files yet, remove it and take the "#" out of the "#test" account.