Visit Our UNIX and Linux User Community


mounting vfat...


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory mounting vfat...
# 1  
Old 03-03-2002
Network 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  
Old 03-04-2002
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  
Old 03-05-2002
Data 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  
Old 03-05-2002
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

Previous Thread | Next Thread
Test Your Knowledge in Computers #284
Difficulty: Easy
AIX (Advanced Interactive eXecutive) is a series of proprietary Unix operating systems developed and sold by Digital Equipment Corporation (DEC) for several of its computer platforms.
True or False?

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mounting

I have a big confusion in mounting........so please tell me whats the exact meaning of it nd do other os have this concept or not? (8 Replies)
Discussion started by: Mac91
8 Replies

2. Filesystems, Disks and Memory

mounting

I generally use mount many times to mount an iso image or as a bind between directories or mounting a squash file system. Y does one require root permission to do a mount --bind between two of his own directories or just mount an iso/squash image in directory he owns? Also I wish mount had an... (0 Replies)
Discussion started by: bbala
0 Replies

3. Ubuntu

rdiff-backup using escape codes on vfat thumbdrive

I thought it may be nice to use rdiff-backup to backup my websites to a thumb drive. But all the capital letters are substituted with octal escape codes. How can I over come this? There are no issues backing up to another ext3 drive. The source drive is ext3 the thumb drive is vfat mounted... (0 Replies)
Discussion started by: mikemc
0 Replies

4. BSD

Mounting

Hi I mounted disk which have two partition C: , D: ( i am not sure if both partition have same file system) with this commad: mount -t msdosfs /dev/ad2s1 /mnt/windows but this is mounted only first partition with fat file system. ( in windows XP C: ) How can i mount another partition... (2 Replies)
Discussion started by: sniper007
2 Replies

5. Solaris

mounting windows(vfat) file system

how can i mount windows file system into solaris using vfstab or mount command. also please tell me how to display the partition information. (1 Reply)
Discussion started by: ajoy patel
1 Replies

6. UNIX for Dummies Questions & Answers

Mounting help.

Hello, I am trying to mount a second scsi hard drive on a SCO box. (5.0.5.) And I can't figure out what the device file for it is so I can mount it. Can anyone help me? thanks. (1 Reply)
Discussion started by: iconn
1 Replies

7. Filesystems, Disks and Memory

Mounting...?

Hi everyone, this is the first time I have ever properly used Linux - I run Red Hat Linux 8. I have two hardrives, my main 80gig, and my "extra" 15gig, I would like to be able to gain access to my 15gig and view the files. I know to view files on a floppy disk or a cd you need to mount the... (1 Reply)
Discussion started by: mo0ness
1 Replies

8. Filesystems, Disks and Memory

Newbie: RH Linux: Mounting vfat as readable

Hi there! I have a question about mounting a file system as readable. I have the following line in my fstab for that purpose: /dev/hda1 /mnt/nt vfat defaults 0 0 It mounts the filesystem but I can only read from this, not write :( what do I have to change to make it readable? TIA! (4 Replies)
Discussion started by: D-Lexy
4 Replies

Featured Tech Videos