Mounting smb shares with permissions for other users

@oculos, just to help out a bit with understanding as I also got myself confused with the “invalid argument” issue.

  1. As @DBMandrake wrote initiating the mount manually with mount /mountpoint will throw out the error as it is not designed for that.

  2. This should be your line in fstab //<IP of Server>/<share name>/ /mnt/<mountpoint> cifs noauto,x-systemd.automount,iocharset=utf8,user,username=<username>,password=<password>,uid=osmc,gid=osmc,iocharset=utf8,file_mode=0770,dir_mode=0770 0 0

  3. After you entered the line in fstab and you reboot if you just call mount you will not see the drive being mounted. That only will happen once a file operation is executed on the that filesystem e.g by ls /mnt/<mountpoint>

3 Likes