Contents
You can allow the user to mount and unmount the partition as required using the options user,noauto. To allow others to unmount it change user to users. Autofs also supports on demand mounts using samba. The incantation depends on which directories you want mounted when.
It’s a shame that the standard utility mount always requires root privileges. In my opinion a non-root user should simply be allowed to mount to whatever locations that user has permissions for. Is there an alternative tool that would allow me to access that NFS share without root privileges?
Do you need root privileges for Utility mount?
It’s a shame that the standard utility mount always requires root privileges. In my opinion a non-root user should simply be allowed to mount to whatever locations that user has permissions for.
Do you need root access to mount a computer?
This isn’t possible without having root access to either execute the mount command or the ability to install additional software within the container, again you’d need root/sudo access to do this.
How to change the samba password in Linux?
For our example let’s say “sambaOnly”: Presto. From my understanding (and brief testing) this means when they login via SSH they will automatically have the smbpasswd command run and they will be prompted accordingly. They will never get the chance to have shell access.
Is it possible to use Samba as a Windows user?
For large organization with lots of user it may make sense to move the directories to a Linux server and use Samba to share the files to Windows users. I haven’t tried the reverse, but it may be possible.
What happens when smbpasswd is run by root?
When run by root, smbpasswd allows new users to be added and deleted in the smbpasswd file, as well as allows changes to the attributes of the user in this file to be made. When run by root, smbpasswd accesses the local smbpasswd file directly, thus enabling changes to be made even if smbd is not running.
How can I get Samba to not ask for password?
By default, Windows passes the username and password of the currently logged-in user. This means that the password set with smbpasswd should match that of the user’s password on the Windows client. The password may not be the empty string (at least I have not found a way to force this while also passing the authentication step).
There are two ways to deal with this: One way it to use something like inotify to watch for new directories and apply the group sticky bit on newly created directories recursively.