Click to See Complete Forum and Search --> : mount question


aaron
01-15-2001, 05:46 PM
I'm having problems setting my hardware to be mountable by my user. I want my user account to be able to mount my ZIP and CDROM with haveing to mess with su.

I edit the /etc/fstab and gave the devices the user parameter which is supposed to "Allow an ordinary user to mount the filesystem". But when I try to mount the device I get the error: "mount: only root can do that"

Next I changed filerights on the device:
chmod 666 /dev/sda4

But that didn't work either.

What am I not doing?


Aaron

sild
01-15-2001, 05:54 PM
try this (as root):

chmod +s /bin/mount

MBMarduk
01-15-2001, 06:17 PM
In your "/etc/fstab" file:
edit the device you want, at the end of its line it says "user".
Make that "users".
That should do.

aaron
01-16-2001, 11:20 AM
MBMarduk,
I did that. I still won't let me mount as a user.

aaron
01-16-2001, 11:23 AM
Sild,
Thanks for the tip, but that did not work either. Whats going on? Here is the permissions for mount:
-rwsr-sr-x 1 root root 62268 Oct 3 05:39 mount*

MBMarduk
01-16-2001, 04:08 PM
Dude, this is weird. Hell, I'll just SHOW you my fstab. As user I can (un-)mount all I want
!
/dev/hda8 swap swap defaults 0 0
/dev/hda3 / ext2 defaults 1 1
/dev/hda7 /boot ext2 defaults 1 2

/dev/hdd /cdrom auto ro,noauto,users,exec 0 0

/dev/fd0 /floppy auto noauto,users 0 0

none /proc proc defaults 0 0

/dev/hda1 /winC vfat noauto,users 0 0
/dev/hda5 /winD vfat noauto,users 0 0
/dev/hda6 /winE vfat noauto,users 0 0

Let us know if this helps or not!

stavefan
01-16-2001, 05:58 PM
This may not be exactly what you are looking for, but see if there is a program called usermount, it should be useable by any account on the machine....just type usermount at a shell prompt and you should get a little gui app that will let you mount and unmount filesystems at will...if you are running mandrake, there is also a program called supermount, but i don't know alot about that one...

good luck,
stavefan

------------------
Sometimes strange things can be very beautiful...

Aleixa, "V", "Honey Lake"

teeitup
01-17-2001, 12:19 AM
Remember that users can only mount the mount point. This is why there has to be an entry in the fstab file.

mount /cdrom

Users are not allowed to mount devices.

Read the man page it discusses this very issue.

Good Luck,



------------------
Don't take life to seriously, You'll never get out alive!
-Bugs Bunny-

MBMarduk
01-17-2001, 05:51 AM
Oh sh*t, aaron, teeitup is right...

Example:
User mounts a cdrom...(check out my fstab)

THIS WORKS: mount /dev/hdd
THIS DOESN'T: mount /dev/hdd /mnt

Hope NOW we got it right for ya.
-Mike