I have been noticing an issue with file permissions and curious as to your thoughts on this. In the one directory the files started as... ...a 777 file was users[100] and root...now they are gc[1002] and fred_smith [1005], but the permissions changed to 764. I have a mask as 775, but this does not seem to be the case??? Here is my smb.conf...curious as to what I may have wrong on this??? [global] workgroup = CLS server string = %h server (Samba, Ubuntu) wins support = yes log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d server role = standalone server passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes pam password change = yes map to guest = bad user [printers] comment = All Printers browseable = no path = /var/spool/samba printable = yes guest ok = no read only = yes create mask = 0700 [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no [gcdata] comment = GreenCare Data Files path = /gcdata valid users = @gcdata force group = gcdata create mask = 0775 directory mask = 0775 writable = yes browseable = yes [gc] comment = GreenCare Data Files path = /gcdata/gc valid users = @gc force group = gc create mask = 0775 directory mask = 0775 writable = yes browseable = yes veto oplock files = *.fxp/*.prg/*.dcx/*.dbf/*.cdx/*.fpt/*.dbc/*.dct/*.sct/*.scx/ [gcarchive] comment = GreenCare Archive Data Files path = /gcdata/gcarchive valid users = @gcarchive force group = gcarchive create mask = 0775 directory mask = 0775 writable = yes browseable = yes [jdh] comment = GreenCare Archive Data Files path = /gcdata/jdh valid users = @jdh force group = jdh create mask = 0775 directory mask = 0775 writable = yes browseable = yes [tmr] comment = TMR Data Files path = /tmrdata/tmr valid users = @tmr force group = tmr create mask = 0775 directory mask = 0775 writable = yes browseable = yes Thomas Rieff GreenCare 1717 3rd Avenue Mankato, MN 56001
On Tue, Mar 05, 2019 at 08:56:23PM +0000, Thomas Rieff via samba wrote:> I have been noticing an issue with file permissions and curious as to your thoughts on this. > In the one directory the files started as... > ...a 777 file was users[100] and root...now they are gc[1002] and fred_smith [1005], but the permissions changed to 764. I have a mask as 775, but this does not seem to be the case??? > Here is my smb.conf...curious as to what I may have wrong on this??? > > > [global] > > workgroup = CLS > > server string = %h server (Samba, Ubuntu) > > wins support = yes > > log file = /var/log/samba/log.%m > > max log size = 1000 > > syslog = 0 > > panic action = /usr/share/samba/panic-action %d > > server role = standalone server > > passdb backend = tdbsam > > obey pam restrictions = yesTry removing "obey pam restrictions = yes". Alexander discovered this changes the umask on the server.