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.
I spend more and more time as superuser because of problems like these:
I want to mount a partition (ntfs, so happens) while I'm a normal user.
It tells me only root can issue such a command.
Well, mounting and umounting is a very mundane task, which it should be in the power of a normal user to do. I don't know how to change this policy.
I found it easier to add my normal user to sudoers, and I was able to sudo mount as normal user. Great, it's even more frustrating, because you appear to mount properly, but then it doesn't let you read the partition.
I'm definite there's a easy way around this. Is the some sort of "mount config" file where I can allow normal users to mount?
Edit the line in fstab that refers to your ntfs partition, so that it contains the user option. You
must be root to edit fstab. Once mounted, you can check the permissions of the mount
point. Permissions can be changed with the chmod command or chgrp commands. man each
of them to learn more.
Is it possible that someone changed the permissions on mount and umount to 744 or some such thing? Permissions need to be 755 for non-root users to be able to execute the commands. Do a which mount to find the path, cd to the directory and ls -l mount to check the permissions.
The umask setting doesn't seem to help me, either.
I checked the mount file itself, and I see that under permissions, the owner (root of course) has r, w and s permissions. S-permission, not x-permission. the umount command has the same thing. They seem to be the only files there in /bin with this exotic setting. Can anybody shed any light?
I don't think you should allow the user to mount/umount the filesytem. By adding the entry into fstab means that you mount the filesystem when you bootup, then you dont need to do any mounting/umounting. I would have it like this: