LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 08-10-2004, 03:22 PM   #1
ngreimel
LQ Newbie
 
Registered: Aug 2004
Location: Minnesota
Distribution: Fedora Core 2
Posts: 2

Rep: Reputation: 0
Mounting and Permissions


Hello all, great forum!

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
 
Old 08-10-2004, 03:25 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Have:
Code:
/dev/hda3 /home/shared vfat user,umask=0 0 3
 
Old 08-10-2004, 03:38 PM   #3
ngreimel
LQ Newbie
 
Registered: Aug 2004
Location: Minnesota
Distribution: Fedora Core 2
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you Komakino, what did that do exactly?
 
Old 08-10-2004, 04:26 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Quote:
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting and permissions kronchev Linux - Software 2 03-26-2005 04:28 AM
Mounting Permissions canuck_barlow Linux - Newbie 11 03-16-2005 09:33 PM
Mounting Permissions ewto Linux - Newbie 2 09-30-2003 04:22 AM
Mounting /dev permissions??? footprint Linux - Software 1 09-20-2002 04:01 PM
Mounting permissions loganwva Linux - Networking 2 04-25-2002 04:14 PM


All times are GMT -5. The time now is 08:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration