Operating System - HP-UX
1833124 Members
3608 Online
110051 Solutions
New Discussion

Default profie after user creating and umask global setting

 
SOLVED
Go to solution
Sonny_8
Occasional Advisor

Default profie after user creating and umask global setting

Hi all
When I create user, If would like my new user creation to have the profile that I set.
How to do that?
Is it possible to have umask global setting
let say I want all user the have umask 022?

any idea or thought would be appreciated

Thanks in advance
Sonny
Timezone id
4 REPLIES 4
Ian Kidd_1
Trusted Contributor
Solution

Re: Default profie after user creating and umask global setting

the way I implement a default umask setting is to put it in /etc/profile.

as for custom user .profiles, you can edit /etc/skel/.profile to your liking. any new users you create will get this .profile. You could put the umask there, but I would suggest not to.
If at first you don't succeed, go to the ITRC
Patrick Wallek
Honored Contributor

Re: Default profie after user creating and umask global setting

If you use SAM to set up users, then there is a default .profile that each user will get. It is located at /etc/skel/.profile

If you modify this .profile to your liking then every user that is created will have that copied into their home directory.
RAC_1
Honored Contributor

Re: Default profie after user creating and umask global setting

the execution sequence is /etc/profile and then .profile(user's profile)
(for ksh/bash/sh)

Now you define umask in /etc/profile, then that can be overridden in .profile.

You can put umask in .profile,but put the owner of .profile to root,group root.

This way a user can not modify your seetings in .profile.

But note that a unix litrate user can modify it at command prompt.
There is no substitute to HARDWORK
kish_1
Valued Contributor

Re: Default profie after user creating and umask global setting

hi,

Also go through this thread, some more information
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1c33eea29889d611abdb0090277a778c,00.html
share the power of the knowledge