Results 1 to 4 of 4

Thread: only root-access to mounted drives

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Location
    Sweden
    Posts
    5

    only root-access to mounted drives

    Hi!

    I have a question which seems to me to be very simple to answer. I've spent the last hours looking in this forum, as well as kanotix.com, and linuxquestions.org- and I almost feel stupid for not having found any answer to it.

    OK, I plug in a USB-devices (I'm using a SD-card & a USB-harddrive). Then, as root, I write

    mount /dev/sda1 /mnt/sda1

    the drive gets mounted. Which I find surprising since it is not defined in fstab - it's nice, but I don't understand how it works (an explanation would be very much appreciated for the learning newbie

    The problem is that only root has access to the mounted drives. I don't know how to change this, especially since the device is not defined in fstab. Please help. Thanks in advance.

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    The device is probably probed, and vfat identified as filesystem; try the '-o umask=000' option in your mount command. Or add the following entry in /etc/fstab: "/dev/sda1 /mnt/sda1 vfat users,umask=000 0 0"

  3. #3
    Junior Member
    Join Date
    Aug 2004
    Location
    Sweden
    Posts
    5
    many thanks!

    Of all the answers I've gotten on this and similar issues across different forums, this is the one tha helped; umask=000!

    I'm trying to figure out another thing now, namely how to get an icon pop up automatically on the desktop when a device is inserted. This should be possible as it happens when running from the liveCD. However, information on how to get a HD-install behave that way seems very hard to find. Any suggestions?

    Thanks again

  4. #4
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    235
    As root in a console, run this:
    Code:
    mkdesktophdicons
    This is a knoppix specific package that isn't in Debian proper, but it will create the icons on your user(s) desktop except root based on what was entered in /etc/fstab. If /etc/fstab doesn't have an entry for all of your mountpoints, then it won't create any icons for what isn't in there.

    HTH,

    Durand

Similar Threads

  1. user should umount root-mounted-drives
    By dipsy in forum General Support
    Replies: 0
    Last Post: 07-28-2005, 02:50 PM
  2. cfdisk partitions and knoppix mounted drives disagree?
    By randolphtaco in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 06-20-2005, 08:23 PM
  3. Knoppix not showing several mounted drives
    By chapium in forum Hardware & Booting
    Replies: 1
    Last Post: 04-18-2004, 03:42 PM
  4. Cant access drives
    By LukeGraham in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 07-26-2003, 06:49 AM
  5. Permissions for mounted drives
    By allantm in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 06-29-2003, 07:32 PM

Posting Permissions

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


1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture

1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports

$149.00



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE

$259.00



Super micro Server picture

Super micro Server

$168.00



Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD picture

Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD

$149.99



HP Proliant MicroServer (Model: HSTNS-5151) NO HARD DRIVES-Power Tested, picture

HP Proliant MicroServer (Model: HSTNS-5151) NO HARD DRIVES-Power Tested,

$99.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



HP ProLiant MicroServer Gen10 Plus - 16GB RAM No HDD picture

HP ProLiant MicroServer Gen10 Plus - 16GB RAM No HDD

$500.00



SuperMicro SuperServer 5018A-FTN4 505-2 Intel Atom @ 2.4GHz 8GB w/ Ears  picture

SuperMicro SuperServer 5018A-FTN4 505-2 Intel Atom @ 2.4GHz 8GB w/ Ears

$174.99



Supermicro, 1U Server Intel, Unraid Server  2x 8CORE E5-2650V2 2.6GHz 32GB RAM  picture

Supermicro, 1U Server Intel, Unraid Server 2x 8CORE E5-2650V2 2.6GHz 32GB RAM

$350.00



HPE ProLiant v2 Ultra Micro Tower Server Pentium Gold G6405 16GB RAM P69102005 picture

HPE ProLiant v2 Ultra Micro Tower Server Pentium Gold G6405 16GB RAM P69102005

$696.73