Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.