- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File owner is a number
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
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
тАО12-02-2008 02:18 PM
тАО12-02-2008 02:18 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 02:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 02:29 PM
тАО12-02-2008 02:29 PM
Re: File owner is a number
It is the UID and GID that is stored by the system to keep track of the owner and group of files. Commands like 'ls' use /etc/passwd and /etc/group to 'map' UID/GID to actual user and group names.
There are 2 cases that can cause you to see something like this:
1) The user has been deleted from the system. In this case the 'ls' command has no map (no entry in /etc/passwd) to correlate a UID to an actual user name.
2) If the permissions of the /etc/passwd file are too restrictive (if it is not readable by all, ie. at least 444 permissions) then a user may not have rights to read the file. In this case the user will see the UID as the owner for ALL files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 02:53 PM
тАО12-02-2008 02:53 PM
Re: File owner is a number
As mentioned, there are several ways this could happen.
1) User deleted. (Patrick)
2) You have installed numeric user/group names
3) Your NIS is bonkers.
4) pwgrd(1M) is broken?
5) Permission problems (Patrick)
You may fix 3) by:
/sbin/init.d/nis.client stop
/sbin/init.d/nis.client start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 05:49 PM
тАО12-02-2008 05:49 PM
Re: File owner is a number
chown 1234:5678 myfile
In 'normal' operations, ownership is usually assigned using names (user and group), so possibly in the past, there was a user with an ID of 50, but the user was removed or the user's ID was changed (not a good idea but certainly can be done).
Now you said that you saw a file with an owner of 0 (I am assuming you are using ls -l). Since root must exist on a stable Unix system, if you see 0, then either root's user ID has been modified in /etc/passwd (big oops) or /etc/passwd has been 'protected' by removing read capability (a very bad idea). /etc/passwd and /etc/group must always be readable by everyone.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 07:01 PM
тАО12-02-2008 07:01 PM
Re: File owner is a number
>File owner is number.
As the previous writers ,mentioned.
When the user is deleted it retains with the UID, for tracking purpose.
Check the /etc/passwd entries , whether any changes happened.
check for any user modification/deletion.
see the example :-
drwxr-xr-x 2 500 test 96 Dec 3 06:53 user
-rw-r--r-- 1 500 test 0 Dec 3 06:53 ppp
Thanks,
Analyst.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 07:20 PM
тАО12-02-2008 07:20 PM
Re: File owner is a number
Ex:-
OLD: (uid of c2user1 = 7569)
-rw-rw-rw- 1 c2user1 c2grp 0 Dec 3 08:45 aaaa
NEW:
-rw-rw-rw- 1 7569 c2grp 0 Dec 3 08:45 aaaa
As you can see, the uid on the file still refers to the old one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2008 12:35 AM
тАО12-03-2008 12:35 AM
Re: File owner is a number
this can also happen if the file was copied over from another system and the user that owned the file on the original system does not exist on the new one. In this case, the hint would be obvious, just create the user on the new system as well.
Jozef
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2008 09:27 PM
тАО12-03-2008 09:27 PM
Re: File owner is a number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2008 09:40 PM
тАО12-03-2008 09:40 PM
Re: File owner is a number
Exactly.
> As you can see, the uid on the file still
> refers to the old one.
Of course it does. The file owner is a
number, and you change that number, for that
file, using chown. Changing which user name
(if any) is associated with that number has
no effect on any file's owner (number).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 04:36 AM
тАО12-10-2008 04:36 AM
Re: File owner is a number
...assigned points to 0 of 46 responses ...
I'd recommend that you learn about the member point system in this forum at: http://forums11.itrc.hp.com/service/forums/helptips.do?#28