The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help on umask suvendu4urs Linux 6 04-11-2008 09:12 AM
Umask help x96riley3 AIX 1 04-04-2006 12:56 PM
Umask Issues chimpu UNIX for Dummies Questions & Answers 3 05-28-2004 05:15 AM
umask rsh UNIX for Dummies Questions & Answers 2 12-14-2002 08:52 AM
umask bb00y UNIX for Dummies Questions & Answers 1 11-06-2002 05:59 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-21-2001
Registered User
 

Join Date: Oct 2001
Location: Sydney
Posts: 1
Stumble this Post!
Issues with umask

Are there any known issues with umask. I have having a problem that some of the new files are not created with the default permissions of umask 002.
Wondering if anyone of you could have an answer to this
Cheers,
Neeraj
Forum Sponsor
  #2 (permalink)  
Old 10-22-2001
Kelam_Magnus's Avatar
Unix does a body good.
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Stumble this Post!
umask problems

neerajchallana,

Couple of questions. My answer is from the point of view of HPUX OS.

What OS version do you have?
Are you trying to do this remotely?

Perform these commands and see what you get.

umask
umask -S
remsh systemname umask
remsh systemname umask -S

Check your /etc/profile. It is the default profile for users if they don't have a .profile in their home directory.

Also, check in each affected user's home directory .profile. Do "grep umask .profile" in the user's home dir. If you get nothing then you will need to modify their .profile and add a line like this:

umask 002
:wq!

I have recently found out that if you execute remsh with your system name and umask, you get the DEFAULT for the system type you have regardless of the umask that you set when files are created. This is a security measure built into the OS, at least for HPUX.

On "trusted" systems, the default umask for remote access is 066.

On an non-trusted system, the default umask is 000.

Also, another little tidbit. If you set your umask to some exe permissions, like umask 000. Touch a file and check the permissions on it. I guarantee you it will only be 666! Do it and find out.

# umask 000
# touch file1
# ls -l file1
-rw-rw-rw- file1


This maybe too much info, but I just had an issue with umask and remsh.
__________________
My brain is your brain
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:49 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0