We have this situation: System A (running openSUSE 11.0 with samba-3.2.3-0.1) exports user home shares (e.g. for user sledz). On system B (running openSUSE 11.0 with samba-3.2.3-0.1) user hydra mounts the home share from sledz at system A with this command: sudo mount -t cifs -o user=sledz,uid=hydra //A/sledz localdir A subdir of this directory seen from A looks like this: sledz@A> ls -laF . total 12 drwxr-xr-x 3 sledz domain users 4096 2008-09-02 10:33 ./ drwxr-xr-x 3 sledz domain users 4096 2008-09-02 09:54 ../ drwxr-xr-x 2 sledz domain users 4096 2008-09-02 09:52 foo/ sledz@A> ls -laF foo total 16 drwxr-xr-x 2 sledz domain users 4096 2008-09-02 09:52 ./ drwxr-xr-x 3 sledz domain users 4096 2008-09-02 10:33 ../ -rw-r--r-- 1 sledz domain users 3 2008-09-02 09:52 23.txt -rw-r--r-- 1 sledz domain users 3 2008-09-02 09:52 42.txt The same dir seen from B looks like this: hydra@B> ls -laF . total 0 drwxr-xr-x 3 hydra domain users 0 2008-09-02 10:33 ./ drwxr-xr-x 3 hydra domain users 0 2008-09-02 09:54 ../ drwxr-xr-x 2 hydra domain users 0 2008-09-02 09:52 foo/ hydra@B> ls -laF foo total 8 drwxr-xr-x 2 hydra domain users 0 2008-09-02 09:52 ./ drwxr-xr-x 3 hydra domain users 0 2008-09-02 10:33 ../ -rw-r--r-- 1 hydra domain users 3 2008-09-02 09:52 23.txt -rw-r--r-- 1 hydra domain users 3 2008-09-02 09:52 42.txt When I try to copy the subdir foo on B a error occurs: hydra@B> cp -rv foo bar `foo' -> `bar' `foo/23.txt' -> `bar/23.txt' cp: cannot create regular file `bar/23.txt': Permission denied `foo/42.txt' -> `bar/42.txt' cp: cannot create regular file `bar/42.txt': Permission denied The access rights of bar look like this: hydra@B> ls -laF bar total 0 drwxr-xr-x 2 hydra domain users 0 2008-09-02 10:38 ./ drwxr-xr-x 4 hydra domain users 0 2008-09-02 10:38 ../ If I try to copy the files now everything is fine: hydra@HydraIP-180:~/ssz/bla/tmp> cp -v foo/* bar/ `foo/23.txt' -> `bar/23.txt' `foo/42.txt' -> `bar/42.txt' So what's the cause for the "Permission denied" error above? :(
what the unix file permissions like on the system A ? Sledz, Steffen wrote:> We have this situation: > > System A (running openSUSE 11.0 with samba-3.2.3-0.1) exports user home shares (e.g. for user sledz). > > On system B (running openSUSE 11.0 with samba-3.2.3-0.1) user hydra mounts the home share from sledz at system A with this command: > > sudo mount -t cifs -o user=sledz,uid=hydra //A/sledz localdir > > A subdir of this directory seen from A looks like this: > > sledz@A> ls -laF . > total 12 > drwxr-xr-x 3 sledz domain users 4096 2008-09-02 10:33 ./ > drwxr-xr-x 3 sledz domain users 4096 2008-09-02 09:54 ../ > drwxr-xr-x 2 sledz domain users 4096 2008-09-02 09:52 foo/ > sledz@A> ls -laF foo > total 16 > drwxr-xr-x 2 sledz domain users 4096 2008-09-02 09:52 ./ > drwxr-xr-x 3 sledz domain users 4096 2008-09-02 10:33 ../ > -rw-r--r-- 1 sledz domain users 3 2008-09-02 09:52 23.txt > -rw-r--r-- 1 sledz domain users 3 2008-09-02 09:52 42.txt > > The same dir seen from B looks like this: > > hydra@B> ls -laF . > total 0 > drwxr-xr-x 3 hydra domain users 0 2008-09-02 10:33 ./ > drwxr-xr-x 3 hydra domain users 0 2008-09-02 09:54 ../ > drwxr-xr-x 2 hydra domain users 0 2008-09-02 09:52 foo/ > hydra@B> ls -laF foo > total 8 > drwxr-xr-x 2 hydra domain users 0 2008-09-02 09:52 ./ > drwxr-xr-x 3 hydra domain users 0 2008-09-02 10:33 ../ > -rw-r--r-- 1 hydra domain users 3 2008-09-02 09:52 23.txt > -rw-r--r-- 1 hydra domain users 3 2008-09-02 09:52 42.txt > > When I try to copy the subdir foo on B a error occurs: > > hydra@B> cp -rv foo bar > `foo' -> `bar' > `foo/23.txt' -> `bar/23.txt' > cp: cannot create regular file `bar/23.txt': Permission denied > `foo/42.txt' -> `bar/42.txt' > cp: cannot create regular file `bar/42.txt': Permission denied > > The access rights of bar look like this: > > hydra@B> ls -laF bar > total 0 > drwxr-xr-x 2 hydra domain users 0 2008-09-02 10:38 ./ > drwxr-xr-x 4 hydra domain users 0 2008-09-02 10:38 ../ > > If I try to copy the files now everything is fine: > > hydra@HydraIP-180:~/ssz/bla/tmp> cp -v foo/* bar/ > `foo/23.txt' -> `bar/23.txt' > `foo/42.txt' -> `bar/42.txt' > > So what's the cause for the "Permission denied" error above? :( >
> try giving the files 0755 permsHmmm? What's the intention for this? They had 0644 perms. Why should the x-bit change the behaviour? Even though that's not clear for me I still tried it and got this. :( hydra@B> ls -laF foo/ total 8 drwxr-xr-x 2 hydra domain users 0 2008-09-02 09:52 ./ drwxr-xr-x 3 hydra domain users 0 2008-09-02 11:24 ../ -rwxr-xr-x 1 hydra domain users 3 2008-09-02 09:52 23.txt* -rwxr-xr-x 1 hydra domain users 3 2008-09-02 09:52 42.txt* hydra@B> cp -rv foo bar `foo' -> `bar' `foo/23.txt' -> `bar/23.txt' cp: cannot create regular file `bar/23.txt': Permission denied `foo/42.txt' -> `bar/42.txt' cp: cannot create regular file `bar/42.txt': Permission denied
> could be related to mapping of dos attribsHmmm? I can't believe this. No DOS or Windows system is involved.> map read only > map system > map hiddenOK, after reading the documentation on this items I understand your first remark. ;-) map archive = Yes map hidden = No map system = No map readonly = yes This seems to be OK.> and the create mask all affect permissonscreate mask = 0744 This too.
> From: Damien Dye > > could you also show whats logged when you do this you might > need to turn up the log level.I'd send Damian the whole log but he wrote "going though the log it doesn't appear that the smbd server is denying it." Any other ideas? Or suggestions how to debug the problem?