Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 May 2012 14:08:46 +0000
From:      Graeme Dargie <arab@tangerine-army.co.uk>
To:        "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org>
Subject:   Samba acting oddly.
Message-ID:  <4C0F7421AA759346AF17299922AD57EBAEB382@Mercury.universe.galaxy.lcl>

next in thread | raw e-mail | index | archive | help
I have a problem with Samba, well I "think" it is samba as one machine I ha=
ve access to when I try to perform an action like create a new folder in my=
 home folder windows spouts that I need permission and would I like to try =
again.

I guess some background would be useful at this point, I have 3 FreeBSD mac=
hines that were running 8.2 AMD 64, some kind souls on this list were able =
to help me get Samba working using Active Directory, I upgraded to 9.0 when=
 it became available and everything seemed to be fine.

I happened to be needing to create a perl script that would allow two users=
 to chat over a network, so rather than fiddling about with Linux and VM`s =
.. I just used two of my FreeBSD machines, this is when I noticed the issue=
.

Only one machine shows this problem, the others let me happily create / del=
ete stuff in the home folder other shares on the problematic machine are fi=
ne.

The configuration files for all 3 machines is included below, but I just ca=
nnot seen to see why 2 work and 1 does as all three are running Samba35-3.5=
.6.2 so any help or pointers would be welcome.

Regards
Graeme



Machine Eris - samba works perfectly

Smb.conf looks like this
[global]
workgroup =3D UNIVERSE
realm =3D UNIVERSE.GALAXY.LCL
netbiosname =3D ERIS
interfaces =3D re0
security =3D ads
allow trusted domains =3D yes

idmap uid =3D 5000-10000
#idmap gid =3D 15000-20000
winbind gid =3D 5000-10000
template homedir =3D /usr/home/%U
template shell =3D /bin/csh
winbind cache time =3D 3600
winbind nested groups =3D yes
winbind use default domain =3D yes
winbind separator =3D |
winbind enum users =3D yes
winbind enum groups =3D yes
winbind offline logon =3D yes
syslog only =3D Yes
socket options =3D  SO_RCVBUF=3D131072 SO_SNDBUF=3D131072 TCP_NODELAY
use sendfile =3D yes
read raw =3D yes
use sendfile =3D yes
local master =3D no
use sendfile =3D yes
dns proxy =3D no
username map =3D /usr/local/samba/usermap

# ACL Support
map acl inherit =3D yes
#acl group inherit =3D yes
acl group control =3D yes

# LOGGING
log file =3D /var/log/samba/%m
log level =3D 1
max log size =3D 1000
syslog =3D 2
### recycle bin code
# bin
        vfs object =3D recycle
        recycle:repository =3D .RecycleBin/%U
        recycle:keeptree =3D Yes
        recycle:touch =3D Yes
        recycle:versions =3D Yes
        recycle:maxsize =3D 0
        recycle:exclude =3D *.tmp
        recycle:exclude_dir =3D /tmp
        recycle:noversions =3D *.ppt


[homes]
readonly=3Dno


<other shares below>

Machine Proteus - samba working a charm ...
[global]

workgroup =3D UNIVERSE
realm =3D UNIVERSE.GALAXY.LCL
netbiosname =3D PROTEUS
interfaces =3D re0
security =3D ads
allow trusted domains =3D yes

idmap uid =3D 5000-10000
#idmap gid =3D 15000-20000
winbind gid =3D 5000-10000
template homedir =3D /usr/home/%U
template shell =3D /bin/csh
winbind cache time =3D 3600
winbind nested groups =3D yes
winbind use default domain =3D yes
winbind separator =3D |
winbind enum users =3D yes
winbind enum groups =3D yes
winbind offline logon =3D yes
syslog only =3D Yes
socket options =3D TCP_NODELAY SO_RCVBUF=3D65536 SO_SNDBUF=3D65536
use sendfile =3D yes
read raw =3D yes
use sendfile =3D yes
local master =3D no
use sendfile =3D yes
dns proxy =3D no
username map =3D /usr/local/samba/usermap

# ACL Support
map acl inherit =3D yes
#acl group inherit =3D yes
acl group control =3D yes

# LOGGING
log file =3D /var/log/samba/%m
log level =3D 1
max log size =3D 1000
syslog =3D 2


[homes]
read only =3D No


Both of these work with no issues.

However Amalthea which is the machine showing the problem, the smb.conf is =
the following

[global]
workgroup =3D UNIVERSE
realm =3D UNIVERSE.GALAXY.LCL
netbiosname =3D amalthea
interfaces =3D nfe0
security =3D ads
allow trusted domains =3D yes

idmap uid =3D 5000-10000
#idmap gid =3D 15000-20000
winbind gid =3D 5000-10000
template homedir =3D /usr/home/%U
template shell =3D /bin/csh
winbind cache time =3D 3600
winbind nested groups =3D yes
winbind use default domain =3D yes
winbind separator =3D |
winbind enum users =3D yes
winbind enum groups =3D yes
winbind offline logon =3D yes
syslog only =3D Yes
socket options =3D TCP_NODELAY SO_RCVBUF=3D65536 SO_SNDBUF=3D65536
use sendfile =3D yes
read raw =3D yes
use sendfile =3D yes
local master =3D no
use sendfile =3D yes
dns proxy =3D no
username map =3D /usr/local/samba/usermap

# ACL Support
map acl inherit =3D yes
#acl group inherit =3D yes
acl group control =3D yes

# LOGGING
log file =3D /var/log/samba/%m
log level =3D 1
max log size =3D 1000syslog =3D 2

### recycle bin code
# bin
        vfs object =3D recycle
        recycle:repository =3D .RecycleBin/%U
        recycle:keeptree =3D Yes
        recycle:touch =3D Yes
        recycle:versions =3D Yes
        recycle:maxsize =3D 0
        recycle:exclude =3D *.tmp
        recycle:exclude_dir =3D /tmp
        recycle:noversions =3D *.ppt


[homes]
readonly=3Dno




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C0F7421AA759346AF17299922AD57EBAEB382>