LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   point directory (https://www.linuxquestions.org/questions/linux-newbie-8/point-directory-4175580784/)

majorkuso 05-26-2016 03:29 PM

point directory
 
i have the following task and do not know how to go about it.

I have created a san connection to /dev/sda and created a partition /dev/sda1 as ext4 and mounted it at /mnt/backups. so how do I achieve the following?

Figure out how go point the sftp daemon to this new location instead of /home/ciscocdr.
Or
Point /home/ciscocdr to the san mount.

Turbocapitalist 05-26-2016 11:40 PM

There are quite a few ways.

If you want to SFTP to the new directory, you could change that account's home directory to the target. That will have other side effects though.

Or you could mount /dev/sda1 in /home/ciscocdr/ or one of its subdirectories, if /mnt/backups/ is not otherwise used.

Or you could use mount's --bind option to make the contents of /mnt/backups/ appear a second time in /home/ciscocdr/ or one of its subdirectories.

There are more ways.

It might help with a little more information about what you are trying to accomplish and what, if any, the constraints are.


All times are GMT -5. The time now is 07:58 PM.