Announcement

Collapse
No announcement yet.

Changing FTP DIrectories

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Changing FTP DIrectories

    I am trying to change what directory opens when I open an FTP Session to my computer. This is what I have found but it is not working.

    jason@Jason-PC:~$ sudo mkdir /media/sdb1/ftp
    [sudo] password for jason:
    jason@Jason-PC:~$ sudo usermod -d /media/sdb1/ftp ftp
    usermod: no changes
    jason@Jason-PC:~$


    Thanks for any help with this!
    Computer are like air conditioners: they stop working when you open windows!<br /><br />Linux : Because you wouldnt put a Porsche&#39;s engine in a Pinto<br /><br />case : HAF 932<br />mother board: ASUS p5e3<br />processor: Intel e8500 3.16 GHz<br />RAM: 8 GB Corsair DDR3 1600<br />power supply: Corsair 850W<br />video card: GeForce 8400

    #2
    Re: Changing FTP DIrectories

    What ftp app are you using? Graphical or CLI (command line)? No matter which, each will have a configuration option. If a graphical ftp app, what does its Settings > Configure ... provide? If a CLI utility, what does app_name --help tell you?
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Changing FTP DIrectories

      I'm using vsftpd but when I try using the help command I get this.


      jason@Jason-PC:~$ vsftpd --help
      500 OOPS: unrecognise option: --help
      jason@Jason-PC:~$ vsftpd help
      500 OOPS: cannot read config file: help
      jason@Jason-PC:~$ vsftpd man
      500 OOPS: cannot read config file: man
      jason@Jason-PC:~$


      Computer are like air conditioners: they stop working when you open windows!<br /><br />Linux : Because you wouldnt put a Porsche&#39;s engine in a Pinto<br /><br />case : HAF 932<br />mother board: ASUS p5e3<br />processor: Intel e8500 3.16 GHz<br />RAM: 8 GB Corsair DDR3 1600<br />power supply: Corsair 850W<br />video card: GeForce 8400

      Comment


        #4
        Re: Changing FTP DIrectories

        jason@Jason-PC:~$ sudo usermod -d /media/sdb1/ftp ftp
        Won't work, because you created /ftp as root.

        sudo chown -R ftp:ftp /ftp

        See if that helps. Though that might not be the best way to do it -- you don't want incoming connections getting into your root directory structure. Probably /var/ftp or even /home/ftp would be better. You can always symlink them somewhere else.

        I'm not familiar with vsftpd, try man vsftpd or look for it's homepage, that usually has more details on how to set it up, and there might be some additonal documentation in /usr/share/docs. You might try looking in /etc/vsftpd for config files. wu-ftpd puts them in /etc/wu-ftpd
        We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

        Comment

        Working...
        X