Dear Everybody,
I'm running FreeNAS-11.1-RELEASE with a SMB share for file access/sharing from Debian GNU/Linux 9.3 (stretch) machines. Using SMB has shown to be better for a laptop typical use case - once connected to the network, once not - to avoid veeeeery long lags without access to the network.
My configuration on FreeNAS:
a) under Storage --> Volumes --> /mnt/sharename:
Permission Type: Windows
b) under Sharing --> Windows Shares (SMB) --> sharename
VFS Objects: zfs_space, zfsacl, streams_xattr, aio_pthread
Apply Default Permissions: selected
c) Somewhere in the menu tree the "UNIX File Extensions" (or similar) are enabled.
d) ==> please tell me if you need more infos
My configuration of the samba client (actually fstab, all in one line):
(uid, gid, file_mode, dir_mode I added recently without success)
According to https://superuser.com/questions/744384/allow-chmod-on-cifs-mount and the mount.cifs man page should help avoiding these permission denied errors to be reported:
It'll be fine and the goal if the chmod are just silently ignored.
Especially when using the graphical Dolphin file explorer the permission denied error messages are very annyoing and very confusing for novice users.
I'm somewhat confused that still I get "Permission denied" on chmod'ing files:
I'd be glad if someone could point me to the relevant resources or tell what I made wrong.
I'm a seasoned Linux user on the command line without experience with FreeNAS and little experience with samba.
Sincerely
Greg
I'm running FreeNAS-11.1-RELEASE with a SMB share for file access/sharing from Debian GNU/Linux 9.3 (stretch) machines. Using SMB has shown to be better for a laptop typical use case - once connected to the network, once not - to avoid veeeeery long lags without access to the network.
My configuration on FreeNAS:
a) under Storage --> Volumes --> /mnt/sharename:
Permission Type: Windows
b) under Sharing --> Windows Shares (SMB) --> sharename
VFS Objects: zfs_space, zfsacl, streams_xattr, aio_pthread
Apply Default Permissions: selected
c) Somewhere in the menu tree the "UNIX File Extensions" (or similar) are enabled.
d) ==> please tell me if you need more infos
My configuration of the samba client (actually fstab, all in one line):
Code:
//192.168.69.101/sharename /mnt/sharename cifs noauto,_netdev,x-systemd.automount,x-systemd.mount-timeout=60,soft,noperm,exec,cache=none,uid=1000,gid=1000,file_mode=775,dir_mode=775,credentials=/etc/samba/credentials/sharename 0 0
(uid, gid, file_mode, dir_mode I added recently without success)
According to https://superuser.com/questions/744384/allow-chmod-on-cifs-mount and the mount.cifs man page
Code:
noperm
Code:
FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS The core CIFS protocol does not provide unix ownership information or mode for files and directories. Because of this, files and directories will generally appear to be owned by whatever values the uid= or gid= options are set, and will have permissions set to the default file_mode and dir_mode for the mount. Attempting to change these values via chmod/chown will return success but have no effect.
It'll be fine and the goal if the chmod are just silently ignored.
Especially when using the graphical Dolphin file explorer the permission denied error messages are very annyoing and very confusing for novice users.
I'm somewhat confused that still I get "Permission denied" on chmod'ing files:
$ chmod o-x testfile
chmod: changing permissions of 'testfile': Permission denied
I'd be glad if someone could point me to the relevant resources or tell what I made wrong.
I'm a seasoned Linux user on the command line without experience with FreeNAS and little experience with samba.
Sincerely
Greg