Computing.Net > Forums > Linux > How To Have Only Root Mount

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

How To Have Only Root Mount

Reply to Message Icon

Name: HippieJoe
Date: November 30, 2002 at 15:13:46 Pacific
OS: RedHat8
CPU/Ram: 933/256
Comment:

hey everyone. i was wondering how i can specify only root to mount a drive. drives including cdroms, floppys, and other harddrives. I have read abotu fstab in other posts around the internet, but never got a clear answer.

I would perfer NOT to have these drives mount on bootup. how at the command line could i mount the drive as root, but have other users get a lack of permissions error. is this possible? i imagin it is.

well thanks again everyone. without this forum, i might be stuck using windows...



Sponsored Link
Ads by Google

Response Number 1
Name: kansasbill
Date: December 1, 2002 at 02:29:22 Pacific
Reply:

In /mnt/hda1 (example) right click on folder and set permissions from root to root as only user.
Change etc/fstab to noauto from auto. (noauto,user,rw 0 0) should do it.



0

Response Number 2
Name: HippieJoe
Date: December 1, 2002 at 12:43:47 Pacific
Reply:

Hey, thanks for getting back to me. I was wondering though, even if I change the privalges on the common mount point in /mnt, couldn't I with the mount command specify another mount point where I had rwx privlages:

#mount /dev/floppy /any/where/else

Or am i wrong and this is where /etc/fstab comes ino by allowing only the specified user the specified privlages? Maybe you can't even mount past /mnt. Thanks again, these where just questions in my head when I read the reply before I got a chance to try it myself. Take care.


0

Response Number 3
Name: 3Dave
Date: December 3, 2002 at 07:02:09 Pacific
Reply:

You need to remove the "user" tags from the lines in /etc/fstab to stop ordinary users mounting drives.


0
Reply to Message Icon

Related Posts

See More


slackware prob Still Having Sound Issues...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: How To Have Only Root Mount

Help: how to Login as root without asking for username and password www.computing.net/answers/linux/help-how-to-login-as-root-without-asking-for-username-and-password/775.html

How to extend root '/' partition www.computing.net/answers/linux/how-to-extend-root-partition-/13843.html

How to make a linux partition www.computing.net/answers/linux/how-to-make-a-linux-partition/3821.html