View Full Version : need some help on ftp to my 2nd hdd.
neorder
07-21-2004, 07:56 AM
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
nobaloney
07-21-2004, 08:46 AM
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
neorder
07-21-2004, 12:46 PM
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.
neorder
07-22-2004, 08:18 AM
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.
thuskey
07-22-2004, 09:09 AM
http://www.site-helper.com/ftp.html#create
nobaloney
07-22-2004, 09:45 AM
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
thuskey
07-22-2004, 10:13 AM
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.
neorder
07-23-2004, 12:31 AM
Originally posted by thuskey
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 ac**** with the access to hdb.
the url you indicated doens't show how to do that at least.
thuskey
07-23-2004, 06:51 AM
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\".
neorder
07-23-2004, 08:00 AM
i appriciate your help and explaination, i may blind but i never see any option here http://www.site-helper.com/ftp.html#create that allow me to limit access to a specific directory.
thanks again.
skruf
07-23-2004, 08:14 AM
Hey,
Site-helper is not quite up to date... There's actually another choice of "Custom".
David
neorder
07-23-2004, 09:03 AM
Originally posted by skruf
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.
neorder
07-24-2004, 09:11 PM
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
neorder
07-24-2004, 09:14 PM
Originally posted by thuskey
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
thuskey
07-24-2004, 09:27 PM
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.
Smoge
07-03-2005, 10:00 PM
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
Smoge
07-03-2005, 10:15 PM
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
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.