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 am having trouble accessing my other ntfs partitions from slackware 10.0 when i am not logged in as root. I can mount and unmount fine as root and view the contents of the folder, but not as another user. Things i have tried:
1. Modify fstab so that the options of the partition i want to be able to mount has:
Have also tried "noauto" to see if i could mount after boot, no luck.
2. As root, do a chmod command like so:
chmod +r /hdb5
I am new, but from what i had read, the line in the fstab file would be enough to allow a user to mount and unmount a logical drive. Please point out what i am doing wrong, or point out where in the documentation i fouled up. Thanks.
That will automount the parition at /mountpoint (change to where ever you want it mounted). The umask=000 is what allows other users besides root to access the files.
If you'd rather it not be mounted automatically and instead want users to be able to mount it themselves, then use something like this:
/dev/hdb5 /mountpoint ntfs noauto,user,ro 1 0
Now any user can mount it and they will own all the files it contains, as far as linux is concerned.
Keep in mind that if it's already mounted then you'll need to unmount it as root before a user can remount it. See "man mount" for help on what each of the mount options do and "man fstab" for help on what each field is for. You may want to change it a bit, depending on what you want. Like if you want to be able to execute files on the parition then add the "exec" option and etc.
BTW, when using mount as a user, specify either the mount point or device ONLY, not both. ie "mount /dev/hdb5" or "mount /mountpoint", but not "mount /dev/hdb5 /mountpoint". The first 2 causes mount to reference /etc/fstab for the options, the 3rd only root can do.
ok, i was able to mount and view the files as a non-root user using the "umask=000" option in fstab. From what i understand though, this option allows any user to mount, unmount, read, write, execute files in the directory- not good.
Is there any other way to be able to mount and view/execute files as a non-root user- more specifically, is there a way to pick and choose among different users who can view and execute files? which was part of my original problem.