LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-05-2011, 02:08 AM   #1
onsorg
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
Samba permission problem


I have problem configuring samba, here some stuff from my smb.conf.

security mask = 0770
force security mask = 0770
create mode = 0770
force create mode = 0770
directory mode = 0770
force directory mode = 0770

With these settings every new created file get the permission Owner r+w, Group +r, Others none. If I change smb.conf to this:

security mask = 0777
force security mask = 0777
create mode = 0777
force create mode = 0777
directory mode = 0777
force directory mode = 0777

Permission for new files are Owner r+w, Group +r, Others r+w.

How can I get this: Owner r+w, Group r+w, Others none?
 
Old 04-05-2011, 03:44 AM   #2
Cotun
Member
 
Registered: Jan 2009
Location: UK
Distribution: Debian Stable and Unstable
Posts: 61

Rep: Reputation: 21
As far as I can see, 0770 should get you the permissions you want. So you originally had them correctly set. The fact that even 0777 does not give you writable access for group suggests that there is another problem entirely here.

I haven't used Samba for a while, so I can't suggest too much here, but I'd look elsewhere in the configuration for the problem.

Cotun

Last edited by Cotun; 04-05-2011 at 03:52 AM.
 
Old 04-05-2011, 04:07 AM   #3
onsorg
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Here is my smb.conf:
Code:
[global]

   workgroup = MYWORKGROUP
   server string = Samba Server
   security = user
   hosts allow = 192.168.0. 127.

   log file = /var/log/samba/%m.log
   log level = 10
   max log size = 50

unix charset=UTF8
display charset=UTF8

security mask = 0777
force security mask = 0777
create mode = 0777
force create mode = 0777
directory mode = 0777
force directory mode = 0777

[alpha]
   path = /media/alpha
   comment = alpha
   writable = yes
   public = no
   valid users = mike
If I create file to the local partition the permission are Owner r+w, Group r+w. If I connect to the samba server via ssh and create file there the permission are Owner r+w, Group r+w. But every file created to samba share the permission are Owner r+w, Group +r.
 
  


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
Permission problem with Samba shares toothandnail Linux - Networking 0 08-02-2010 09:20 PM
Samba permission problem (probably) pingu Linux - Software 3 01-26-2010 02:23 AM
Samba permission problem bic Linux - Server 3 07-13-2009 10:19 AM
Samba pdc permission problem brecht Linux - Server 1 04-09-2008 07:29 AM
Problem in samba(Folder Permission) RajendraKumar Linux - Software 1 07-30-2006 11:11 AM

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

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