- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: owner field replaced by number in the output o...
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
Forums
Discussions
Discussions
Discussions
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
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
09-13-2006 04:51 PM
09-13-2006 04:51 PM
I have noticed sometimes in the output of $ll or $ls -l command the owner field is replaced by some number instead of owner name.
I have observed this on sun solaris also.
Appreciate if someone can clarify this.
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 05:22 PM
09-13-2006 05:22 PM
SolutionThere is no user in /etc/passwd with the uid the file has. The corresponding user may have been deleted and some files left over.
Otherwise the file came via tar-file/backup from another machine to the system.
Or the filesystem may be nfs mounted and the server file owner has now corresponding user (uid) on the client.
Or in some environments may "ls" may be aliased to have an -n option.
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 05:36 PM
09-13-2006 05:36 PM
Re: owner field replaced by number in the output of $ls -l
As Hemmetter mentioned,when you do a NFS mount or untar files in to the system,same User ID and Group ID of the file or directory may not be there in the /etc/passwd of your system (for any of the user).In that case it is showing the numerical user ID and Group ID instead of username and group name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 02:12 AM
09-14-2006 02:12 AM
Re: owner field replaced by number in the output of $ls -l
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 02:19 AM
09-14-2006 02:19 AM
Re: owner field replaced by number in the output of $ls -l
As mentioned, the absence of a mapping of the numeric id (uid or gid) means that the raw numeric value is reported by 'ls' by default.
If you would like to find all "foreign" files, you can do:
# cd /path -xdev && find . -nouser -o -nogroup | xargs ls -l
...this will report all files and directories in /path that lack a "valid" user or group identification
Regards!
...JRF...