/etc/samba/smb.conf :
[global]
workgroup = w
server string = server
security = user
load printers = no
debug level = 10
log file = /var/log/samba/%m.log
max log size = 5000
dns proxy = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
unix extensions = no
# if I comment above line, I can write to /home/shareuser/writable
follow symlinks = yes
wide links = yes
[writable]
comment = test
writable = yes
valid users = shareuser
path=/home/shareuser/writable
shareuser has valid passwd and smbpasswd (-a)
I mount the share like this: mount -t cifs //server/writable mountpoint/ -o username=shareuser
With unix extensions = yes
, I can write to the share.
With unix extensions = no
, I can't write to the share.
Any help greatly appreciated :)
Edit: simplified the example
Edit: /var/log/samba/log.smbd
[2012/09/23 22:42:32, 0] smbd/server.c:1053(main)
smbd version 3.6.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/09/23 22:42:32, 5] ../lib/util/debug.c:330(debug_dump_status)
INFO: Current debug levels:
all: 10
tdb: 10
printdrivers: 10
lanman: 10
smb: 10
rpc_parse: 10
rpc_srv: 10
rpc_cli: 10
passdb: 10
sam: 10
auth: 10
winbind: 10
vfs: 10
idmap: 10
quota: 10
acls: 10
locking: 10
msdfs: 10
dmapi: 10
registry: 10
doing parameter log file = /var/log/samba/%m.log
doing parameter max log size = 5000
doing parameter dns proxy = no
doing parameter printing = bsd
doing parameter printcap name = /dev/null
doing parameter disable spoolss = yes
doing parameter unix extensions = no
doing parameter follow symlinks = yes
doing parameter wide links = yes
[2012/09/23 22:42:32, 4] param/loadparm.c:9608(lp_load_ex)
pm_process() returned Yes
[2012/09/23 22:42:32, 7] param/loadparm.c:9834(lp_servicenumber)
lp_servicenumber: couldn't find homes
[2012/09/23 22:42:32, 10] param/loadparm_server_role.c:101(set_server_role)
set_server_role: role = ROLE_STANDALONE
[2012/09/23 22:42:32, 5] ../lib/util/charset/codepoints.c:235(map_locale)
Substituting charset 'UTF-8' for LOCALE
[2012/09/23 22:42:32, 2] lib/tallocmsg.c:124(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2012/09/23 22:42:32, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Edit: /var/log/samba/smbd.log
debug level = 10
andsecurity = user
in global section – akond Sep 23 '12 at 19:55unix extensions = no
in my home system only. At work apparently the situation is different. But at home I have FreeBsd. So... NFS is much better than Samba for Linux/Unix. Much-much better. And yeah, nothing prevents you from using both NFS and Samba at the same time. – akond Sep 24 '12 at 15:02allow insecure wide links = yes
andwide links = yes
. But this creates a security risk. – akond Sep 24 '12 at 17:05follow symlinks = yes
,wide links = yes
andallow insecure wide links = yes
, I still can only cd into symlinks pointing to folders inside the share, not symlinks pointing to folders outside the share. – MCH Sep 24 '12 at 17:39create mask = 0775
,directory mask = 2775
,force create mode = 775
,force directory security mode = 2775
andforce group = +it
solved my problem. – Brad Mace Apr 17 '13 at 14:30