- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- passwd file cleanup
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-16-2002 09:25 AM
01-16-2002 09:25 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 09:28 AM
01-16-2002 09:28 AM
Re: passwd file cleanup
see the man page for userdel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 09:34 AM
01-16-2002 09:34 AM
Re: passwd file cleanup
If you like SAM, you can do it there. SAM will offer you the option of removing or transfering ownership of a user's files to another.
Remember that if you merely remove a user from /etc/passwd manually, then the user's files remain on the system. The file's inode contains the uid even though /etc/passwd can no longer translate number-to-name. If you have ever done this, you can look for "orphaned" files with:
# find /home /usr /var /tmp -nouser
...or for a specific uid:
# find /home /usr /var /tmp -user 103
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 09:41 AM
01-16-2002 09:41 AM
Re: passwd file cleanup
I am using finger and has attempted to use last but I am just wondering if there is any better solution. How can I get the atime of .sh_history?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 09:45 AM
01-16-2002 09:45 AM
Re: passwd file cleanup
Just a gotcha
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 10:04 AM
01-16-2002 10:04 AM
Solutiondo
expr=ls -la /home/kwright |awk '{print $6" "$7}'
if [ date < $exp ];then
userdel $i
done
This will give you an idea..but you need to get the MATH part right to fit your need. date could be the current date - 50 days or something.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 10:54 AM
01-16-2002 10:54 AM
Re: passwd file cleanup
Once you get a list of who can be removed, we use userdel (man 1m userdel) in a script to remove the users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 11:19 AM
01-16-2002 11:19 AM
Re: passwd file cleanup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 11:57 AM
01-16-2002 11:57 AM
Re: passwd file cleanup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 03:31 PM
01-16-2002 03:31 PM
Re: passwd file cleanup
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 06:46 PM
01-16-2002 06:46 PM
Re: passwd file cleanup
If the user complains, that's good. Now I can find out why $HOME is not being changed. I can always restore the user once I understand the usage.
Bill Hassell, sysadmin