LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-29-2004, 10:16 AM   #1
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Rep: Reputation: 15
Small question concerning mount


Just noticed that the mount binary isin /bin, i always thought anything in this dir was free for all (if you know what I mean, like any user of the system can use the bin). So anyhow I tried mounting a floppy to a users home dir, turns out that only root could do it..

Just wondering what's the deal with it, I mean it makes sense that only the root can mount.. but why isn't it simply located in /sbin or /usr/sbin ?
 
Old 09-29-2004, 10:21 AM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
well if you add the user option to the floppy device line in fstab then users can mount a floppy
 
Old 09-29-2004, 10:28 AM   #3
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
ahh ok that makes sense.. just read a little through the man pages of fstab...

where exactly do i add this?

Code:
/dev/fd0        /floppy         auto    rw,user,noauto          0       0
maybe like?
Code:
/dev/fd0        /floppy         auto    rw,user,noauto,colabus          0       0
 
Old 09-29-2004, 10:31 AM   #4
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
right place, wrong word. you add the actual word "users"
Code:
/dev/fd0        /mnt/fd0         auto    noauto,nosuid,rw,users          0       0

Last edited by AAnarchYY; 09-29-2004 at 10:38 AM.
 
Old 09-29-2004, 10:37 AM   #5
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
yes but i had this originally and it read that only root could mount..
 
Old 09-29-2004, 10:39 AM   #6
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
"users" not "user"
 
Old 09-29-2004, 10:43 AM   #7
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
ahh my mistake, ok I adjusted that. Now is there a way to refresh the mounts or is that only possible through a reboot?

btw thanks for the prompt help
 
Old 09-29-2004, 10:45 AM   #8
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
shoudnt need to, it should take effect as soon as you save
 
Old 09-29-2004, 10:48 AM   #9
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Just to make it clear, the mount program itself is in /usr/bin because it's meant to be available to everyone (Of course, that also depends on the permissions the administrator has put on it; he could decide to make it available to certain users only). But while the program itself does the actual work, who is allowed to do so is determined elsewhere.

The action of mounting is dependent on the configuration set up in the /etc/fstab file. fstab tells the computer who can mount a device, where it gets mounted, and what other options are available when mounted. By default it's set for root only, but with a simple modification, mentioned above, it can be allowed for anybody. See man mount and man fstab for more detailed information, but be prepared for a long read.
 
Old 09-29-2004, 10:54 AM   #10
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
thanks, I guess my only problem now is when does the fstab refresh? cause i'm trying the mount with new details and it's giving me root only error.
 
Old 09-29-2004, 10:57 AM   #11
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Whoah, between reading and writing, several posts sprang up.

Both "user" and "users" are possible in fstab. "user" restricts the action to a single user--that is only the user who mounted the device can unmount it. "users" allows any user to access the device; user B can unmount a device user A mounted, for example.
 
Old 09-29-2004, 11:14 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
It was prob last mounted by root. Try umount as root, then try again as yourself.
 
  


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
small question. bruse Linux - Newbie 9 04-11-2005 08:22 AM
small problem with smbfs mount synapse Slackware 4 03-16-2005 10:26 AM
Just a small question Mingthefirst Slackware 2 07-07-2004 10:12 PM
Small question Ed-Slack Linux From Scratch 1 01-08-2003 09:03 AM
a small question ericn Linux - Security 3 01-07-2002 06:04 PM


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