You can use a .smb credentials file with only root permission as @russnash suggests below. –
WhatsApp: +86 18221755073It is possible to set the mode for mount.cifs to setuid root to allow non-root users to mount shares to directories for which they have write permission. That is only for Ubuntu - Debian has …
WhatsApp: +86 18221755073For those who installed samba and join the server to Windows Domain, this tutorial will show you how to Manage Samba permissions from Windows machine.
WhatsApp: +86 18221755073If the filesystem type is one that doesn't have permissions, such as FAT, you can add umask, gid and uid to the fstab options. For example: /dev/sdb1 /media/workspace auto …
WhatsApp: +86 18221755073How can we fstab mount a samba share that give permission 0777 (to every samba users in the write list) for new created directory or files? E.g. I created a new directory in client PC (Ubuntu …
WhatsApp: +86 18221755073Here is the line in my fstab file (with the names of the server and username changed): //server/user /mnt/share cifs …
WhatsApp: +86 18221755073You probably want to add explicit permissions to the mounted file system in the fstab entry: This will be on the safe side by allowing all group members to read, write and execute all files and prohibiting access to any …
WhatsApp: +86 18221755073This way, by creating new groups, it is possible to give permissions on a per user basis. For home usage, it's enough to set mount point permissions to others: read/write/execute as written …
WhatsApp: +86 18221755073For me, a slightly simpler version (without uid) worked to mount properly R/W for all users a public share from another linux machine: //server_name/share_name /media/local_mountpoint cifs …
WhatsApp: +86 18221755073How to mount windows shares (CIFS-SMB) via fstab and different options to change permissions, owners, smb version, avoid saving password in plain text, etc...
WhatsApp: +86 18221755073