Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-24-2004, 12:59 PM   #1
LQ Newbie
Registered: Jun 2004
Distribution: MEPIS
Posts: 3

Rep: Reputation: 0
Allowing other users than root to mount drives

Hi. I am both new in this forum and new to Linux. If you need to know which distro I'm using, it's called MEPIS, I believe it's based on Debian. Anyway, onwards with my question:

I have a problem using Wine. When I try using Wine as root, I get the following message (in WineSetup Tk):

WineSetup Tk detected the super user mode (file /etc/wine/wine.conf is writeable). This mode is used to configure global Wine configuration, what's not supported yet. We're working on it. Please log on as a normal user and run WineSetup Tk again.
So I did. Fine and dandy, it works like a charm.. and then I want to mount some drives. But guess what? I can't I get a message telling me that I cannot mount the drives. It says I don't have access or something. (Can't really check that now, working as root atm)

How do I let my normal user mount drives? I'm sure this question has been asked before, but the searches I did, only found sorta similar threads, but not exactly what I wonder about.. I hope somebody can help me.

EDIT: Oh yeah, one more thing. If I mount the drives with root, and then switch to a user, I still can't use the drive, as it tells me I don't have permissions for it. Which I think it weird, since there are both NTFS drives and FAT32 drives, and I can't access anyone of them -- I haven't done anything to set permissions, so I assume it's not allowed by default, and that I have to make some changes to make it work...

Last edited by DarkPhoenix; 06-24-2004 at 01:11 PM.
Old 06-24-2004, 01:38 PM   #2
bruno buys
Senior Member
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Yes, you have to make changes. Post here your fstab, and we'll work it out.
Old 06-24-2004, 01:46 PM   #3
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
/etc/fstab lists devices mounted by the system and who can mount them - the default is for only root to be able to mount devices but removable devices (floppy, CDROM etc) are normally specified in fstab to allow users to mount.

Once you've created a mount point and added them to fstab you can set permissions on the mount points to allow other users to do what you want.

Hope this helps - 'man mount' tells you lots more!
Old 06-24-2004, 01:47 PM   #4
LQ Newbie
Registered: Jun 2004
Distribution: MEPIS
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you.

Here goes my fstab:

/dev/hdb1 / ext3 defaults,noatime 1 1
/dev/hdb2 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs noauto 0 0
/dev/hdb3 /home ext3 defaults,noatime 1 2
# Dynamic entries
/dev/hda1 /mnt/hda1 vfat noauto,exec,umask=000 0 0
/dev/hda5 /mnt/hda5 vfat noauto,exec,umask=000 0 0
/dev/hda6 /mnt/hda6 ntfs noauto,exec,ro,umask=0222 0 0
/dev/hda7 /mnt/hda7 vfat noauto,exec,umask=000 0 0
/dev/hda8 /mnt/hda8 ntfs noauto,exec,ro,umask=0222 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,ro 0 0
/dev/floppy /mnt/floppy auto noauto,users 0 0
/dev/sda1 /mnt/flash auto noauto,users 0 0
/dev/sdb1 /mnt/flash1 auto noauto,users 0 0
/dev/sdc1 /mnt/flash2 auto noauto,users 0 0
/dev/sdd1 /mnt/flash3 auto noauto,users 0 0
EDIT: And keep in mind that the problem is not only mounting the disks... even if I mount with root and try to access them with another user, I get an error.. although then the error is that I don't have access to /mnt/hda8 or whichever partition I choose to try it on.

Last edited by DarkPhoenix; 06-24-2004 at 01:59 PM.
Old 06-24-2004, 02:22 PM   #5
LQ Newbie
Registered: Jun 2004
Distribution: MEPIS
Posts: 3

Original Poster
Rep: Reputation: 0
Well, I got partial success.. by changing the line

/dev/hda8 /mnt/hda8 ntfs noauto,exec,ro,umask=0222 0 0

/dev/hda8 /mnt/hda8 ntfs noauto,users 0 0
(similar to the ones I'm allowed to mount (ie the floppy) I was able to mount the drive... but I am still not allowed to access it.. I get "Has no access to file:/mnt/hda8" or something like that.

EDIT: *sigh* - On reboot the fstab file reset to what it was before I changed it.. how inconvenient is that, or what?

Last edited by DarkPhoenix; 06-24-2004 at 03:45 PM.
Old 06-24-2004, 07:59 PM   #6
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
I think you might want to re-read the andrewdodsworth's post, particularly with respect to the permissions. The problem here is probably just that your new mountpoints (eg, /mnt/hda8) do not allow write operations to regular users.

As he indicated, "man mount" will tell you a lot more. Good luck with it -- J.W.
Old 06-25-2004, 07:28 AM   #7
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,517

Rep: Reputation: 100Reputation: 100

Try "man sudo" - apparently this is a service you can configure to give certain users root privileges to do certain things - like mount / unmount filesystems.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Allowing non-root users rw access to floppy disks? black hole sun Linux - Hardware 3 02-12-2005 09:43 PM
Allowing *some* users to mount ugenn Linux - General 8 03-01-2004 11:48 PM
allowing set users to mount a drive, access issues Alpha_Beta Linux - Hardware 4 11-12-2003 10:21 PM
allowing non-root users to mount drives and shutdown rlpt Slackware 3 09-21-2002 07:35 PM
Allowing users to mount and access devices katanastab Linux - General 1 02-14-2002 04:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration