[Samba] Permission denied on mounted CIFS share

Damien Dye damien.dye at technophobia.com
Tue Sep 2 09:12:56 GMT 2008


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 at 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 at 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 at 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 at 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 at 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 at 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 at 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?  :(
>   



More information about the samba mailing list