Help - Search - Members - Calendar
Full Version: User Sticky Bit
Linuxhelp > In The Community > General Discussion
dougadams
How do you set a user to always have files set to 755 when they create them.
dnvikram
QUOTE (dougadams @ Jun 10 2005, 06:07 AM) *
How do you set a user to always have files set to 755 when they create them.


Hi Doug!

Unfortunately this is not possible by default in linux...If u observe,the default permission for a file woud be 644 and for a dir it wud be 755.This also depends on the umask value.which is by default set to 0022.U can check this with the command umask from the command line.

Maybe you can try writing a script which will act as a wrapper for the commands which are used to create files(ex:touch,cat>,vi).When,one of these are used to create a file,the script will immediately invoke the chmod <perm> and change the perm of the file..so it will sort of transparent...

Y dont u explore the possibility of achieving this thru ACL??Im not sure..u can try....

let me know incase of any progress in ur trials..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.