On 1/9/19 1:13 AM, Patrick Dupre wrote:
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
The problem is that it tries to mount at boot even if the drive is off
Then also set the "noauto" option:
defaults,user,noauto
That requires a manual mount. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - All generalizations are false. - ----------------------------------------------------------------------