LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-23-2005, 04:41 PM   #1
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Mounting/owner/group for public FAT partition


Hi folks,

I've created a FAT32 partition for sharing files between operating systems (including WinXP, thus FAT). It's entry in /etc/fstab looks like this:
Code:
/dev/hdb11      /osshare        vfat    defaults,rw        0       2
I just added the rw comment as an afterthought.

As things are, root has everything:
Code:
drwxr-xr-x   2 root root   8192 1970-01-01 01:00 osshare
Would somebody be so kind as to point me to a reference where I can read up on how to make this partition available to all my users? I need to learn more about groups and owners in general; I figure I'll need to change the group, don't know about ownership. Certainly objects created in the folder need to inherit rwx for others.

Is it secure to allow "others" rwx access for a public partition? I can imagine it might be useful in an attack.
 
Old 12-23-2005, 05:49 PM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
FAT doesn't support permissions, so the only way to set partitions for everything on a FAT partition is through the mount options.

The most common mount option 8in fstab) for FAT partitions is umask, which indicates which permissions are masked (eliminated), so umask=000 gives you full permissions for everyone. There are also dmask and fmask, for directories and files only respectively.

You can also assign a UID and GID (user/group ID) to the partition.

For more info read fstab(5)
 
Old 12-27-2005, 11:16 AM   #3
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Original Poster
Rep: Reputation: 39
I used umask=0000, and this works as I hoped. Thanks to your hint I found a wiki that offered a full 4-digit permissions code, and used that.

I'm still not sure about the security of having a partition (even a non-system one) that is fully rwx for everyone, but now I've got one.
 
Old 12-27-2005, 04:46 PM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
That's where the gid and uid come in...
btw would you mind sharing the link to the wiki - I'm still not 100% comfortable with the fourth digit.
 
  


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
Changing owner and group of file surfbass Linux - General 2 12-12-2005 03:25 PM
folder owner/group weird curos Slackware - Installation 1 07-18-2005 08:13 AM
group owner etc MI3GTO Mandriva 3 02-27-2005 09:26 PM
sudo changes the owner and the group of some my files and now I can't enter in X Ali79 Linux - Software 5 12-10-2004 02:01 PM
Group as owner instead of a user dtournas Linux - General 1 09-11-2003 11:13 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration