The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

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 01:12 PM
Selective Umask baanprog UNIX for Advanced & Expert Users 3 08-03-2006 10:48 AM
Umask help x96riley3 AIX 1 04-04-2006 04:56 PM
umask rsh UNIX for Dummies Questions & Answers 2 12-14-2002 12:52 PM
umask bb00y UNIX for Dummies Questions & Answers 1 11-06-2002 09:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-27-2008
praveen_b744 praveen_b744 is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 49
Exclamation umask

Hi,

I have a doubt on the umask values.

Why is the UMASK value is different from file and directory?
Suppose if the umask value is 0022. The file permissions for a newly created file is 644 and the file permissions for a newly created directory is 755.
My doubt is why can't it be the 755(same like directory) for file also?
How can I provide the execute permission (default) to a file through UMASK?

Thanks in advance.
  #2 (permalink)  
Old 07-27-2008
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
that depends on how you are creating the files. if you are creating a file using vi, the vi program may not assign certain permissions (x for owner, w for group and others) for newly created files

if you are still in doubt, read this to know how umask is implemented

Last edited by Yogesh Sawant; 07-27-2008 at 03:16 AM.. Reason: added the link
Closed Thread

Bookmarks

Tags
umask

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0