- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File Owner
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
10-23-2001 04:06 PM
10-23-2001 04:06 PM
File Owner
John Rector
Floralife
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 04:33 PM
10-23-2001 04:33 PM
Re: File Owner
First, grep "youruser" /etc/passwd as root; if that returns nothing then your user is not defined and you need to add him using SAM or useradd. Next, do an ls -l /etc/passwd; that file should be owned by root and have 644 permissions. rw-r--r--.
If that's ok, do a pwck and see if it returns any errors. Next, do a bdf and see if you have any full filesystems. Finally do a ps -e | grep pwgrd to see if the passwd caching daemon is running. If it is not, man pwgrd for instructions on starting it.
All of the above, assumes that this box is not an NIS client. If it is, do a ypcat passwd | grep "youruser". If that is ok, then you are simply missing the '+' entry in the passwd file and I'll bet the '+' entry in the group file is missing as well.
This should fix you, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 04:58 PM
10-23-2001 04:58 PM
Re: File Owner
Did all the above steps. User is defined.
permissions are rw-r--r--
pwck returned no errors
ps -e | grep pwgrd returned with an id.
But when a user writes out a new file the owner is still 1000 instead of the login name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 05:07 PM
10-23-2001 05:07 PM
Re: File Owner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 05:24 PM
10-23-2001 05:24 PM
Re: File Owner
What is the output of
""id"" , ""logname"" and ""whoami"" commands??
If these commands do not
return the same userid values,
there is definitely a problem
with your /etc/passwd file.
Also, does the problem occur
with only one specific user?
How about the "'root"" user?
I understand this is not a
NIS system.
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 05:42 PM
10-23-2001 05:42 PM
Re: File Owner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 05:50 PM
10-23-2001 05:50 PM
Re: File Owner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 06:23 PM
10-23-2001 06:23 PM
Re: File Owner
All leads point to the
/etc/password file having
an error.
To check this quickly:
(if you are allowed the
flexibility )
*** #cp /etc/passwd /etc/passwd.OLD
#cp /usr/newconfig/etc/passwd /etc/passwd
#useradd a test user (through SAM or
command line)
#login as the test user and
create file.
****
otherwise,
If the file
is not huge, can you make
sure the password file has
all the fields right for
all the users? I had a similar problem and it turned
out to be a problem in the
password file.
pwck is not always 100% guaranteed to catch errors.
All the above applies to
/etc/group. Also, is
this a trusted system?
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 07:23 PM
10-23-2001 07:23 PM
Re: File Owner
Check the permissions of the /etc/passwd file.
The permissions should be r--r--r-- or rw-r--r--.
If you change the permissions of the /etc/passwd file to r--------,you have this problem.
Another thing is check whether you have the user in the /etc/passwd file.check whether is user is available on the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 07:27 AM
10-24-2001 07:27 AM
Re: File Owner
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 01:23 AM
10-25-2001 01:23 AM
Re: File Owner
I think this because you wrote "All files created by any user EXCEPT root gets a file owner of 1000" which is impossible (or at least highly unlikely).
So all references to /etc/passwd should be replaced by /etc/group, i.e. I think that in /etc/group, there is no *group* with the number 1000. If so, just add that group (see the other entries in /etc/group for examples).