- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- default perms on .* startup files when creating a ...
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
12-04-2003 03:50 AM
12-04-2003 03:50 AM
Is there a way to set a default permission on .profile, .login and other startup files in a user's home directory when creating a new user with sam. The permissions on these files don't seem to correspond to /etc/skel permissions for these files when I create a new user.
Example: setting on .profile in /etc/skell is 440 and when I create a new user using sam the permissions in home directory for user are 644 for .profile.
Thanks in advance!
Vanja
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 03:56 AM
12-04-2003 03:56 AM
SolutionThat sets the default permissions on the files when a user is created using /etc/skel. Since thats not doing it, set the umask in the script that creates the user. That should do the job.
As a practical matter, our user add script sets the permissions and then displays them so that the oeprator knows what was done.
The .profile and other files merely need to be readable by the user. They don't need execute permissions because they are not executed. They don't need to be owned by the user either.
For many of my users I don't let them edit their profiles, because they do things that create security problems.
SEP
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
12-04-2003 03:56 AM
12-04-2003 03:56 AM
Re: default perms on .* startup files when creating a new user
You can add a script to run after SAM finishes adding the user. Go into SAM > Users and Groups > Users, then select Actions > Task Customization and enter the full path name of the script you want to have executed. The Help section will explain how you can pass parameters to the script and such.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 04:05 AM
12-04-2003 04:05 AM
Re: default perms on .* startup files when creating a new user
most useful info was provided by Steven and Peter.
Anyway if you would like to create an user (and of course his/her home directory) bypassing SAM:
# useradd -mk /etc/skel
This command will create a user's home directory with same permissions of /etc/skel/.profile and other files under it.
Just a thought...
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 04:11 AM
12-04-2003 04:11 AM
Re: default perms on .* startup files when creating a new user
Vanja