LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-20-2004, 04:39 PM   #1
tranquil222
LQ Newbie
 
Registered: Nov 2003
Location: Portland, Oregon
Distribution: Redhat Linux 9
Posts: 9

Rep: Reputation: 0
Default Directory Permissions


Okay, we are using Linux White Box and running Samba for our file server. We have set the groups and and assigned everyone to that group. The only problem is that when a user creates a new directory, they become the owner, and the file permissions make it so that they can rwx to it, other users of the group can r-x to it and the rest can r-x to it. Where are the permissions for new directories that users create set? Thanks in advance.
 
Old 05-20-2004, 04:48 PM   #2
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
maybe you could change the umask value in /etc/profile .
 
Old 05-20-2004, 04:51 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
I just tried it, it seems to work.
 
Old 05-20-2004, 04:53 PM   #4
tranquil222
LQ Newbie
 
Registered: Nov 2003
Location: Portland, Oregon
Distribution: Redhat Linux 9
Posts: 9

Original Poster
Rep: Reputation: 0
What exactly did you do ?
 
Old 05-20-2004, 04:57 PM   #5
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
open the file /etc/profile in a text editer. Then change the line umask=022(thats what mine was) to umask=000, this will give full permission on all files that are created. I am not sure if this only effects files that are created in a shell. Probably.
 
Old 05-20-2004, 04:57 PM   #6
tranquil222
LQ Newbie
 
Registered: Nov 2003
Location: Portland, Oregon
Distribution: Redhat Linux 9
Posts: 9

Original Poster
Rep: Reputation: 0
I typed in umask, and the default is 0022 , which is consistent with the privileges that are assigned to each directory.
1. How do i change the value to something that allows rwx to the group and the user and --- to everyone else
2. Do I need to do this for each user on the system?

Thanks in advance for all of your help!
 
Old 05-20-2004, 04:59 PM   #7
tranquil222
LQ Newbie
 
Registered: Nov 2003
Location: Portland, Oregon
Distribution: Redhat Linux 9
Posts: 9

Original Poster
Rep: Reputation: 0
I will try this. Most people obviously are not creating directories in a shell, but in windows via explorer.
 
Old 05-20-2004, 05:09 PM   #8
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
Quote:
Originally posted by tranquil222
I will try this. Most people obviously are not creating directories in a shell, but in windows via explorer.
most people probably do use the mkdir command to make directories. I do lots with the GUI, but I almost always use the command line for that.

Sorry I could not be more helpful.
 
Old 05-20-2004, 05:10 PM   #9
tranquil222
LQ Newbie
 
Registered: Nov 2003
Location: Portland, Oregon
Distribution: Redhat Linux 9
Posts: 9

Original Poster
Rep: Reputation: 0
You were very helpful! I will look into this and get back to you.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default directory and file permissions kodon Slackware 12 02-13-2020 01:49 PM
Default directory permissions gwroy20 Linux - Software 7 08-28-2005 04:30 PM
directory permissions reverting to default Edrin Linux - Newbie 4 11-18-2004 11:05 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM
Need someone to let me know certain default permissions. Nu-Bee Linux - General 2 11-27-2003 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:14 AM.

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
Open Source Consulting | Domain Registration