LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 08: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, 08: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, 08: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, 09: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, 09: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, 08:31 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

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 05:29 AM.
 
Old 03-29-2005, 08: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, 12: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



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

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

All times are GMT -5. The time now is 12:01 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