- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: custom .profile for members of a group
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
тАО08-26-2002 07:16 PM
тАО08-26-2002 07:16 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 07:44 PM
тАО08-26-2002 07:44 PM
Re: custom .profile for members of a group
More information can found in the profile man page
# man profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 07:44 PM
тАО08-26-2002 07:44 PM
Re: custom .profile for members of a group
not sure about SAM
the files .profile,.login,.cshrc are copied from the /etc/skel directory to the user's login directory.
So if you like to use a common template to all the users you can modify the .profile file existing here in this directory so that whenever users are created automatically this .profile is copied to the user's home directory.
If you are planning to execute something for all the users before they login then you can go with this option like
Making the entries in the /etc/profile file(for sh and ksh) and /etc/csh.login file (for csh)
These files will be executed before the local initialization files before the user logs in.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 07:53 PM
тАО08-26-2002 07:53 PM
Re: custom .profile for members of a group
e.g.
# useradd -u 234 -g users -k /etc/skel1 -c "username" -s /usr/bin/ksh -d /home/username -m username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2002 10:43 PM
тАО08-26-2002 10:43 PM
Re: custom .profile for members of a group
We solved this "problem" as follows.
1. Modification in /etc/skel/.profile
# The following is added at the end ...
prof=prof`echo $HOME | cut -d '/' -f 3`
if [ -a /usr/local/bin/$prof ]
then
. /usr/local/bin/$prof
else
. /usr/local/bin/profrest
fi
2. For each "group" of users (having a /home/[group]/[user] homedirectory) we can have (or not) a /usr/local/bin/prof[group] specific file. If not, /usr/local/bin/profrest is used.
Hope this helps,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2002 11:34 AM
тАО08-27-2002 11:34 AM
Re: custom .profile for members of a group
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2002 11:41 AM
тАО08-27-2002 11:41 AM
Re: custom .profile for members of a group
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2002 07:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2002 07:56 PM
тАО08-27-2002 07:56 PM
Re: custom .profile for members of a group
if [[ -r /app/special.profile ]]
then
. /app/special.profile
fi
make the file only readable by the group you want to use it.
chgrp special /app/special.profile
chmod 750 /app/special.profile
Hope this lines up ok on the forum!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 08:03 AM
тАО08-28-2002 08:03 AM
Re: custom .profile for members of a group
I'm a little new to this. What do you mean by the skel script?
Regards