LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-24-2004, 11:59 AM   #1
DarkPhoenix
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):

Quote:
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 12:11 PM.
 
Old 06-24-2004, 12:38 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
Yes, you have to make changes. Post here your fstab, and we'll work it out.
 
Old 06-24-2004, 12:46 PM   #3
andrewdodsworth
Member
 
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, 12:47 PM   #4
DarkPhoenix
LQ Newbie
 
Registered: Jun 2004
Distribution: MEPIS
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you.

Here goes my fstab:

Quote:
/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 12:59 PM.
 
Old 06-24-2004, 01:22 PM   #5
DarkPhoenix
LQ Newbie
 
Registered: Jun 2004
Distribution: MEPIS
Posts: 3

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

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

Quote:
/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 02:45 PM.
 
Old 06-24-2004, 06:59 PM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
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, 06:28 AM   #7
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Hi

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.
 
  


Reply



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 08:43 PM
Allowing *some* users to mount ugenn Linux - General 8 03-01-2004 10:48 PM
allowing set users to mount a drive, access issues Alpha_Beta Linux - Hardware 4 11-12-2003 09:21 PM
allowing non-root users to mount drives and shutdown rlpt Slackware 3 09-21-2002 06:35 PM
Allowing users to mount and access devices katanastab Linux - General 1 02-14-2002 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:16 PM.

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