Hello!
I have two linux-based server (eg. server1 and server2) that are members of
Windows-2000-domain TEST.
On Server1 there's folder EXCHANGE with ACL permission shared through
samba-3.0.10:
drwxr-xr-- "TEST\user" "TEST\domain users" EXCHANGE
it works OK for domain users and the owner (TEST\user) can control permissions.
Now I want to copy the data from this folder (EXCHANGE) to Server2 with the same
ACL-permissions for domain users.
For this I've done:
1. Server2 joined to domain TEST (net rpc join -S PDC -U admin)
wbinfo -g --> OK
wbinfo -u --> OK
2. mount //server1/EXCHANGE to server2 to folder /mountExchange
BUT!
mounted folder has permission like this:
#drwxr-xr-- 15878 TEST\domain users /mountExchange
So, when I copy the data from mounted folder to local folder (cp -rpa
<fromdir> <todir>), files are also copied with unrecognized UID:
#drwxr-xr-- 15892 TEST\domain users /mount/Exchange/soft
# cd ./soft
#rwxr-xr-- 15892 TEST\domain users /mountExchange/soft/README.txt
as you can see UID doesn't match on servers.
some conf files:
Server1
smb.conf (samba-3.0.14)
[global]
workgroup = TEST
server string security = DOMAIN
log file = /var/log/samba/%m.log
max log size = 50
acl compatibility = win2k
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
idmap uid = 15000-20000
idmap gid = 15000-20000
map acl inherit = Yes
[exchange]
path = /public/exchange
valid users = "TEST\domain users"
admin users = TEST\admin
read only = No
vfs objects = recycle, extd_audit
recycle:touch = yes
recycle:keeptree = yes
recycle:repository = Trash/%U
Server2
smb.conf (samba-3.0.25b)
[global]
workgroup = TEST
server string security = DOMAIN
log file = /var/log/samba/%m.log
max log size = 50
acl compatibility = win2k
idmap uid = 15000-20000
idmap gid = 15000-20000
map acl inherit = Yes
SID of domain users are the same on both servers:
Server1
#wbinfo -n "TEST\user"
#wbinfo -S S-1-5-21-4219080837-1407974555-4163626113-1379
15342
Server2
#wbinfo -n "TEST\user"
#wbinfo -S S-1-5-21-4219080837-1407974555-4163626113-1379
15002
Does anybody know why UID doesn't migrate from one server to another?
Thanks for any idea!
Igor