cancel
Showing results for 
Search instead for 
Did you mean: 

/etc/skel/.profile

SOLVED
Go to solution
Carl Munnelly
Frequent Advisor

/etc/skel/.profile

Hello,

What's /etc/skel/.profile and how does it interact with /etc/profile and .profile.

My reason for asking is I am trying to find out how my server is inheriting a umask of 027 when /etc/profile has a setting of 007 and .profile has no umask setting.

It could be a custom script setting the umask but I want to rule out /etc/skel/.profile.

Points will be assigned to all appropiate responses.

Thanks in advance
5 REPLIES
Shailendran V Naidu
Frequent Advisor

Re: /etc/skel/.profile

Hi Carl,
When you create a new user the contents of the /etc/skel directoy will be copied to the home directory of the user.

Before a user logs into the shell, the /etc/profile is executed by default.

On successful login, the .profile (which is present in the user's home directory) will be executed.

The umask can be set in the /etc/profile or ~/.profile

Also the umask can be set on a terminal or an application ( like some 3rd party terminal emulators) that is used to open the shell to login.

These are some possibilites. You may want to check those.
Suraj K Sankari
Honored Contributor

Re: /etc/skel/.profile

HI,
>>What's /etc/skel/.profile and how does it interact with /etc/profile and .profile.

When you create a new user at that time these #4 no of files (.profile, .cshrc, .kshrc, .login) are copied from /etc/skel to the new users home directiory.

/etc/profile :- this file is execute for every user who is login to the server.

If you want to set umask then open your .profile and at the last line put the entry "umask 027"

Suraj
Nido
Trusted Contributor

Re: /etc/skel/.profile

Hello Carl,

Check if you've got any shell script/Program in $HOME/.profile which may be overwriting umask.

thanks,
" Let Villagers Be Happy!! "
Taifur
Respected Contributor
Solution

Re: /etc/skel/.profile

Hi,

Check below link as follows,


http://docs.hp.com/en/5991-6469/ch09s02.html

Rgds//
Taifur
Carl Munnelly
Frequent Advisor

Re: /etc/skel/.profile

Thanks for your responses. Looks like I can ignore the file. I've also found the custom script overriding the profile files.