On 1/8/19 8:38 AM, Ulf Volmer wrote:
On 08.01.19 10:57, Patrick Dupre wrote:
With visudo, I did pdupre localhost=/usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB/
sudo /usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB
When you allow a specific command for sudo, you *must* use *exactly* the same command. In this case the slash at the end is missing.
'sudo -l' may be helpful.
You could also add an appropriate line to /etc/fstab and make sure the "user" option is specified. Then any non-root user can mount that filesystem. A line such as:
/dev/mapper/VolGrpUsr_DK0-home /mnt/USB ext4 defaults,user 0 0
in /etc/fstab should permit any user to:
$ mount /mnt/USB
and accomplish what you want (assuming, of course, that /mnt/USB has appropriate permissions for the user). Not necessarily secure, but... ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - Never eat anything larger than your head - ----------------------------------------------------------------------