Computer ForumsComputers  

Go Back   Computer Forums > PC Technology Zone > Linux, BSD, other *nixes & Open Source Software

Reply
 
LinkBack Thread Tools Display Modes
Old 03-25-2006, 01:22 PM   #1 (permalink)
Wizard Techie
 
Join Date: Jun 2005
Posts: 3,370
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
Tyler1989 is offline   Reply With Quote
Old 03-25-2006, 03:20 PM   #2 (permalink)
Master Techie
 
Join Date: Apr 2004
Posts: 2,532
Default

man chmod
man chown
horndude is offline   Reply With Quote
Old 03-25-2006, 05:54 PM   #3 (permalink)
Wizard Techie
 
Join Date: Jun 2005
Posts: 3,370
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.
Tyler1989 is offline   Reply With Quote
Old 03-25-2006, 06:25 PM   #4 (permalink)
Master Techie
 
Join Date: Apr 2004
Posts: 2,532
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   Reply With Quote
Old 03-26-2006, 08:35 AM   #5 (permalink)
Junior Techie
 
Join Date: Nov 2005
Posts: 74
Default

use umask;

in ~/.bashrc put something like
Code:
umask 077
man umask for more details
__________________
www.pdgaskell.co.uk
philg is offline   Reply With Quote
Old 03-26-2006, 09:20 AM   #6 (permalink)
Master Techie
 
Join Date: Apr 2004
Posts: 2,532
Default

in .bashrc
horndude is offline   Reply With Quote
Old 03-26-2006, 10:41 AM   #7 (permalink)
Junior Techie
 
Join Date: Nov 2005
Posts: 74
Default

Oops, sorry.

Fixed it now
__________________
www.pdgaskell.co.uk
philg is offline   Reply With Quote
Reply

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



All times are GMT -5. The time now is 09:22 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0