I have set an ftp server in PCLInuxOS and the default directory is my Home directory. I want to change this. I want to add a second hard drive and use that as the default directory. Can this be done and if so how do I do it.
Thanks
Usually that setting is done in the configuration file of the ftp server. Normally the users are "jailed" within their home directory due to security concerns. For example in pure-ftp you will find some lines like this
# Cage in every user in his home directory
ChrootEveryone no
# If the previous option is set to "no", members of the following group
# won't be caged. Others will be. If you don't want chroot()ing anyone,
# just comment out ChrootEveryone and TrustedGID.
TrustedGID 500
Normally (default) the ChrootEveryone is set to 'yes' which "jails" everyone to their home directory. By changing it to no and using the TrustedGID, that user may than go to any directory. He than may also write to that directory provided he has the needed permissions.
In vsftp.conf you need to look for this
passwd_chroot_enable
If enabled, along with chroot_local_user , then a chroot() jail location may be specified on a per-user basis. Each user's jail is derived from their home directory string in /etc/passwd. The occurrence of /./ in the home directory string denotes that the jail is at that particular location in the path.
Default: NO
chroot_local_user
If set to YES, local users will be (by default) placed in a chroot() jail in their home directory after login. Warning: This option has security implications, especially if the users have upload permission, or shell access. Only enable if you know what you are doing. Note that these security implications are not vsftpd specific. They apply to all FTP daemons which offer to put local users in chroot() jails.
Default: NO
But as pags posted if you want more specific help you really need to tell us which FTP Server you have running.