ldm - Lightweight Device Mounter
ldm [-d] [-u user] [-p path] [-c command] [-m mask] [-h]
ldm is a lightweight device mounter following the UNIX philosophy written in C and based on udev and libmount. The user can use umount to unmount the device or ldmc with the -r switch. The daemon can be controlled with the ldmc tool.
Run ldm as a daemon.
- -u user
Specify the user who owns the mountpoints.
- -p path
Specify the base folder for the mount points. The default is /mnt.
- -m fmask,dmask
Specify the fmask and dmask for the mounted devices in octal or symbolic format (eg. the octal mask 0777 is represented as rwxrwxrwx).
If only the fmask is specified then its used as umask and it's value is used as dmask too.
- -c command
Specifies a command that is executed after a successful mount/unmount action. The following environment variables are defined :
Print a brief help and exit.
ldm doesn't offer any blacklisting by itself but it honors the options found in the fstab so it will ignore any device with flag noauto.
The included systemd service expects a config file at /etc/ldm.conf similar to this:
MOUNT_OWNER=username BASE_MOUNTPOINT=/mnt FMASK_DMASK=fmask,dmask
2011-2016 (C) The Lemon Man <email@example.com>