[ale] umask question

Joe Steele joe at madewell.com
Mon Dec 31 14:58:26 EST 2001


I don't think umask will do what you want it to do.  It only has the 
ability to take away access permissions on newly created files;  It 
cannot supplement them.  If a program wants to create a file with 666 
permissions, then your options are to either chmod the file to 777 
after it's created or else modify the program.

As for 'man umask' --  It's one of those commands ('ulimit' is 
another example) that can only be implemented as a built-in shell 
command.  It doesn't exist as a stand alone command with its own man 
page (except, of course, for the libc function).  For documentation, 
try 'man bash' and then search for 'umask'.

--Joe

-----Original Message-----
From:	Ken Nagorski [SMTP:kenn at refriedgeek.com]
Sent:	Monday, December 31, 2001 9:45 AM
To:	ale at ale.org
Subject:	[ale] umask question

Hi there,

This seems like it should be easy however I am not sure how I would do this.
I need to have all files in certian directory get 777 permissions. I think I
could do this? 

I looked at `man umask` and it was for the C function call. 

Any ideas where to look?

Thanks
Ken

----------------------------------------------
But I don't want to go among mad people,
Alice remarked.
Oh, you can't help that, said the Cat:
we're all mad here. I'm mad. You're mad.
How do you know I'm mad? said Alice.
You must be, said the Cat,
or you wouldn't have come here.


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list