- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Creating subdirectory in new user accounts
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-22-2004 07:32 AM
11-22-2004 07:32 AM
Is there any way to do this? Other OS's allow you to put a directory in /usr/skel because everything is copied from this directory to the user's home directory. I already have a script which creates the directory for existing user accounts. Thx
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 07:38 AM
11-22-2004 07:38 AM
Re: Creating subdirectory in new user accounts
Not 100% sure of exactly what you want, but in SAM there a dropdown from the Users page called Task Customization. And in there you can run commands, scripts, whatever you want for pre/post adds/removes of users.
The help button will tell you how SAM passes parms to any command you run.
Should do the trick for you I'd think.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 07:41 AM
11-22-2004 07:41 AM
Re: Creating subdirectory in new user accounts
Cheers,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 07:47 AM
11-22-2004 07:47 AM
Re: Creating subdirectory in new user accounts
I would think there might be patch for this.
If its however normal behavior:
The script that creates the user can be modified to mkdir the subdirectory and copy the files you want from /etc/skel
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-22-2004 08:05 AM
11-22-2004 08:05 AM
Re: Creating subdirectory in new user accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 08:38 AM
11-22-2004 08:38 AM
Re: Creating subdirectory in new user accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 09:02 AM
11-22-2004 09:02 AM
SolutionTake a look at the following file
/usr/sam/lib/ct_adduser.ex
Now create a root _only_ owned & executable file - preferably in root's home dir - usually /root. MUST only be owned & excutable by root or SAM will not run it
Insert the for/do/done loop at the top of the example file into this file & then add the following past it
/sbin/mkdir $home_dir/log
/sbin/chown $login_name:$group $home_dir/log
/sbin/chmod 644 $home_dir/log
Those example files show how to parse the output of the useradd / userdel commands that SAM executes.
Now just set proper ownership/perms on this script & enter the full path to the script in the Commands to Run After AAdding Users box & you're good to go.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 10:29 AM
11-22-2004 10:29 AM
Re: Creating subdirectory in new user accounts
Thanks!!