Hi list! I deleted completely Samba on my Server and reinstalled it again. Now it seems to work, but I have a little problem: if I try to access the home directory of a user and write something, the owner of the created directory/file is a UID, but not the user itself... Could someone help me? This is the definition of the share in my smb.conf: [homes] comment = Home Directories browseable = no writable = yes create mode = 0660 directory mode = 0700 browseable = yes read only = no create mask = 0770 directory mask = 0770 force user = "CCH.INTRA\%U" force group = users The "force user" seems not to help... Thanks Luca Bertoncello (lucabert at lucabert.de)
On 11/04/16 20:30, Luca Bertoncello wrote:> Hi list! > > I deleted completely Samba on my Server and reinstalled it again. > Now it seems to work, but I have a little problem: if I try to access the > home directory of a user and write something, the owner of the created > directory/file is a UID, but not the user itself... > > Could someone help me? > > This is the definition of the share in my smb.conf: > > [homes] > comment = Home Directories > browseable = no > writable = yes > create mode = 0660 > directory mode = 0700 > browseable = yes > read only = no > create mask = 0770 > directory mask = 0770 > force user = "CCH.INTRA\%U" > force group = users > > The "force user" seems not to help... > > Thanks > Luca Bertoncello > (lucabert at lucabert.de) >Can you post your entire smb.conf What OS ? What Samba version ? Rowland
Rowland penny <rpenny at samba.org> schrieb:> Can you post your entire smb.conf > What OS ? > What Samba version ?Samba 4.1.6 on Ubuntu 14.04. My smb.conf: # Global parameters [global] workgroup = CCH realm = CCH.INTRA netbios name = MAIN interfaces = lo, br50 bind interfaces only = Yes server role = active directory domain controller dns forwarder = 192.168.8.19 idmap_ldb:use rfc2307 = yes # Damit die Nutzer sich auch in Linux anmelden können template shell = /bin/bash # Homedir in /home template homedir = /home/%ACCOUNTNAME% # Home automatisch anlegen root preexec = /etc/samba/mkhomedir.sh %ACCOUNTNAME% [netlogon] path = /var/lib/samba/sysvol/cch.intra/scripts read only = No [sysvol] path = /var/lib/samba/sysvol read only = No [homes] comment = Home Directories browseable = no writable = yes create mode = 0660 directory mode = 0700 browseable = yes read only = no create mask = 0770 directory mask = 0770 force user = "CCH.INTRA\%U" force group = users [cch] comment = Public Stuff path = /home/shares/cch public = yes writable = yes browseable = yes force group = users create mode = 0660 directory mode = 0770 [kfzwin] comment = KFZ-Win path = /home/shares/kfzwin public = yes writable = yes browseable = yes force group = users create mode = 0660 directory mode = 0770 [wininst$] comment = Installationsimages path = /home/shares/wininst public = yes writable = no browseable = yes guest ok = yes [tools] comment = Für die Admins path = /home/shares/tools public = no writable = yes browseable = yes valid users = +"CCH.INTRA\Domain Admins" force group = "CCH.INTRA\Domain Admins" create mode = 0660 directory mode = 0770 [gp$] comment = Programme zu installieren path = /home/shares/gp public = yes writable = yes browseable = no valid users = +"CCH.INTRA\Domain Users" force group = "CCH.INTRA\Domain Users" Thanks Luca Bertoncello (lucabert at lucabert.de)