Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-26-2004, 11:21 PM
|
#1
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Rep:
|
Users/Disk Access ?
How do I allow a user to access the floppy and Cdrom drives without having to input a Root password?? Its really a hassle to keep switching back and forth between the user and root. Thanks
|
|
|
02-27-2004, 02:36 AM
|
#2
|
Member
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99
Rep:
|
use visudo to give permission to the users.
|
|
|
02-27-2004, 03:49 AM
|
#3
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
You can just edit /etc/fstab and add the "users" option.
|
|
|
02-27-2004, 09:19 PM
|
#4
|
LQ Newbie
Registered: Jan 2004
Location: winnipeg
Distribution: fedora9 core1
Posts: 23
Rep:
|
umm ADZ...
I have a similar problem.
I have to re-update fstab everytime i reboot, also have to add directories to /mnt. is there a way I can "automount" at boot?
|
|
|
02-27-2004, 09:51 PM
|
#5
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
Quote:
I have to re-update fstab everytime i reboot
|
What exactly do you mean by that? Are you saying it gets overwritten at boot time?
Quote:
is there a way I can "automount" at boot?
|
Yes. Just add "auto" into the options field for those partitions/shares you want to have mounted on boot.
|
|
|
02-27-2004, 10:50 PM
|
#6
|
LQ Newbie
Registered: Jan 2004
Location: winnipeg
Distribution: fedora9 core1
Posts: 23
Rep:
|
quote:
-------------------------------
What exactly do you mean by that? Are you saying it gets overwritten at boot time?
YES, it did it in RH7.2 and MDK9.2 & MDK7 as well!!!
Also, just what do you mean by:
>Yes. Just add "auto" into the options field for those partitions/shares you want to have mounted on boot.
do you mean in fstab?
|
|
|
02-27-2004, 11:05 PM
|
#7
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
Quote:
Also, just what do you mean by:
>Yes. Just add "auto" into the options field for those partitions/shares you want to have mounted on boot.
do you mean in fstab?
|
Yes put it in fstab in the options field. The fields are (from left to right):
<File System> <Mount Point> <Type> <Options> <Dump> <Pass>
Quote:
What exactly do you mean by that? Are you saying it gets overwritten at boot time?
YES, it did it in RH7.2 and MDK9.2 & MDK7 as well!!!
|
Could you post your fstab as you would like it? Then reboot and post your fstab as it is when it is supposedly overwritten. We'll what differences there are.
Last edited by adz; 02-27-2004 at 11:31 PM.
|
|
|
02-27-2004, 11:19 PM
|
#8
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Original Poster
Rep:
|
Under my fstab I removed the no in front of auto and then saved it as root but that dosnt seem to have changed anything. What else can i try? Thanks
|
|
|
02-27-2004, 11:26 PM
|
#9
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
Sorry, two threads here can get confusing...
BajaNick: You were meant to specify the "users" option not the "auto" option. That option allows non root users to mount and unmount (dismount?) that device. CD drives and floppies are meant to have the "noauto" option enabled as you don't want them mounted at boot time - you want then mounted whenever you say so.
Dondon: You are meant to specify the "auto" option. This will mount your device/parition/share automatically at boot time.
|
|
|
02-27-2004, 11:39 PM
|
#10
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Original Poster
Rep:
|
Cool, That worked. Thanks 
|
|
|
02-28-2004, 05:14 PM
|
#11
|
LQ Newbie
Registered: Jan 2004
Location: winnipeg
Distribution: fedora9 core1
Posts: 23
Rep:
|
this is at boot:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb6 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
& this is what i add:
/dev/hda1 /mnt/drvc auto noauto,owner,kudzu 0 0
/dev/hda2 /mnt/extra auto noauto,owner,kudzu 0 0
I see the "no auto", I'll chage it to auto.
But what about the "drvc" & "extra" in my /mnt ?
It disappears too at boot?
|
|
|
02-28-2004, 08:36 PM
|
#12
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
Are there actually any /mnt/drvc and /mnt/extra directories? If it's getting overrwrittenen then all I can think of is that the mount point doesn't exist. It's highly irregular for that to happen, though. If this keeps happening, then post that problem in the fedora forum.
|
|
|
02-29-2004, 11:46 AM
|
#13
|
LQ Newbie
Registered: Jan 2004
Location: winnipeg
Distribution: fedora9 core1
Posts: 23
Rep:
|
yes, I create those two directories in /mnt (or else it doesn't work)
the it works fine, but whe i reboot.... they're gone. not only in fedora, in all the ones I listed before.
|
|
|
02-29-2004, 08:06 PM
|
#14
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
So the directories themselves stay there but the fstab entries get sent to oblivion? Well there's the obvious one, make doubly sure you've saved the file (and you're root). Then BEFORE you reboot, test it out. Type mount <mount point> to make sure the system is actually reading the fstab entry and the mount options are correct.
|
|
|
All times are GMT -5. The time now is 05:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|