Operating System - HP-UX
1747992 Members
5026 Online
108756 Solutions
New Discussion юеВ

Re: Set umask to particular user

 
bestsolution
New Member

Set umask to particular user

Hi

I want to set umask 022 value to particular user for example (users/ecredit).

I could not see any .profile in users home directory .

Can anybody suggest how do i this.

Thank you
Ken
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: Set umask to particular user

>I could not see any .profile in users home directory.

You need to create a .profile and add that "umask 022" command.
Steven E. Protter
Exalted Contributor

Re: Set umask to particular user

Shalom,

Create a .profile

Copy it from another user or system and add your umask settings.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Patrick Wallek
Honored Contributor

Re: Set umask to particular user

What shell is the user using?

.profile is good for sh and ksh
.cshrc for csh.
Dennis Handly
Acclaimed Contributor

Re: Set umask to particular user

>SEP: You need to create a .profile and add that "umask 022" command.

Right:
/usr/newconfig/etc/skel/.profile
For the scummy C shell:
/usr/newconfig/etc/skel/.login
Basheer_2
Trusted Contributor

Re: Set umask to particular user

for the user's home dir in their .profile
at the end of .profile add
umask ### ( whatever the mark settings are)