Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > PC Technology Zone > Linux, BSD, other *nixes & Open Source Software » setting drwx------ file permission as defualt
Closed Thread
Old 03-25-2006, 02:22 PM   #1 (permalink)
 
Wizard Techie

Join Date: Jun 2005

Posts: 3,346

Tyler1989

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

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
__________________
<form action=\"http://www.srsyo.org/tfsearch.php\" method=\"get\">
<input type=\"text\" name=\"search\"> <input type=\"submit\" name=\"submit\" value=\"Search TF before you post!\"></form>
Vista Discussion | 64 Bit Discussion |Microsoft Homepage | Yo Linux | Paul Thurrott | Fire Fox | Thunder Bird | Image Shack | Photo Bucket | Put File | Anti-Spyware | MS Anti-Spyware | Trillian | Anti-Virus | On Line Virus Scan
Tyler1989 is offline  
Old 03-25-2006, 04:20 PM   #2 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

man chmod
man chown
horndude is offline  
Old 03-25-2006, 06:54 PM   #3 (permalink)
 
Wizard Techie

Join Date: Jun 2005

Posts: 3,346

Tyler1989

Default

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.
__________________
<form action=\"http://www.srsyo.org/tfsearch.php\" method=\"get\">
<input type=\"text\" name=\"search\"> <input type=\"submit\" name=\"submit\" value=\"Search TF before you post!\"></form>
Vista Discussion | 64 Bit Discussion |Microsoft Homepage | Yo Linux | Paul Thurrott | Fire Fox | Thunder Bird | Image Shack | Photo Bucket | Put File | Anti-Spyware | MS Anti-Spyware | Trillian | Anti-Virus | On Line Virus Scan
Tyler1989 is offline  
Old 03-25-2006, 07:25 PM   #4 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

chgrp in combination with chmod

use it on home directory, should do it I think

http://www.tuxfiles.org/linuxhelp/fi...s.html#howsymb
horndude is offline  
Old 03-26-2006, 09:35 AM   #5 (permalink)
 
Junior Techie

Join Date: Nov 2005

Posts: 74

philg

Default

use umask;

in ~/.bashrc put something like
Code:
umask 077
man umask for more details
__________________
www.pdgaskell.co.uk
philg is offline  
Old 03-26-2006, 10:20 AM   #6 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

in .bashrc
horndude is offline  
Old 03-26-2006, 11:41 AM   #7 (permalink)
 
Junior Techie

Join Date: Nov 2005

Posts: 74

philg

Default

Oops, sorry.

Fixed it now
__________________
www.pdgaskell.co.uk
philg is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On