/ect/fstab to Mount /dev/hdc1 to FTP
/etc/fstab to mount /dev/hdc1 to FTP ( post #1)
I'm in the process of setting up a new web server. The server has two disk drives. The second drive has only one partition which is /dev/hdc1. I need to mount this partition onto a mount point that is in the httpdocs directory. This will allow this second hard disk partition to hold files that are part of the web site. The mount point needs to have r/w authorization from FTP just like the balance of the web site. This allows the new mount point (web directory) to be just like all the other directories of the site.
I've been able to mount /dev/hdc1 to the mount point where I need it. So far, so good. When I try to access this new ftp directory I can open the mount point directory. When I try to create a new object in this directory, I receive an access rights error and can't create the new object.
I need to be able to mount /dev/hdc1 so this partition can be written from FTP by a non-root user. I believe if I get this far, the files will be visible to FTP and users accessing the directory via hyperlinks coded in our web site.
So far I have:
/dev/hdc1 /...stuff.../httpdocs/NewDir ext3 defaults
in /etc/fstab. The user and users options don't seem to apply as they allow users to mount and umount. Somehow I need to set the permissions for the device.
Thanks in advance for your help on this! Greg