Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> User Sticky Bit, User Sicky Bit default
dougadams
post Jun 9 2005, 07:37 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 9-June 05
Member No.: 5,104



How do you set a user to always have files set to 755 when they create them.
Go to the top of the page
 
+Quote Post
dnvikram
post Aug 13 2006, 05:58 AM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 13-August 06
Member No.: 6,957



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..
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th October 2017 - 04:24 AM