- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file ownership changed to numbers
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
01-12-2004 07:45 PM
01-12-2004 07:45 PM
file ownership changed to numbers
I don't know what has happened but all of our files ownership has been changed to numbers such as 0,1 etc. We did execute 'cleanup' utility to free spaces in /var. What we clean is attached, but I wonder if that has anything to do with the cleanup or removed patches.
Pls. help!!!
thnks.
-rosli-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 07:50 PM
01-12-2004 07:50 PM
Re: file ownership changed to numbers
Could you run the commands,
# pwck
# grpck
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 07:51 PM
01-12-2004 07:51 PM
Re: file ownership changed to numbers
Then the ownership changes in the id from the deleted account. Creating a new account with this id will result in names for the ownership again.
It is strange that this appeare after a cleanup, becouse that should not have anything to do with this.
Regrads,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 07:51 PM
01-12-2004 07:51 PM
Re: file ownership changed to numbers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 07:51 PM
01-12-2004 07:51 PM
Re: file ownership changed to numbers
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:06 PM
01-12-2004 08:06 PM
Re: file ownership changed to numbers
I've run the pwck & grpck, both with return code 0. However the /etc/passwd date was modified at 12:37 today. I don't think it has anything to do with cleanup as it was executed later ie. 12:48pm.
I checked the /etc/passwd, all the id's are there, 0 for root, 1 for daemon and so on.
Pls. advise what do I have to do to revert to original setup. Don't tell me I have to chown all the files 1 by 1.
thnks.
-rosli-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:12 PM
01-12-2004 08:12 PM
Re: file ownership changed to numbers
-r--r--r-- 1 root sys 1361 Dec 31 11:11 passwd
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:24 PM
01-12-2004 08:24 PM
Re: file ownership changed to numbers
the /etc/passwd ownership as it is follows:
-r--r--r-- 1 0 security 19112 Jan 13 12:37 /etc/passwd
All the files ownership are represented by their userid no. instead of name.
I wonder if it has anything with the PHCO_27780 patch, the one we install for the cleanup utility.
I'm in really in hot soup now.
regards
-rosli-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:30 PM
01-12-2004 08:30 PM
Re: file ownership changed to numbers
# chown root:sys /etc/passwd
and let us know the result please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:35 PM
01-12-2004 08:35 PM
Re: file ownership changed to numbers
thnx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:38 PM
01-12-2004 08:38 PM
Re: file ownership changed to numbers
Does the id command gives the correct result as well:
id root
or id 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 08:53 PM
01-12-2004 08:53 PM
Re: file ownership changed to numbers
The id returns:
K370:/> id
uid=0() gid=102(mqm) groups=0(root)
K370:/> id root
uid=0() gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),102(mqm)
K370:/>
I'm login as itt902 which has root equivalent access.
thnks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 09:07 PM
01-12-2004 09:07 PM
Re: file ownership changed to numbers
Are ther many user with id 0? Is it possible to create a passwd file with only root having id 0 and then test if this is your problem?(normally it should not solve it but to be sure)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 09:32 PM
01-12-2004 09:32 PM
Re: file ownership changed to numbers
Two things are possible -->
1) Your /etc/passwd file is corrupted and cannot read the entries in there. As the root account should always be on top, your complete /etc/passwd-file could be corrupted. Normaly pwck checks for any errors and deletes the erroring entries. You can also do a check manualy for having 7 fields in there seperated with colons (:)
root:*:0:3::/root/home:/sbin/sh
2) You have bad permissions on the /etc/passwd or using ACL's or using a security program like CA's eTrust. This just does not let you allow to read the password file.
As a help-tool you might be able to use the following command :
cat /etc/passwd | od -c | more
This prints all characters inclusief the weard ones. Maybe a ^H is added without seeing this character. od-c eliminates this possible problem. Be very carefull in using this and make sure a root login remains !!
Ones logged out you mighthave a big difficulty in getting back in as root. Also make sure you have a backup-file of the /etc/passwd and maybe also a /etc/shadow.
Best Regards David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 02:55 PM
01-13-2004 02:55 PM
Re: file ownership changed to numbers
thnks.
rgds
-rosli-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 03:05 PM
01-13-2004 03:05 PM
Re: file ownership changed to numbers
This may sound dumb, but I have seen before where an alias was created that ran 'ls -n' which will show the files as uid/gid instead of the owner an not running what you would assume 'ls -l'
Just an afterthought ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 05:28 PM
01-13-2004 05:28 PM
Re: file ownership changed to numbers
type ll
Don't bother with which and whereis as they do not consult with the shell about what to do when you type ll. You may find that it is no longer /usr/bin/ll
And as you've found out, /var is crucial to proper system operation. SO many programs and daemons depend on /var so you must have a lot of space as well as daily purging of temporary files and trimming logfiles as needed. Think gigabytes for /var...
Bill Hassell, sysadmin