Giter Site home page Giter Site logo

ldm's Introduction

NAME

ldm - Lightweight Device Mounter

SYNOPSIS

ldm [-d] [-u user] [-p path] [-c command] [-m mask] [-h]

DESCRIPTION

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.

OPTIONS

  • -d

    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 :

    • LDM_MOUNTPOINT

      The complete path to the mountpoint.

    • LDM_NODE

      The path pointing to the device node in /dev

    • LDM_FS

      The filesystem on the mounted device.

    • LDM_ACTION

      The action ldm has just performed, it can either be mount, pre_unmount or unmount

  • -h

    Print a brief help and exit.

BLACKLISTING

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.

INSTALL

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
    EXTRA_ARGS=-c <path_to_executable>
    
    

The options FMASK_DMASK and EXTRA_ARGS are optional. The default value for FMASK_DMASK is 0133,0022. EXTRA_ARGS will be appended to the ldm executable.

SEE ALSO

ldmc(1), umount(8)

WWW

git repository

AUTHOR

2011-2019 (C) The Lemon Man [email protected]

ldm's People

Contributors

lemonboy avatar rolinh avatar ekroth avatar unc0 avatar asergi avatar stephen304 avatar duv16 avatar baskerville avatar evanpurkhiser avatar jschwab avatar bugabinga avatar vodik avatar dequis avatar rufuswilson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.