LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2005, 09:31 PM   #1
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Rep: Reputation: 30
possible to mount without root?


Is it possible to mount devices without having to be under root (this is for programs that automount and autounmoutn devices)

Thanks!
 
Old 03-09-2005, 09:44 PM   #2
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Add
user
to the options in /etc/fstab
to allow a normal user to mount the filesystem or device
 
Old 03-09-2005, 09:54 PM   #3
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
hmm, the device isn't even there, but it mounts anyways...

anyone know why?
 
Old 03-09-2005, 10:09 PM   #4
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Isn't there, as an entry in fstab? Yes, that is a bit strange.
The automount daemon controls which devices are mounted automatically and this daemon is run by autofs. you can disable the service safely I think for your runlevel (google this) to stop it mounting devices automatically, or you can hack the configuration file for the automount daemon (/etc/auto.misc).
 
Old 03-10-2005, 10:36 AM   #5
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
ok, when it's plugged in, there is an entry in mtab... but when i unplug it it goes away.. Should i just copy the mtab entry and put it in fstab?
 
Old 03-29-2005, 09:31 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 4,065

Rep: Reputation: Disabled
Before you do that try
Code:
/etc/init.d/autofs status

  and also (gives in some distros more information)

/etc/init.d/autofs stop
/etc/init.d/autofs start
That will show whether autofs is used at all and at which mount points. An entry in /etc/fstab should override autofs...

<edit> No, it doesn't. /etc/fstab needs existing directories as mount points, autofs creates it's own mount points the moment it mounts a medium at request of the user and later after umounting it also deletes them...</edit>

Last edited by JZL240I-U; 04-11-2005 at 06:29 AM.
 
Old 03-29-2005, 09:46 AM   #7
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
You must be trying with your USB device. For passing on any parameters you should be login as root. If you have the entry of your in your /etc/fstab file then a normal user can also mount it. Make an entry similar to this in your fstab

/dev/<device name> /<mount-point> <fs-type> defaults,ro,user,noexec,noauto 0 0

-Prasanta
 
Old 04-09-2005, 01:06 PM   #8
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
ok thanks guys
 
  


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 Off
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
Auto mount. non root mount canyon289 Linux - Hardware 1 02-21-2005 11:05 PM
can't mount root chungchungip Linux - General 5 03-18-2004 04:50 AM
patched mount source. works but i must be root to mount !!!??? qwijibow Linux - Software 2 01-29-2004 07:59 AM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration