Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


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 !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-11-2012
Registered User
 
Join Date: Jul 2009
Posts: 69
Thanks: 24
Thanked 1 Time in 1 Post
umask conundrum

Hi All,

i was reading up on a umask question on this forum and have a question on this.


the umask value on my home PC running on cygwin is 022. when i create a dir it defaults to permission 755, when i create a file it defaults to 644. Now it starts at 777 for dirs and 666 for files and negate the umask value to get the default permission.



Code:
My question is: i want to change the default file permission create to 755 but without altering the default dir permission. Is this possible ? if so how ?

Sponsored Links
    #2  
Old 07-11-2012
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Location: Zürich
Posts: 6,834
Thanks: 212
Thanked 745 Times in 651 Posts
No. You can't use umask to create executable files.

I'm not sure what the second part of your question is asking "Now it starts at 777 for dirs and 666 for files..."
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sed pattern space/looping conundrum tiggyboo Shell Programming and Scripting 4 05-10-2011 04:30 PM
Unix Grep Conundrum - Not for Noobies owenian UNIX Desktop for Dummies Questions & Answers 13 01-22-2011 04:00 PM
The Geek&Poke Easter Conundrum 2009 Linux Bot Cartoons for Geeks 0 04-12-2009 05:45 AM
The Big Conundrum Linux Bot Cartoons for Geeks 0 02-02-2009 07:10 AM



All times are GMT -4. The time now is 07:22 AM.