Would it be possible to enable sshfs to mount for users without admin permissions in CentOS 6.8?
1 Answer
You can edit the sudoers file at /etc/sudoers using visudo
Add a line like this:
theusername ALL=(ALL) NOPASSWD: /full/path/to/command
So for a user lets say mary
mary ALL=(ALL) NOPASSWD: /usr/bin/sshfs
Or if you want to restrict to just the command run a certain way (Arguments):
mary ALL=(ALL) NOPASSWD: /usr/bin/sshfs -o allow_other,defer_permissions [email protected]:/ /mnt/droplet