Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can a non-root user mount and unmount discs?

discs Mount non-root unmount user
0
Posted

How can a non-root user mount and unmount discs?

0

Most mount commands support the user option.

0

Most mount commands support the user option. If you make an entry such as the following in /etc/fstab: /dev/sbpcd /mnt/cdrom iso9660 user,noauto,ro then an ordinary user will be allowed to mount and unmount the drive using these commands: % mount /mnt/cdrom % umount /mnt/cdrom By default the disc will be mounted with some options that help enforce security (e.g. programs cannot executed, device files are ignored). If this is too restrictive you can use additional options (e.g. the “exec” option will enable execution or programs). See the mount(8) man page for details. Another method is to get the usermount package which allows non-root users to mount and unmount removable devices such as floppies and CD-ROMs, but restricts access to other devices (such as hard disk partitions). It is available on major archive sites. Yet another option is to use the sudo program which allows users to run selective programs with root privileges.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123