Sponsored Content
Full Discussion: mounting vfat...
Special Forums Hardware Filesystems, Disks and Memory mounting vfat... Post 16520 by dimanise on Sunday 3rd of March 2002 08:36:25 PM
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.
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
SWITCH_ROOT(8)						       System Administration						    SWITCH_ROOT(8)

NAME
switch_root - switch to another filesystem as the root of the mount tree SYNOPSIS
switch_root [-hV] switch_root newroot init [arg...] DESCRIPTION
switch_root moves already mounted /proc, /dev and /sys to newroot and makes newroot the new root filesystem and starts init process. WARNING: switch_root removes recursively all files and directories on the current root filesystem. OPTIONS
-h, --help show help and exit -V, --version show version number and exit RETURN VALUE
switch_root returns 0 on success and 1 on failure. NOTES
switch_root will fail to function if newroot is not the root of a mount. If you want to switch root into a directory that does not meet this requirement then you can first use a bind-mounting trick to turn any directory into a mount point: mount --bind $DIR $DIR SEE ALSO
mount(8), chroot(2), init(8), mkinitrd(8) AUTHORS
Peter Jones <pjones@redhat.com> Jeremy Katz <katzj@redhat.com> Karel Zak <kzak@redhat.com> AVAILABILITY
The switch_root command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux June 2009 SWITCH_ROOT(8)
All times are GMT -4. The time now is 08:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy