- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to remove user account
Operating System - HP-UX
1824994
Members
2131
Online
109678
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
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
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
тАО11-09-2004 05:27 PM
тАО11-09-2004 05:27 PM
Script to remove user account
Hi,
1) I need a script to remove user id. It is same as the remove user through SAM. And should remove from all local files system. Input is the user id. Any ideas? I know the command used to remove user id is /usr/lbin/userdel. Is it possible to remove the user id from /etc/ftpd/ftpusers in this script as well?
2) What is /usr/sam/lbin/upusrfiles for?
regards
1) I need a script to remove user id. It is same as the remove user through SAM. And should remove from all local files system. Input is the user id. Any ideas? I know the command used to remove user id is /usr/lbin/userdel. Is it possible to remove the user id from /etc/ftpd/ftpusers in this script as well?
2) What is /usr/sam/lbin/upusrfiles for?
regards
- Tags:
- userdel
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2004 05:56 PM
тАО11-09-2004 05:56 PM
Re: Script to remove user account
Hi,
1. What sam does is to effectively execute 'userdel -r' and then fire up a background job with a 'find' to find and delete the files owned by that user. Yes. It is possible to remove the user id from the ftpusers file through the script. It's too late for me now. But, someone can definitely help you.
2. It's used by sam to manipulate the logins. I believe it is expected to run from SAM only. You could use userdel.sam though.
-Sri
1. What sam does is to effectively execute 'userdel -r
2. It's used by sam to manipulate the logins. I believe it is expected to run from SAM only. You could use userdel.sam though.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2004 10:34 PM
тАО11-09-2004 10:34 PM
Re: Script to remove user account
Hi,
userdel -r is used to remove user id including the home directory. How to pipe all the deleted file info into /var/sam/sam_remove.log?
As I know, when removing the user account through SAM, all the deleted file info will be pipe into /var/sam/sam_remove.log.
Below is the command that I used in my script:
/usr/sam/lbin/userdel.sam -r $userid
Note: $userid is the user id to be removed.
regards.
userdel -r
As I know, when removing the user account through SAM, all the deleted file info will be pipe into /var/sam/sam_remove.log.
Below is the command that I used in my script:
/usr/sam/lbin/userdel.sam -r $userid
Note: $userid is the user id to be removed.
regards.
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP