[Samba] trouble with chown and samba
Nicolas Jungers
nicolas at jungers.net
Tue Aug 31 14:28:00 MDT 2010
I cannot change owner and group of a directory or a file on a samba
server. I tried with a win client and smbclient.
Both the server and the smbclient are stock Ubuntu lucid amd64 servers
smbd -V
Version 3.4.7
Here are the relevant config:
#----------------------- smbconf
#------------------
[global]
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
acl check permissions = No
force create mode = 0660
force directory mode = 0770
[common]
path = /srv/samba/common
read only = No
#----------------------- /etc/passwd
#------------------
usercommon1:x:1004:1004:,,,:/srv/samba/common:/bin/bash
common:x:2033:2034:,,,:/srv/samba/common/:/bin/bash
#----------------------- /var/lib/samba/passdb.tdb
#------------------
common:2033:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:58D0B7426D3D476339F7411C6EEBBC3B:[U
]:LCT-4C7C09ED:
usercommon1:1004:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:7D7300E0DEF9143D4AC33EF8FAF9EF86:[U
]:LCT-4C3B20E0:
#----------------------- ll -d /srv/samba/common/ and test/
#------------------
drwxr-xr-x 12 usercommon1 usercommon1 4096 2010-08-31 21:54
/srv/samba/common/
drwxrwxrwx 2 common common 4096 2010-08-31 21:54 /srv/samba/common/test/
#----------------------- Now, doing
#------------------
nicolas at i27:~$ smbclient -U usercommon1 \\\\server\\common passwd
smb: \> stat test
File: \test
Size: 0 Blocks: 0 directory
Inode: 7471243 Links: 2
Access: (0777/drwxrwxrwx) Uid: 2033 Gid: 2034
Access: 2010-08-31 22:16:37 +0200
Modify: 2010-08-31 21:54:34 +0200
Change: 2010-08-31 22:16:17 +0200
smb: \> chown 1004 1004 test
NT_STATUS_ACCESS_DENIED chown file \test uid=1004, gid=1004
What did I miss?
N.
More information about the samba
mailing list