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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.