- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Backup processing during removing user account...
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
11-18-2004 06:18 PM
11-18-2004 06:18 PM
Backup processing during removing user account thru SAM
I open 2 client terminals. One is used to remove user account thru SAM and the other one is used to check the backup process during removing user account.
When I grep the tty that removing the user account, below is what I have found:
root 15434 15433 182 11:07:39 pts/tj 0:07 /usr/bin/find / ! -fstype nfs -only ! -path /export/private_
root 15286 15281 0 11:07:08 pts/tj 0:01 samx -K 15285 /usr/sam/lib/%L/fal.ui
root 15433 1 0 11:07:39 pts/tj 0:00 /usr/bin/xargs /usr/bin/chacl -d 137.*
root 15281 14882 0 11:07:08 pts/tj 0:00 /usr/bin/sh /usr/sbin/sam
root 14881 594 0 11:02:13 pts/tj 0:00 telnetd
root 15411 15286 0 11:07:21 pts/tj 0:00 sh -c LANG=C LC_ALL=C /usr/sam/lbin/samx -C -p 15286 -s user
root 14882 14881 0 11:02:13 pts/tj 0:00 -sh
root 15436 1 73 11:07:39 pts/tj 0:04 /usr/bin/find / ! -fstype nfs ! -path /export/private_roots/
root 15412 15411 0 11:07:21 pts/tj 0:03 /usr/sam/lbin/samx -C -p 15286 -s users /usr/sam/lib/%L/ug.u
1) Why the system uses command "samx" and not "userdel" to remove the user account? I try to man samx but no manual for this command. Currently I am writting a script to remove user account but not able to log the activity into /var/sam/sam_remove.log by using command "userdel".
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2004 06:28 PM
11-18-2004 06:28 PM
Re: Backup processing during removing user account thru SAM
I think it means sam execute.
If you look at the command logs in sam you will see the userdel or the sam version of userdel run.
sam has logs of commands. Helps you lean the command line and wean yourself from sam.
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
11-18-2004 06:32 PM
11-18-2004 06:32 PM
Re: Backup processing during removing user account thru SAM
samx is hpux only command. userdel and useradd are unix wide use command they are standart :)
Use userdel in your scripts. Why you need log in var/sam/sam_remove.log ?
You can create your log file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2004 07:07 PM
11-18-2004 07:07 PM
Re: Backup processing during removing user account thru SAM
Is it possible to log the same info as /var/sam/sam_remove.log into another log file?
I hv attached my script. Any ideas?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2004 07:25 PM
11-18-2004 07:25 PM
Re: Backup processing during removing user account thru SAM
echo "Press [Y]/[y] to continue, [Enter] to quit \c"
read ans rest
if [ -z "$ans" ]
then
exit
fi
echo ""
If user just press any key but not ENTER
user will be del.
Check user input and delete only if there y/Y
use userdel -r instead /usr/sam/lbin/userdel.sam
Also if you need del all $userid files
use find -user $userid
look link:
http://cis.stvincent.edu/carlsond/cs330/unix/advanced/userdel