setting drwx------ file permission as defualt

Status
Not open for further replies.

Tyler1989

Fully Optimized
Messages
3,339
How can you set the file permissions to read, write, and execute for the owner only but not allow groups or others to read, write, or execute by defualt when you make a new file.


By defualt I currently have these file permissions

owner = read, write, exucute
group = read, exucute
other = read, exucute

drwxr-xr-x
 
I'll admit I haven't fully looked over the manuals but isn't that for changing individual files and folders not setting a defualt.
 
use umask;

in ~/.bashrc put something like
Code:
umask 077

man umask for more details
 
Status
Not open for further replies.
Back
Top Bottom