need some help on ftp to my 2nd hdd.

neorder

Verified User
Joined
Oct 1, 2003
Messages
336
i've a 2nd HDD eating dust there, i was thinking maybe i can store some mp3 and run shoutcast.

my question is my 2nd HDD is already setup as

/dev/hdb1 76920416 32828 72980180 1% /backup

how am i gonna to upload my mp3 to the server's 2nd HDD? i can't seem to be able to ftp to my 2nd harddisk.

thanks
 
You need to create a directory structure on your /backup partition, and then you need to create an ftp user with rights to that directory.

Jeff
 
how to create a ftp user and assign him to access a specific directory only?

how can i rename /backup to /mp3, do i have to reformat the disk, etc...?

thanks.
 
i've searched but not finding much useful info on this issu?

anyone knows how to do this ftp accout setup and configure thing?

many thanks.
 
remounting drive from /backup to /mp3

Remounting your second drive as /mp3 instead of as /backup can either be the simplest thing in the world or you can easily make a mistake that will make your system unusable.

In fact, when just now creating the how-to I initially forgot one of the steps and ended up with an unbootable system.

That said, I was able to find the error of my ways, fix it, and create a working how-to, which I've posted in the How-Tos section of this forum.

But even though the following instructions will work on every version of RHL since at least version 6.2, I make no warranties unless I'm actually doing the work for you.

So go check out the how-to :) ; it's called "Remounting a Hard Drive".

Jeff
 
Last edited:
I don't suggest remounting the drive at all. I suggest creating a /backup/mp3 directory and creating your ftp account against that new directory.
 
thuskey said:
I don't suggest remounting the drive at all. I suggest creating a /backup/mp3 directory and creating your ftp account against that new directory.

i wonder if you can create a ftp accunt with the access to hdb.

the url you indicated doens't show how to do that at least.
 
hdb or hdb1 is the name of a partition, and not a directory. It was properly nicknamed (aliased) backup, so creating an ftp account for the /backup/mp3 directory is like creating an account for "hdb1:\mp3\".
 
Hey,

Site-helper is not quite up to date... There's actually another choice of "Custom".

David
 
skruf said:
Hey,

Site-helper is not quite up to date... There's actually another choice of "Custom".

David

i see, thanks for pointing out that to me.

one more thing need to be confirmed, if the user accout itself was not setup on hdb, will the space used in hdb counted in the overall useage?

for e.g. the user has the limit to use 400M, i think even if i setup a ftp accout on hdb for this user, i double DA would allow the user to go over usage limit.

anyway, still many thanks to you. this should be comfirmed by DA support as well.

thank you.
 
i've tried create a user with 40G space and create a ftp account and assign it to /backup/mp3, what i got it


Error executing your request

Details

That is not a valid path. Either it is not in your home directory, it contains symbolic links, or it contains invalid characters

so what is the correct way to ftp access my 2nd hdd?

thanks
 
thuskey said:
I don't suggest remounting the drive at all. I suggest creating a /backup/mp3 directory and creating your ftp account against that new directory.

the error msg above showed i can't create a ftp account against the directory in hdb.

any other idea? or maybe how can i create a ftp user with access to hdb from shell?

many thanks
 
sorry, I should have known that. The ftp directory always has to fall under the /home/ directory, so the proper way to setup it up would be to create a symbolic link under the /home directory to the second drive.


From a unix prompt, as either admin or root, type:

ln -s /backup/mp3 /home/admin/mp3

or

ln -s /backup /home/admin/mp3

your choice which way you want to do it. I just like the idea of creating a bit of structure on the backup drive.
 
Hi,

I tired to do this - and setup the symbolic link. I can access it just fine when I am SSH'ed in as root - but when I try to FTP in, and access this link, I get denied.

I tried chown and chgrp the symbolic link, and the target directory, to admin - but this did not help.

Anyone have any ideas?

My goal - to be able to ftp download my backups from my second hard drive - without copying them to my /home directory first.

Thanks,

Rob
 
Hmmm..... maybe I have the best solution.... use sftp, login as root - and then you can download anything.

I am using Filezilla - found it on SorceForge - seems to work great.

Rob
 
Back
Top