LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-19-2009, 10:52 AM   #1
bigchump
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
Samba Permissions


I setup a samba share called 'company' with a create mask of 770. When I create a file in that share, the permissions on the file are 760 instead of 770. Should they be 770 because I specified the create mask?

[company]
path=/home/company
browseable = yes
writeable = yes
guest ok = no
directory mask = 2770
create mask = 770

$ ll /home/
total 8
drwxrwx--- 3 testuser testgroup 4096 Feb 19 10:21 company

$ ll /home/company/
total 52
-rwxrw---- 1 testuser testgroup 8714 Feb 19 10:21 New Microsoft Office Excel Worksheet (4).xlsx
 
Old 02-19-2009, 03:31 PM   #2
mjlouis
Member
 
Registered: Nov 2008
Posts: 48

Rep: Reputation: 16
Quote:
Originally Posted by bigchump View Post
I setup a samba share called 'company' with a create mask of 770. When I create a file in that share, the permissions on the file are 760 instead of 770. Should they be 770 because I specified the create mask?

[company]
path=/home/company
browseable = yes
writeable = yes
guest ok = no
directory mask = 2770
create mask = 770
Try:
force create mask = 770
 
Old 02-20-2009, 10:31 AM   #3
bigchump
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Testparm doesn't like force create mask:
Unknown parameter encountered: "force create mask"
Ignoring unknown parameter "force create mask"

force create mode seems like it should be doing what I want judging by the man page for smb.conf, but i'm still getting the same behaviour.

I set /home/company to 777, and in smb.conf, I tried setting force create mode to 777 and I get the following permissions on the newly created file:
-rwxrw-rw- 1 testuser testgroup 8714 Feb 20 10:27 New Microsoft Office Excel Worksheet (8).xlsx

Setting create mask in smb.conf to 777 results in the same behavior.
 
Old 02-20-2009, 12:11 PM   #4
mjlouis
Member
 
Registered: Nov 2008
Posts: 48

Rep: Reputation: 16
Sitting down and thinking about it now, samba - or more to the point SMB doesn't really know anything about executable bits on permissions - that's why it's not being set.
Consider it a 'feature' rather than a bug. To show an example, try copying an executable windows file that runs on its own - maybe VNCviewer or putty. Now try and run that file as a member of the group rather than the owner. Windows should run it just fine.

Last edited by mjlouis; 02-20-2009 at 12:17 PM. Reason: Not thinking before posting, Doh!
 
  


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
Samba Permissions Help! carlosinfl Linux - Server 1 05-18-2007 03:41 PM
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM
Samba Permissions canuck_barlow Linux - Newbie 3 01-09-2006 07:38 AM
SAMBA says 'Samba Server is not accebile, you might have no permissions' Ahmad Gurchani Linux - General 1 01-01-2005 10:34 AM
Samba Permissions ppuddick Linux - Networking 2 08-02-2002 03:03 PM

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

All times are GMT -5. The time now is 10:04 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