HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Home Directory Ownership Changed
Operating System - HP-UX
1836365
Members
1998
Online
110100
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-26-2004 02:15 PM
03-26-2004 02:15 PM
Home Directory Ownership Changed
Hi,
In our plant,10.20 o.s is running in k-class server.there are two directories in /home,i.e cad and cad1 dir's,cad for cad users home dir's and cad1 for cad1 users home dir's.suppose i can add new user in cad or cad1 then file ownership for cad or cad1 home dir,s changed to new user ID.suppose i can delete any user then file ownership for cad or cad1 dir's changed to some numbers.how it is possible to take any other user ID or it takes random number for total home dir's.This problem comes at user add or use del condtion.
In our plant,10.20 o.s is running in k-class server.there are two directories in /home,i.e cad and cad1 dir's,cad for cad users home dir's and cad1 for cad1 users home dir's.suppose i can add new user in cad or cad1 then file ownership for cad or cad1 home dir,s changed to new user ID.suppose i can delete any user then file ownership for cad or cad1 dir's changed to some numbers.how it is possible to take any other user ID or it takes random number for total home dir's.This problem comes at user add or use del condtion.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2004 03:01 PM
03-26-2004 03:01 PM
Re: Home Directory Ownership Changed
When you delete a user and don't delete the files owned by the user, this random number appears..
This is not a random number but the UID of the user who owns the file, which you have just deleted. When you do a ls -l to get the information about the file, it gets the owner of the file from the inode where file information is stored and then checks /etc/passwd to get the information about the user. But as you have deleted the user, no information is available and hence the UID is displayed
With best wishes
Naveej
This is not a random number but the UID of the user who owns the file, which you have just deleted. When you do a ls -l to get the information about the file, it gets the owner of the file from the inode where file information is stored and then checks /etc/passwd to get the information about the user. But as you have deleted the user, no information is available and hence the UID is displayed
With best wishes
Naveej
practice makes a man perfect!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2004 03:11 PM
03-26-2004 03:11 PM
Re: Home Directory Ownership Changed
Hi Suresh,
When you don't delete the files owned by the user you have just deleted then a random number UID is given for the owner of these files.
Incase you don't need the files owned by those users then you can delete them as well or you can give the ownership of those to some otheruser.
When you don't delete the files owned by the user you have just deleted then a random number UID is given for the owner of these files.
Incase you don't need the files owned by those users then you can delete them as well or you can give the ownership of those to some otheruser.
Everything is possible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2004 04:10 PM
03-26-2004 04:10 PM
Re: Home Directory Ownership Changed
You already got the explanation for ownership. If you wish to delete the user as well as its home directory than use
userdel -r username and it will delete its home directory also or you can reallocate same home directory to some other user.
userdel -r username and it will delete its home directory also or you can reallocate same home directory to some other user.
By providing solutions I am helping myself
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP