The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mounting windows(vfat) file system ajoy patel SUN Solaris 1 03-04-2006 05:22 AM
Mounting help. iconn UNIX for Dummies Questions & Answers 1 06-03-2005 04:34 PM
mounting cds? matt2kjones UNIX for Dummies Questions & Answers 3 01-13-2004 04:27 PM
Mounting...? mo0ness Filesystems, Disks and Memory 1 07-03-2003 07:04 AM
Newbie: RH Linux: Mounting vfat as readable D-Lexy Filesystems, Disks and Memory 4 11-17-2002 09:41 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-03-2002
dimanise dimanise is offline
Registered User
  
 

Join Date: Jul 2001
Location: Tor, Can
Posts: 10
Angry mounting vfat...

Hi,
I have a little and very annoying problem.

I want to mount a partition so that most of the files would be owned by a user, then an ftp dir with special previliges set up, and some of the files having write access for all users.

I can't do it anyhow. Right now i have this line in /etc/fstab:

/dev/hda6 /windows vfat noauto,user,umask=0000

which comes the closest to what i want, but is a huge security risk. The negative sides of this setup is that i have to manually mount the partition every time i login, and that ALL the files have rwx access for all users. And i don't know how to make an ftp dir with different previliges.

If i put auto in /etc/fstab then all the files will be owned by root, which is what i don't want, it will also not allow to execute files.
If i also put exec that still won't solve the problem.
And if i just don't use umask I somehow can't make a file with writable access by all users.

Maybe there's some way i can make a script which would run on startup or login which would mount the partition and set all the needed previliges?

Thanks in advance.
  #2 (permalink)  
Old 03-04-2002
AtleRamsli AtleRamsli is offline
Registered User
  
 

Join Date: Feb 2002
Location: Brabant, Belgium
Posts: 65
I can be of a little help here, at least tell you what to look for.
I searched for a 'mount-HOWTO' or 'MSDOSFS-HOWTO' but didn't find it - but there is a document in the Linux documentation that explains how you can set ownership of the VFAT partition to a particular user, so only that user, group, etc, +root can access it.

See man mount under

mount options for vfat

uid=x, gid=y

Atle
PS: I assume it is Linux because of the partition names, and the fact that you must be running a LinAMD machine (LinAMD is the PC equivalent of SolSPARC, etc)

Last edited by AtleRamsli; 03-04-2002 at 10:53 AM..
  #3 (permalink)  
Old 03-05-2002
dimanise dimanise is offline
Registered User
  
 

Join Date: Jul 2001
Location: Tor, Can
Posts: 10
Unhappy still not exactly...

Ok, now it is somewhat better, but still there is a problem. I have this line now in /etc/fstab:

/dev/hda6 /windows vfat auto,user,uid=300,gid=300

On load the permissions of most of the files and directories on the partition are rwxr-xr-x, which is probably what i would want to have. But if i need a file with rwxrwxrwx permissions i can't somehow do that. With command chmod +w filename it doesn't change anything. if i remove w access to a file and then do the above command again it only puts the w on the user (rwxr-xr-x) and not the group or for all users.

Is there a way of somehow change that?

P.S. I'm on Red Hat Linux 7.1 on P4 1.5GHz

And thanks again!
  #4 (permalink)  
Old 03-05-2002
AtleRamsli AtleRamsli is offline
Registered User
  
 

Join Date: Feb 2002
Location: Brabant, Belgium
Posts: 65
Please remember that vfat is an MSDOS single-user filesystem. The multi-user-related manipulations can only be done in the 'Unix-part' - as soon as you are in MSDOS land, you are in single-user-land, and 'groups', 'users' and such have no existence.
I think that means that the answer to the last part is NO!.
But NO in Linux is not always NO ... check out UMSDOS - "Unix on MSDOS" - it will put some control files in the system to give the appearance of a Unix system.
Document everything you do, because I'm not sure anyone has ever thought about all these issues.

Atle
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0