summaryrefslogtreecommitdiff
path: root/src/Mounting_Drives_in_Linux_Without_Root.ascii
blob: 9aa2d9a31c488b9c4adcfbf94cdd5e4fb1cc5e71 (plain)
    1 Mounting Drives in Linux without Root
    2 =====================================
    3 :author: Aaron Ball
    4 :email: nullspoon@iohq.net
    5 
    6 
    7 == {doctitle}
    8 
    9 I recently took an interest in building my own debian box that was roughly
   10 equivelant to Linux Mint or Ubuntu. More specifically, I wanted a system built
   11 from a bare bones Debian base, but had all the functionality that was offered
   12 by the more major "end user" distributions. I wanted features such as media
   13 capabilities (video, DVDs, and music), surfing the internet, editing photos,
   14 etc.
   15 
   16 As I used my system, I took note of what else I needed to add to it to make it
   17 more laptop friendly. One of the things it was missing was the ability to mount
   18 external storage devices (usb sticks for the most part) without being root.
   19 After many days of frustration, I finally caved and started making custom
   20 adjustments outside of simply installing software.  Here is how you mount an
   21 external storage device in Debian Linux without needing root permissions.
   22 
   23 It is really quite simple...
   24 
   25 First, you need to configure the permissions on your mount location. In Debian
   26 Linux, this location is /media. The permissions on that directory are set by
   27 default to 744. When we mount an external device, we want a directory to be
   28 created in there to give mount a location to mount to.  In light of this, we
   29 need the permissions on the /media directory to be 777. To achieve this, open
   30 your root cli and run the following command:
   31 
   32 ----
   33 chmod -R 777 /media
   34 ----
   35 
   36 And you should now be done!
   37 
   38 For me however, I experienced a small problem with this. In my /etc/fstab file,
   39 there was an entry for a cdrom located at sdb1 there.  Since that is not where
   40 my cdrom is located, I just commented out that line, and all worked as
   41 expected.
   42 
   43 Just one more step towards the perfect Linux system.
   44 
   45 
   46 
   47 Category:Linux
   48 
   49 
   50 // vim: set syntax=asciidoc:

Generated by cgit