> 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 > 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@xxxxxxxxxxxxxx - > - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - > - - > - Never eat anything larger than your head - > ---------------------------------------------------------------------- > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx > _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx