Must be superuser to use mount... fstab is correct, however.
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Must be superuser to use mount... fstab is correct, however.
Ok,
Before you say read the man for mount, I already did, the whole thing. For non-root/superusers to use mount, either user or users needs to be in the correct place in /etc/fstab. Mine is:
The bolded line is exactly per what the man pages say what to do about fstab, yet I still receive the error:
dokter@yoyo:/bin$ ls -la mount
-rwxr-sr-x 1 root bin 68868 Aug 25 19:06 mount
dokter@yoyo:/bin$ ls -la /sbin/mount
lrwxrwxrwx 1 root root 10 Dec 13 04:30 /sbin/mount -> /bin/mount
dokter@yoyo:/bin$ mount /mnt/cdrom mount: must be superuser to use mount
I do not get the error message: only root can use mount.
device permissions are:
dokter@yoyo:/dev$ ls -la scd0
brwxrwxrwx 1 root disk 11, 0 Jul 18 1994 scd0
dokter@yoyo:/dev$ ls -la cdrom
lrwxrwxrwx 1 mperreca root 9 Dec 18 16:35 cdrom -> /dev/scd0
I know this is not an fstab issue, but I still don't know what it is. I have granted myself full rx permissions to the devices as well as the mount binary.
Is there a 'cdrom' directory under your 'mount' directory? If not, create it and try again.
Also, the 'users' option in fstab is to allow any user to unmount something that may have been mounted by another user. Not sure if that's what you want... 'user' might be more appropriate (but either will get the job done).
ah.. now i see why my cd ripper works... i've chaged the user to my self.. hehehe.. well ignore that part.... THAT IS NOT A SANE SETTING... its a lazy one... still i think the rest will work..
It worked! Man. What is funny is that I had to do the same thing to umount. Is this something that slackware started doing in ver9.1? I've never had this problem before with the earlier releases.
Hmm, no not to my knowledge, on both my installs of 9.1, mount & umount were setup by default to set +s on the user, at least I don't recall ever changing them. You sure someone else hasn't been fiddling with it? hehe...Anyway, glad you got it going.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.