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.
Here's my situation:
I've got a dual-boot system (I can't fully let go of Windows yet) and I want to be able to share files between Fedora and Windows. So I created a vfat partition. To test it I went to Windows, found the drive, threw some files on it, then booted Fedora, mounted the drive and everything was there. Great! I created a 'shared' folder in my home/ directory, changed the permissions so everybody could read/write/execute, and edited my etc/fstab file so I didn't have to manually mount the shared drive every time I booted. But now I can't write to /home/shared -- the permissions (I think) were changed when the partition was mounted. How can I avoid this?
P.S. Here's what my new fstab line is:
/dev/hda3 /home/shared vfat defaults 0 3
Originally posted by ngreimel Thank you Komakino, what did that do exactly?
the user option means that normal users can mount/unmount and generally access the drive. The man page says:
Quote:
(iii) Normally, only the superuser can mount file systems.
However, when fstab contains the user option on a line,
then anybody can mount the corresponding system.
The umask=0 sets the bitmask for permissions that are not present on the mounted filesystem (and applies specifically to FAT based filesystems). I think having user and umask=0 together means firstly that the filesystem can be mounted by any user, and that they then have read/write and execute permissions on it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.