Results 1 to 3 of 3
What is the command to fix the permissions for file creation?
Thanks...
- 03-25-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 1
Permission Settings
What is the command to fix the permissions for file creation?
Thanks
- 03-25-2009 #2
Have you looked into chmod ?
try
man chmod- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 03-25-2009 #3
chmod will allow you to modify the permissions of an existing file.
If you are looking for a way to modify the permissions given to brand new files that you create, you will want to look into umask. Basically, umask takes in a number, and will subtract that number from 777 to get the permissions to give to new files (so umask lists the permissions that you _don't_ want your new file to have). On a bit more technical level, it works like this:
Does that help/make sense?Code:permissions = 0777 & ~umask
DISTRO=Arch
Registered Linux User #388732


Reply With Quote