LinuxQuestions.org
Help answer threads with 0 replies.
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 03-23-2016, 05:28 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Rep: Reputation: 180Reputation: 180
Unable to save to samba mount having group-write priv


I have Slackware64 14.1 and it has been running samba 4.x for over 6 months without problem. I just updated the OS and now have Samba 4.1.23 running (not sure what the previous version was -- it's gone). Now, on samba mapped folders to Windows, users cannot write to directories if they are not the owner, even if the folder has group rw and the samba account is the same group. For example:

Code:
$ ls -l /srv/tomcat/webapps/ohprs/downloads/minutes
drwxrwsr-x 2 mfoley ohprs 4096 2016-02-22 09:54 Retirement\ Board/
The folder is owned by mfoley, but is group writable to members of the ohprs group.

Members of ohprs are:

ohprs:x:301:mfoley,tomcat,daemon,apache

and also:

ohprso:x:1001:301:OHPRS Web FTP User:/srv/tomcat/webapps/ohprs/downloads:/bin/bash
ohprs:x:1002:301:HPRS Batch:/home/ohprs:/bin/bash
guest:x:1001:301:Samba guest account:/dev/null:/bin/false

Notice that guest and ohprso are the same UID.

Relevant smb.conf is:
Code:
[global]

netbios name = WEBSERVER
   workgroup = WORKGROUP
   server string = HPRS webserver Samba Server

   security = user
   map to guest = Bad User

   hosts allow = 192.168.0. 127.

guest account = guest

   passdb backend = tdbsam

   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

   dns proxy = no

[website]
path = /srv/tomcat/webapps/ohprs
public = yes
guest ok = yes
guest only = yes
writeable = yes
browseable= yes
printable = no
create mask = 0660
directory mask = 0771
So, why could group members of ohprs (301) write to this folder before, but not now? How can I fix thix?
 
Old 03-23-2016, 11:28 PM   #2
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Original Poster
Rep: Reputation: 180Reputation: 180
Never mind. Duh! I now remember I had this problem last time I installed Slackware 14.1. The out-of-the-box samba has this problem, but the updates fix it. I didn't restart samba after updating. When I did, problem gone!
 
  


Reply

Tags
permission denied, samba



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
group user in unable to read/write into the folder thirupathi Linux - Security 1 11-30-2013 03:57 PM
[SOLVED] Write permission for group in samba share mandyapenguin Linux - Newbie 8 01-19-2012 10:38 AM
samba group user write kashif2131971 Linux - Newbie 2 06-03-2008 08:57 AM
Question about chmod and group priv's Thaidog Linux - General 5 01-31-2007 03:24 PM
How to mount ntfs partition so a group can write to it? greengrocer Linux - Newbie 3 10-23-2005 12:26 AM

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

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