-
Allowing normal user to mount drives?
I'm creating a Knoppix remaster as some of you already know, and I'm running into problems convincing Knoppix to let me mount drives as the normal "knoppix" user rather than root.
/etc/fstab already contains the "users" option for my hard drives, and yet whenever I try to mount one:
mount: only root can do that
Usually I'd think that the users option in /etc/fstab would do it, but in this case seemingly not. sudo mount -o uid=knoppix /dev/xyz /mnt/xyz works, however. Any ideas?
Registered Linux User #325947
Check out Feather Linux, my distro.
(Yes, it's shameless self promotion, deal with it )
-
Check permissions on ....../bin/mount and /bin/umount.
-
Now I encounter the message:
mount: must be superuser to use mount
Registered Linux User #325947
Check out Feather Linux, my distro.
(Yes, it's shameless self promotion, deal with it )
-
Open a terminal...type "su", press enter key. It should ask for password. Type password, press enter key. Now type your command.
-
Yes - I know that it works as root, that's not the problem. What I'm trying to make it do is work as a normal user.
Registered Linux User #325947
Check out Feather Linux, my distro.
(Yes, it's shameless self promotion, deal with it )
-
In the /etc/fstab entry for the device add "users" to it, like this...
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,users,ro 0 0
If you don't want anyone to unmount it except the user the origianlly mounted the drive, "user" will limit it to the single user
-
Already there:
/etc/fstab already contains the "users" option for my hard drives, and yet whenever I try to mount one: mount: only root can do that
Registered Linux User #325947
Check out Feather Linux, my distro.
(Yes, it's shameless self promotion, deal with it )
-
Originally posted by JohnT
Check permissions on ....../bin/mount and /bin/umount.
chmod 4755 <filename>
-
Yep, done that.
This is why it's confusing
Registered Linux User #325947
Check out Feather Linux, my distro.
(Yes, it's shameless self promotion, deal with it )
-
What are group memberships and access rights like?
-
Are you specifying all of the following?
FS type
device
mount point
If you are specifying all of them, then I don't believe that mount will use the fstab line, which could cause the problem here. Try to just "mount /mnt/whatever" or "mount /dev/whatever" if you haven't tried that.
-
Can you post your fstab??
The Linux Kid
I love Linux
Registered Linux user #318372
-
Turns out if I just type "mount /dev/hda1" instead of "mount /dev/hda1 /mnt/hda1" it works (smacks head several times)...
Registered Linux User #325947
Check out Feather Linux, my distro.
(Yes, it's shameless self promotion, deal with it )
-
Originally posted by o0zi
Turns out if I just type "mount /dev/hda1" instead of "mount /dev/hda1 /mnt/hda1" it works (smacks head several times)...
Lets all stand in line and smack this guy with a wet trout.
-
I love Linux
Registered Linux user #318372
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|