Loading ...
Sorry, an error occurred while loading the content.

8207Samba/CIFS issue...

Expand Messages
  • tainted_pete
    Aug 31 8:05 AM
    • 0 Attachment
      Hi all

      I have a share (/routers) configured on my NSLU2 (unslung firmware), and I have a user setup to access that share.

      I have two routers (DD-WRT) which mount that share using mount.cifs - and both routers can mount/see the share.

      However, I get some very weird permission issues when using the share from the routers, as follows:

      1) "touch newfile" works - resulting in :

      root@router_g:/tmp/smbshare/router_1# touch newfile
      root@router_g:/tmp/smbshare/router_1# ls -al newfile
      -rwxrwx--x 1 2000 501 0 Aug 31 15:02 newfile

      2) cat > newerfile - resulting in :

      root@router_g:/tmp/smbshare/router_1# cat > newerfile
      -sh: can't create newerfile: Permission denied
      root@router_g:/tmp/smbshare/router_1# ls -al newerfile
      -rwxrwx--x 1 2000 501 0 Aug 31 15:03 newerfile

      3) chmod 777 newfile - results in :

      root@router_g:/tmp/smbshare/router_1# chmod 777 newfile
      root@router_g:/tmp/smbshare/router_1# ls -al newfile
      -rwxrwx--x 1 2000 501 0 Aug 31 15:02 newfile

      4) chmod 000 newfile - results in :

      root@router_g:/tmp/smbshare/router_1# chmod 000 newfile
      root@router_g:/tmp/smbshare/router_1# ls -al newfile
      -rw-rw---- 1 2000 501 0 Aug 31 15:02 newfile

      Now, 000 should not have any rw permissions!?!?!!

      umask is set as 0077 (matching the slug) - and even if I mount the share with the uid/gid numbers, it doesn't work.

      Clues?