Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-22-2006, 12:22 PM   #1
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

Old 02-22-2006, 12:32 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
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:

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 12:42 PM.
Old 02-22-2006, 02:08 PM   #3
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,439
Blog Entries: 1

Rep: Reputation: 66
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.


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 02:49 PM
Restore all default file permissions pauliehaha Linux - General 4 05-26-2011 12:56 AM
Change default file permissions bmorel Linux - Newbie 4 05-08-2005 08:06 PM
Is it possible to create default file permissions? Thermodynamic Linux - Software 3 04-09-2004 06:28 PM
Samba default File Permissions Nelleh Linux - Networking 6 06-06-2002 09:09 AM > Forums > Linux Forums > Linux - Newbie

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

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