LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-23-2011, 11:21 AM   #1
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
Saving a file removes the group execute permission


Hi,

Here are some example files that are shared through samba:

-rwxrwx--- user1 group1 file1.txt
-rwxrwx--- user1 group1 file2.txt

When user2 (who is also a member of group1) edits file2.txt the permissions change:

-rwxrwx--- user1 group1 file1.txt
-rwxrw---- user2 group1 file2.txt

user1 then has issues opening the file. This also goes for new files that are created (they are missing the group execute permission).

I have set the option "create mask = 0770" in my smb.conf. Without this set, permissions default to something like -rwxr--r-- so this has helped a bit!

Any help would be greatly appreciated.

Last edited by jsteel; 05-23-2011 at 11:53 AM.
 
Old 05-24-2011, 04:16 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Hi jsteel,

It's been quit a few years since I used samba, so hopefully I can help out here. The mask setting in the smb.conf might be over-riden by the default umask setting on the unix directories, ususally this is set in either /etc/bashrc or /etc/profile, maybe try googling how to set the default umask to allow the group ownership to be set by default.
 
  


Reply



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
How can we set permission type on a file to a particular user in a group ? rakeshkumar.techie Linux - Newbie 3 01-20-2011 09:30 AM
File Permission - Read an execute only file e_x_p Linux - Security 1 12-16-2009 07:08 AM
Change owner, group and permission settings on file and folder creation?? helptonewbie Linux - Newbie 9 12-17-2007 03:03 PM
Multiple file/group permission questions JustinCoyan Slackware 3 04-19-2005 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:10 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
Open Source Consulting | Domain Registration