GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
NPMount(1) FreeBSD General Commands Manual NPMount(1)

npmount - Non-privileged mount tool

npmount mount /mount/point
npmount umount /mount/point

NPmount is a command-line tool to provide limited mount and unmount capabilities to non-privileged users, such as mounting and unmounting external media including optical discs and thumb drives.

NPMount can be used directly from the command-line or as a platform-independent backend for GUI applications such as file managers and the qmediamanager(1) application.

It is more convenient than other methods because it is fully portable, and never requires the user to enter a password.

NPMount is safer than sudo, since it never allows the execution of arbitrary code under escalated privileges. Only mount and umount commands for authorized mount points are ever run as root.

The configuration file is simple. It indicates which mount points can be controlled by members of a given group. The default configuration shown below indicates that members of the operator group can mount and unmount all directories under /media, which commonly contains mount points for USB sticks and optical discs.

# Group     Mount-points
operator    /media/*

Mounting also requires that the mount point be listed in /etc/fstab or equivalent. The Unix mount command is issued with a mount point alone. Most mounts of external media are performed by an automount service, anyway, so use of npmount to mount media should not often be necessary.

Unmounting does not require a listing in /etc/fstab, since the Unix umount command needs only a mount point or device.

Using the configuration above as an example, members of the operator group can run the following without authenticating:

npmount umount /media/cd0

If /media/cd0 is configured in /etc/fstab or equivalent, then members of the operator group can also run

npmount mount /media/cd0

${PREFIX}/etc/npmount.conf

mount(8), umount(8), setuid(2), qmediamanager(1)

Please report bugs to the author and send patches in unified diff format. (man diff for more information)

J. Bacon

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.