LinuxQuestions.org
Help answer threads with 0 replies.
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 08-05-2005, 05:39 PM   #1
GregSims
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Rep: Reputation: 0
/etc/fstab to mount /dev/hdc1 to FTP


Hi There,

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
 
Old 08-05-2005, 09:44 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 267Reputation: 267Reputation: 267
Re: /etc/fstab to mount /dev/hdc1 to FTP

Quote:
Originally posted by GregSims
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.
What's ...stuff...? Never seen that in an fstab file before..

What are the permissions and ownerships of the device itself and the directory it's mounted to?
 
Old 08-05-2005, 09:52 PM   #3
GregSims
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your reply ...

/...stuff.../ is my poor attempt at shorthand for a very long path name. The actual fstab enter is:

/dev/hdc1 /home/httpd/vhosts/mydomain.org/httpdocs ext3 defaults 1 2

Sorry for the confusion on this.

Please give me a way to tell "the permissions and ownerships of the device itself and the directory it's mounted to" and I will tell you.

Thanks again!
 
Old 08-05-2005, 09:54 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 267Reputation: 267Reputation: 267
Quote:
Originally posted by GregSims
/dev/hdc1 /home/httpd/vhosts/mydomain.org/httpdocs ext3 defaults 1 2

Please give me a way to tell "the permissions and ownerships of the device itself and the directory it's mounted to" and I will tell you.
ls -al /home/httpd/vhosts/mydomain.org/httpdocs
ls -al /dev/hdc1

And you do realize you can specify user and group ownership on mounts in the fstab..
 
Old 08-05-2005, 10:06 PM   #5
GregSims
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
ls -al /home/httpd/vhosts/mydomain.org/httpdocs

is a large directory. One of the subdirectories show the following in the listing:

drwxr-xr-x 2 ftpuser psacln 4096 Aug 4 12:09 timothy

The directory which is the intended mount point is:

drwxrw-rw- 3 ftp ftp 4096 Aug 3 18:48 testaudio

ls -al /dev/hdc1 yields:

brw-rw---- 1 root disk 22, 1Jun 24 2004 /dev/hdc1
 
Old 08-05-2005, 10:09 PM   #6
GregSims
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Another mistake in the fstab entry ... one more time:


/dev/hdc1 /home/httpd/vhosts/mydomain.org/httpdocs/testaudio ext3 defaults 1 2
 
  


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
/dev/hdc1 is not a valid block device clickster Linux - Hardware 1 10-16-2005 02:36 AM
mount: can't find /dev/hda1 in /etc/fstab or /etc/mtab timalan SUSE / openSUSE 24 08-20-2005 09:41 AM
/ect/fstab to Mount /dev/hdc1 to FTP GregSims Linux - General 1 08-05-2005 09:46 PM
Need help: fstab, /dev, and /mount are all HIGGLEDY-PIGGLEDY! tigerflag Slackware 10 08-10-2004 10:23 AM
Error mounting /dev/hdc1 djtsa Linux - Hardware 7 10-02-2003 02:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:59 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
Open Source Consulting | Domain Registration