0

Would it be possible to enable sshfs to mount for users without admin permissions in CentOS 6.8?

1

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 root@xxx.xxx.xxx.xxx:/ /mnt/droplet

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.