Hey all,
I'm slowly migrating my home network to Linux and am currently trying to set up a file server.
For my setup I'm using Ubuntu Server 16.04 with a ZFS RAIDZ pool and Samba (although I'm quite interested in NFS too).
So far I've had intermittent success with the correct permissions connecting from my remaining Windows boxes and my Linux Mint machine.
I've been Googling around for a couple of days now, but I can't find any definitive information on how to correctly set this stuff up, so I'm hoping somebody here can assist.
I have about 6 users to cater for, and they need different access rights depending on the share.
I have a Public share where we can all dump stuff, some multimedia shares that I want them to have read/write to, a couple of other media shares that I only want some of them to have read access to but others need read/write, and some shares that are just for me.
Problems I'm having are, even with the Samba shares set as I 'think' they should be, sometimes I can't access them, and sometimes I can. Every Samba guide I look at only tells me about Samba, but I'm fairly sure I need to do something with the underlying file permissions too.
The ZFS pool is currently set with owner hts (it's a Tvheadend server too) and group root. As a temporary measure I've run chmod -R 777 over the pool just so I can copy the files back from my Windows server.
All the users have Linux and smb accounts.
The main problem I'm seeing is that everything that's already in the pool that I've run chmod over is accessible (even to people without permissios sometimes!), but every new file I copy over from the Windows server gets that user's permissions and nobody else can access the files.
I've tried changing the user:group of various folders to see if that fixes things, but it only seems to make it worse.
Sample of my smb.conf:
	
	
	
		
All help very gratefully accepted before the air turns completely blue from all the naughty words I've been uttering.
	
		
			
		
		
	
				
			I'm slowly migrating my home network to Linux and am currently trying to set up a file server.
For my setup I'm using Ubuntu Server 16.04 with a ZFS RAIDZ pool and Samba (although I'm quite interested in NFS too).
So far I've had intermittent success with the correct permissions connecting from my remaining Windows boxes and my Linux Mint machine.
I've been Googling around for a couple of days now, but I can't find any definitive information on how to correctly set this stuff up, so I'm hoping somebody here can assist.
I have about 6 users to cater for, and they need different access rights depending on the share.
I have a Public share where we can all dump stuff, some multimedia shares that I want them to have read/write to, a couple of other media shares that I only want some of them to have read access to but others need read/write, and some shares that are just for me.
Problems I'm having are, even with the Samba shares set as I 'think' they should be, sometimes I can't access them, and sometimes I can. Every Samba guide I look at only tells me about Samba, but I'm fairly sure I need to do something with the underlying file permissions too.
The ZFS pool is currently set with owner hts (it's a Tvheadend server too) and group root. As a temporary measure I've run chmod -R 777 over the pool just so I can copy the files back from my Windows server.
All the users have Linux and smb accounts.
The main problem I'm seeing is that everything that's already in the pool that I've run chmod over is accessible (even to people without permissios sometimes!), but every new file I copy over from the Windows server gets that user's permissions and nobody else can access the files.
I've tried changing the user:group of various folders to see if that fixes things, but it only seems to make it worse.

Sample of my smb.conf:
		Code:
	
	[global]
        workgroup = WORKGROUP
        name resolve order = bcast host lmhosts wins
        security = user
        encrypt passwords = yes
        server string = %h server (Samba, Ubuntu)
        dns proxy = no
        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
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        pam password change = yes
        map to guest = bad user
        guest account = nobody
        usershare allow guests = yes
[Recordings]
        comment = Tvheadend Recording Share
        path = /volume1/Recordings
        writable = yes
        browsable = yes
        valid users = bill, ben, me
        create mask = 0775
        directory mask = 0775
[Music]
        comment = My Music
        path = /volume1/Music
        writable = yes
        browsable = yes
        read list = bill, ben, george, zippy
        write list = me, weed
        create mask = 0775
        directory mask = 0775
[Private]
        comment = Other stuff
        path = /volume1/Private
        writable = yes
        browsable = no
        valid users = me
        create mask = 0775
        directory mask = 0775
[Public]
        comment = Public Share
        path = /volume1/Public
        writable = yes
        browsable = yes
        guest ok = yes
        read only = no
        force user = nobodyAll help very gratefully accepted before the air turns completely blue from all the naughty words I've been uttering.
			
				Last edited: 
			
		
	
								
								
									
	
		
			
		
		
	
	
	
		
			
		
		
	
								
							
							 
	 
  
 
		 
 
		 
 
		 ), at which point it became clear that I had created Samba accounts for every user .... except the one I was trying to use - again ... retard.  I would have sworn blind I created it which is why I hadn't given it a second thought.
), at which point it became clear that I had created Samba accounts for every user .... except the one I was trying to use - again ... retard.  I would have sworn blind I created it which is why I hadn't given it a second thought. I'm far from a linux guru too but I'm getting closer every day...
  I'm far from a linux guru too but I'm getting closer every day...