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 have an external ntfs-formatted USB drive. When I turn the drive on, Fedora FC3 correctly identifies this hardware and mounts it, but does so with root having sole permissions. Here's the fstab entry (automatically generated):
/dev/sdd1 on /media/remote type ntfs (rw,nosuid,nodev,fscontext=system_u:object_r:removable_t,user=rolf)
Despite the user=rolf entry, as a user I can only access the drive by becoming root, unmounting the drive, and remounting with umask=0222. I tried at first modifying fstab to add an entry such as
which gives me access for that login session, but apparently I can't always count on the drive being mounted as the same device after a reboot (sometimes comes up /dev/sdd, and sometimes /dev/sde, etc.). Thus permanent modifications to fstab don't always seem to work. Is there some way other than by modifying fstab to ensure that this drive is reliably mounted with user read permissions at boot time? Does this behavior come about because of ntfs -- i.e., if the drive were fat, would the system mount the drive with the user permissions automatically?
udev creates the device names in /dev. You can write rules to assign device names to certain devices. Have a look in the section about the digital camera. The basci idea behind this is to assign the hardware encoded ID of your external drive to a symlink, e.g. /dev/usbdrive and then mounting this sysmlink instead of the actual device name.
Another option would be to modify the hotplug script that creates this fstab-line and tell it to add the umask parameter.