LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 12-04-2004, 05:42 AM   #1
z-vet
Member
 
Registered: Aug 2004
Location: Israel
Distribution: Ubuntu 10.10
Posts: 271

Rep: Reputation: 34
How to set permissions for newly created dirs?


Hi, all.
When i create a directory only user have a read/write permission for it, but not group. I need to edit it manually since group have read-only access and i can't just drop files into newly created dir. It's something about umask doesn't set properly, but what? I found some docs on the web and tried to follow it but with no result. Anyone knows an exact way to fix it?
 
Old 12-04-2004, 08:31 AM   #2
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
Check your umask setting by typing umask, it's probably 022. Change it like this:

umask 002

Then create a directory and see if this is what you want. To set it permanently you need to find out in which login script the umask is set. Good candidates are /etc/profile, /etc/bashrc and .bashrc or .bash_profile in your home directory.
 
Old 12-04-2004, 09:06 AM   #3
z-vet
Member
 
Registered: Aug 2004
Location: Israel
Distribution: Ubuntu 10.10
Posts: 271

Original Poster
Rep: Reputation: 34
Thank you, LasseW, it works now. I did a mistake in /etc/profile when edited it. Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newly created File/directory permissions? redrobin77 Fedora 3 11-14-2005 05:55 AM
permissions for newly created files dialbat Linux - General 2 10-04-2004 03:58 PM
Accessing newly created partitions cragwolf Slackware 5 09-13-2004 09:19 PM
How to permanently set permissions on all files created in a directory? BrianK Linux - General 8 06-24-2004 05:06 PM
I can't login with newly created user r_ibsen Linux - Newbie 2 06-19-2004 09:32 AM


All times are GMT -5. The time now is 04:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration