mounted smb share throu fstab, gets read only on added files

16,395

Solved the problem! I added the noperm option to the fstab mount. So now it looks like this:

//192.168.0.12/share/ /media/nas cifs credentials=/home/jocke/.smbcredentials,noperm,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Share:
16,395

Related videos on Youtube

Jocke
Author by

Jocke

Updated on September 18, 2022

Comments

  • Jocke
    Jocke over 1 year

    I mounted my nas in ubuntu 12.10 and it works with read/write, but when I'm adding a file or directory that file gets read only permissions. My fstab mount looks like this:

    //192.168.0.12/share/ /media/nas cifs credentials=/home/jocke/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
    

    If I mount the smb share manualy through the GUI it works, but not through fstab.

    What I am doing wrong?

  • Gabriel Fair
    Gabriel Fair about 6 years
    What does the noperm parameter do?
  • Chris1804505
    Chris1804505 over 5 years
    Found it, in the docs: Client does not do permission checks. This can expose files on this mount to access by other users on the local client system. It is typically only needed when the server supports the CIFS Unix Extensions but the UIDs/GIDs on the client and server system do not match closely enough to allow access by the user doing the mount.