+ Post New Thread
Results 1 to 3 of 3
*nix Thread, How does Debian automatic USB drive mounting work? I need to make a minor adjustment. in Technical; OS is Debian Squeeze. Pretty much a default "desktop"-style installation with gnome and such. Out of the box, it successfully ...
  1. #1
    ronanian's Avatar
    Join Date
    Dec 2007
    Location
    Massachusetts, USA
    Posts
    88
    Thank Post
    17
    Thanked 2 Times in 2 Posts
    Rep Power
    14

    Question How does Debian automatic USB drive mounting work? I need to make a minor adjustment.

    OS is Debian Squeeze. Pretty much a default "desktop"-style installation with gnome and such. Out of the box, it successfully auto-mounts drives that I plug in via USB in /media/{UUID} or /media/{Volume name} (depending on if the drive has a volume name or not, I guess). I am very happy with that system and I want to keep it.

    My only complaint is the permissions. An NTFS filesystem gets mounted drwx------ (with owner and group as my regular user, not root). I want drwxr-xr-x.

    I've been trying to find out how it works, or how to adjust it. udev notifies udisks and gnome-disk-utility or something like that, I'm not 100% sure and I can't find anywhere to configure a default umask/fmask/dmask for it. Looking in /var/log/ at the time a drive was connected I can find ntfs-3g's entries in daemon.log and syslog telling me what options were passed to it but I can't see what called it.

    Does anyone know how it works or how I can adjust the default permissions provided by the existing automatic mounting system? I don't want to replace the system with another, I don't want to put stuff in fstab, etc...I want to learn how the existing system works.
    Last edited by ronanian; 21st May 2013 at 07:50 PM.

  2. #2


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,461
    Thank Post
    866
    Thanked 845 Times in 667 Posts
    Rep Power
    195
    Oof, hasn't linux got trickier to manage since it got easy to use? I would *suggest* polkit is a good starting point, but without a debian box to hand to louse around with I'm loath to make any further comment :-/

  3. #3
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    39
    I think you create a UDEV rule for the permissions you need.
    gnome - How do I set executable permissions on a removable drive? - Ask Ubuntu

SHARE:
+ Post New Thread

Similar Threads

  1. does anyone have any idea how to prevent exe's being run from usb drives on rm cc3
    By Oaktech in forum Network and Classroom Management
    Replies: 6
    Last Post: 13th June 2012, 12:38 PM
  2. How does the system work?
    By Matthewstuart in forum General Chat
    Replies: 21
    Last Post: 15th February 2009, 03:13 PM
  3. How does Radius work?
    By ranj in forum Wireless Networks
    Replies: 3
    Last Post: 4th January 2008, 12:42 PM
  4. How do I make an USB Drive Bootable.?
    By Grommit in forum Windows
    Replies: 7
    Last Post: 17th December 2007, 07:56 PM
  5. how does solus work?
    By browolf in forum MIS Systems
    Replies: 8
    Last Post: 17th December 2007, 11:28 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •