Unix/Linux Go Back    

UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Umask help!

UNIX for Dummies Questions & Answers

Thread Tools Search this Thread Display Modes
Old Unix and Linux 02-07-2013
Xedrox Xedrox is offline
Registered User
Join Date: Dec 2011
Last Activity: 5 September 2014, 4:05 PM EDT
Posts: 28
Thanks: 4
Thanked 0 Times in 0 Posts
Umask help!

Hi guys,

I want all new files and directories created, or copy file give this permisson "rwxrwx---", with chmod i do this with octal value "770". If i execute "umask 770" the permissons is not the same with new or copy file. How can i configure this command? I do not understand the "man umask".

Sponsored Links
Old Unix and Linux 02-07-2013
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Join Date: Sep 2005
Last Activity: 25 September 2017, 3:35 PM EDT
Location: Switzerland - GE
Posts: 6,459
Thanks: 284
Thanked 549 Times in 511 Posts
1) umask will create a default mask... it will not make you files executable for you...
2) the umask you want is 007...
when you create a new file with that mask you will see it set as -rw-rw----
The Following User Says Thank You to vbe For This Useful Post:
Xedrox (02-07-2013)
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
UMASK steve.lavoie AIX 1 04-19-2011 04:49 PM
Umask felix001 UNIX for Dummies Questions & Answers 1 04-30-2009 10:06 PM
umask falcon16 Solaris 7 03-18-2009 11:47 PM
umask praveen_b744 UNIX for Dummies Questions & Answers 1 07-27-2008 02:14 AM
Umask help x96riley3 AIX 1 04-04-2006 03:56 PM

All times are GMT -4. The time now is 01:30 AM.