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
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...
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.
Summary: is there any way to login as root without entering login name and password? i want all the root permissions. the system should directly login as root while booting. If anybody knows how to do this, pl...
Summary: hi balram, i have only 250mb free space left.so i need to add this free space to my root partition. Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda11 ...
Summary: Hi, I am new user to Linux and just installed RedHat Linux 7.1 My system has single 20GB disk and it has 2 partitions 18GB NTFS and 2GB FAT. I installed Linux on 2GB partition. While I am installin...