LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-09-2003, 08:47 PM   #1
davey
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Question letting non-root users mount devices


Hey Folks:

I'm running RedHat8.0. Anytime I want to mount a device I have to
log in as root. Does anyone know of a file I can edit in order to change
this restriction. This is not an urgent or important issue. It's merely
annoying.

Thanks,
davey
 
Old 12-09-2003, 09:30 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,893

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
"Does anyone know of a file I can edit in order to change
this restriction. "

Yes. You change /etc/fstab. Here are some examples:
/dev/cdrom /mnt/cdrom auto noauto,owner,exec,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,exec 0 0


You also may need to change the permissions of the corresponding devices:
chmod 777 /dev/fd0
chmod 777 /dev/scd0
or wherever your floppy and cdrom happen to be.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-09-2003, 09:30 PM   #3
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
From /etc/fstab file:

/dev/fd0 /fd0 auto noauto,user 0 0

NOTE: The user option allows any user to mount a floppy. This can be applied to partitions or CD's too.
 
Old 12-10-2003, 07:09 AM   #4
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
user or users can be applied to ext2/3 filesystems (and probably most others)

I *think* that they work like this...

'user' enables any user to mount the device. only that user and root can unmount it.

'users' enables any user to mount AND unmount the device, even if aready mounted by another user.

here's another example for you...
/dev/hda3 /data/local ext3 auto,users,async,atime,nosuid,grpid,noexec 1 2

The user will need write permission to the mount point too (/data/local)

Last edited by fatgod; 12-10-2003 at 07:12 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 11:03 AM
Permitting users to mount devices phonecian Linux - Security 3 11-06-2005 11:09 AM
letting users halt the system dasy2k1 Linux - Newbie 3 10-15-2005 02:55 AM
no way for non root users to mount floppy aromes Linux - General 6 09-14-2003 09:56 AM
Allowing users to mount and access devices katanastab Linux - General 1 02-14-2002 04:54 PM

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

All times are GMT -5. The time now is 02:14 AM.

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