LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 02-26-2004, 11:21 PM   #1
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
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
 
Old 02-27-2004, 02:36 AM   #2
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Rep: Reputation: 15
use visudo to give permission to the users.
 
Old 02-27-2004, 03:49 AM   #3
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
You can just edit /etc/fstab and add the "users" option.
 
Old 02-27-2004, 09:19 PM   #4
dondon
LQ Newbie
 
Registered: Jan 2004
Location: winnipeg
Distribution: fedora9 core1
Posts: 23

Rep: Reputation: 15
Question

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?
 
Old 02-27-2004, 09:51 PM   #5
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
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.
 
Old 02-27-2004, 10:50 PM   #6
dondon
LQ Newbie
 
Registered: Jan 2004
Location: winnipeg
Distribution: fedora9 core1
Posts: 23

Rep: Reputation: 15
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?
 
Old 02-27-2004, 11:05 PM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
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.
 
Old 02-27-2004, 11:19 PM   #8
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
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
 
Old 02-27-2004, 11:26 PM   #9
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
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.
 
Old 02-27-2004, 11:39 PM   #10
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
Cool, That worked. Thanks
 
Old 02-28-2004, 05:14 PM   #11
dondon
LQ Newbie
 
Registered: Jan 2004
Location: winnipeg
Distribution: fedora9 core1
Posts: 23

Rep: Reputation: 15
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?
 
Old 02-28-2004, 08:36 PM   #12
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
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.
 
Old 02-29-2004, 11:46 AM   #13
dondon
LQ Newbie
 
Registered: Jan 2004
Location: winnipeg
Distribution: fedora9 core1
Posts: 23

Rep: Reputation: 15
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.
 
Old 02-29-2004, 08:06 PM   #14
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM
Access HDB1 for users Rivitir Slackware 4 11-20-2003 07:09 PM
Are 2 users able to access the same file ForumKid Linux - General 5 09-20-2002 03:32 AM
limiting users access iquadri1 Linux - Networking 1 09-04-2001 01:23 PM
MS Access - too many active users toady Linux - Networking 1 11-26-2000 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration