LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-22-2006, 11:22 AM   #1
dmccauley
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Default File Permissions?


Hello All,

I've been given the task of administering a Debian Linux server that runs pretty well and has only needed the occasional user added etc.

The server has a public folder that is accessible to everyone on the network (10 users). New folders and files are created all the time (very neat users!) and it seems that when 3 of the users create new files or folders, they are created with no 'write' permissions for other users in the group or 'everyone'.
As a result, the other 7 users can view these files and folders, but not modify them.

I can reset this by using chmod, but of course as soon as a new file/folder is created the problem starts again.

I'm a complete newbie and would appreciate any advice on how to view & change the default file/folder permissions for a user (if that is the problem!)

Thanks in advance

Dave.
 
Old 02-22-2006, 11:32 AM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I want to say that if you chmod g+s directoryname then all files/subdirectories will be created with the group permissions of directoryname.

You might google for this though since I'm a bit of a newbie myself and sometimes all the info I've read gets confused in my brain...

Here's another link from a quick google: http://www.udel.edu/topics/os/unix/g...upsharing.html

It's unix based, but should be okay. Not sure about the long command about setting the defaults...

Last edited by pljvaldez; 02-22-2006 at 11:42 AM.
 
Old 02-22-2006, 01:08 PM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
May be the user's umask is not set as you want.
An umask 002 will create directories 0775 (drwxrwxr-x) and files 0664 (-rw-rw-r--).
This applies to every place they create dir/files, not just to a specific dir.

The pljvaldez's solution is more specific and may be the right choice for 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
Restore all default file permissions pauliehaha Linux - General 4 05-25-2011 11:56 PM
Change default file permissions bmorel Linux - Newbie 4 05-08-2005 07:06 PM
Default directory and file permissions kodon Slackware 10 08-08-2004 08:27 AM
Is it possible to create default file permissions? Thermodynamic Linux - Software 3 04-09-2004 05:28 PM
Samba default File Permissions Nelleh Linux - Networking 6 06-06-2002 08:09 AM


All times are GMT -5. The time now is 01:00 AM.

Main Menu
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