[Samba] Changing file ownership from Windows
Marek Drápal
drapal at email.cz
Thu Apr 7 14:22:21 GMT 2005
Hi,
thank you very much for your reply. Actually it seems, that the problem is
somewhere else. I'll show why.
> It's possible you don't have ACL support either in your distro, Samba or
> both.
I think I have both. Here are some proofs:
1) xi:/home/public# mount
...
/dev/hda4 on /home type ext3 (rw,acl)
2)xi:/home/public# ll /home/public/ttt.txt
-rwxrwxrwx+ 1 root w2k-domain-admins 0 2005-04-07 15:55 /home/public/ttt.txt
xi:/home/public# getfacl /home/public/ttt.txt
getfacl: Removing leading '/' from absolute path names
# file: home/public/ttt.txt
# owner: root
# group: w2k-domain-admins
user::rwx
group::rwx
group:w2k-zamestnanci:r-x
mask::rwx
other::rwx
3) The same file after playing with windows exploder
xi:/home/public# ll /home/public/ttt.txt
-r--rwx---+ 1 root w2k-domain-admins 0 2005-04-07 15:55 /home/public/ttt.txt
xi:/home/public# getfacl /home/public/ttt.txt
getfacl: Removing leading '/' from absolute path names
# file: home/public/ttt.txt
# owner: root
# group: w2k-domain-admins
user::r--
group::r--
group:Ucetnici:r-x
mask::rwx
other::---
As you can see I was able to change the permissions, ACL group, BUT I am
unable to change main owner and group! When I try to change it I get no error,
but the group/owner I changed is added via ACL and the main group/owner is
unchanged (everything done under root in windows).
Turnig off inheritence doesn't help.
Any hints?
Marek Drapal
Here is some info about my system:
* Debian testing with 2.6.8-1-386
* smbd --version = Version 3.0.10-Debian
* smb.conf (parts):
[global]
admin users = root, TW\root
username map = /etc/samba/smbusers
netbios name = xi
workgroup = TW
server string = "TW XI Samba-3 Server"
wins support = yes
dns proxy = no
name resolve order = wins bcast host
security = user
encrypt passwords = true
passdb backend = tdbsam
unix password sync = no
domain master = yes
preferred master = yes
local master = yes
domain logons = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 33
map acl inherit = yes
nt acl support = yes
[public]
path=/home/public
comment = "Public Directories"
browseable = yes
writable = yes
admin users = root
* xi:/home/public# net groupmap list
System Operators (S-1-5-32-549) -> -1
Ucetnici (S-1-5-21-1269125357-2084727546-3002100113-3037) -> Ucetnici
Replicators (S-1-5-32-552) -> -1
Guests (S-1-5-32-546) -> -1
Domain Admins (S-1-5-21-1269125357-2084727546-3002100113-512) -> w2k-domain-admins
Domain Guests (S-1-5-21-1269125357-2084727546-3002100113-514) -> w2k-domain-guests
Power Users (S-1-5-32-547) -> -1
Print Operators (S-1-5-32-550) -> -1
Administrators (S-1-5-32-544) -> w2k-domain-admins
Domain Users (S-1-5-21-1269125357-2084727546-3002100113-513) -> w2k-domain-users
Account Operators (S-1-5-32-548) -> -1
Zamestnanci (S-1-5-21-1269125357-2084727546-3002100113-3029) -> w2k-zamestnanci
Backup Operators (S-1-5-32-551) -> -1
Users (S-1-5-32-545) -> -1
>
> --Tonni
>
> --
> Nothing sucksseeds like a pigeon without a beak ...
>
> mail: tonye at billy.demon.nl
> http://www.billy.demon.nl
>
> They love us, don't they, They feed us, won't they ...
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
>
More information about the samba
mailing list