- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Query regarding abandoned files seen in HP-UX
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
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
тАО02-19-2009 07:35 AM
тАО02-19-2009 07:35 AM
Query regarding abandoned files seen in HP-UX
I need to clear my understanding about abandoned files. I first want to understand, What are abandoned file and why does this happen? Secondly, how to prevent this to happen.
I have an example to make this a bit more useful.. See the attached text file.
My question is, what does the id 3836 in the place of file owner signify? Becozuse there is no user in /etc/passwd as 3836.
Next question, how to prevent this from happening.
If anyone has more question, please ask me. I need to resolve this issue.
Thank You.
Regards,
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 07:42 AM
тАО02-19-2009 07:42 AM
Re: Query regarding abandoned files seen in HP-UX
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 07:45 AM
тАО02-19-2009 07:45 AM
Re: Query regarding abandoned files seen in HP-UX
The way to prevent this is to clean out the files when the user is removed.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 07:47 AM
тАО02-19-2009 07:47 AM
Re: Query regarding abandoned files seen in HP-UX
In other words, these files may not be "abandoned", rather they were never "adopted" in the first place by a real user on your system.
HP-Server-Literate since 1979
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 07:47 AM
тАО02-19-2009 07:47 AM
Re: Query regarding abandoned files seen in HP-UX
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 07:50 AM
тАО02-19-2009 07:50 AM
Re: Query regarding abandoned files seen in HP-UX
It is always recommended to remove the user directory files when removing the users
#userdel -r
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 07:58 AM
тАО02-19-2009 07:58 AM
Re: Query regarding abandoned files seen in HP-UX
I would not consider these files abandoned.
Here is how it could happen.
HP-UX system is integrated into Windows ADS domain. User has rights and writes a file.
Server is booted from the domain, removed, or user is deleted in the domain controller. Suddenly files without owners.
You can even make it happen localy.
Create a user named charles, log on as him, write a couple of files, then delete the user. The files can be left behind and appear to be owner less.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 05:28 PM
тАО02-19-2009 05:28 PM
Re: Query regarding abandoned files seen in HP-UX
Created files are associated (by default) to the current user's number and stored that way in the directory. Just like /etc/hosts which associates a long IP address with one or more computer names, /etc/passwd is used to translate the number to a user login ID. You can change any file (with appropriate permissions) to any number in the UID range, like this:
touch /tmp/uid_test
ll /tmp/uid_test
chown 12345 /tmp/uid_test
ll /tmp/uid_test
rm -i /tmp/uid_test
AS you can see, you can change the ownership of a file or directory to any number. Whether this number corresponds to a user ID in your /etc/passwd file is not checked, nor should it be. If you need the file, assign the file to the proper owner.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2009 03:54 AM
тАО04-09-2009 03:54 AM