SLES 9 FTP Server

Posted on 2005-05-17
Last Modified: 2013-12-15
I'm using SLES 9 and am attempting to set it up as an FTP server.  I'm new to linux and would like to have detailed step by step instructions.  Thanks.
Question by:AmericanLand
    LVL 34

    Expert Comment

    I would use FTP, because FTP is fairly insecure. Your credentials (username & password) are transmitted in the clear, as is the data you're transferring.

    SLES 9 ships with SSH Secure Shell daemon (sshd) - I'm fairly sure its installed and turned on by default.

    sshd includes a Secure FTP (SFTP) server, which is much safer for transferring files.

    See --> man sshd
    See --> man sshd_config

    If you're new to Linux, the "man" system is your lifeline. Use it.
    LVL 34

    Expert Comment

    Whoops. I meant to type --> I wouldn't use FTP.....

    Author Comment

    I understand that SSH is more secure, but I don't want to have to install any clients on my other computers.  I want to be able to access the files on my server from anywhere without having to worry about a client.
    LVL 34

    Expert Comment

    Ummm...what makes you think you won't have to worry about a client with FTP? FTP FTP client. What makes you think FTP is clientless?

    Author Comment

    Both DOS and Internet Explorer support the ftp protocol.  If you have a windows machine, you don't have to install a 3rd party FTP client.
    LVL 29

    Accepted Solution

    Here are the simple instructions to get set up VSFTP running under SuSe.

    As root, follow these instructions:

    1) cd to /etc/xinit.d

    2) vi vsftpd
          remove the 'disable = yes'

    3) vi proftpd
          add in: 'disable = yes'

    4) cd to /etc

    5) vi vsftpd.conf
          Modify any entries here, especially if you wish to allow anonymous FTP access
          Security hint: keep anonymous access disabled else your server will attract hackers

    6) vi ftpusers
          add or remove any login names you DON'T want to access your system

    7) cd to /etc/init.d

    8) Type './xinetd restart'   (this starts up FTP daemons correctly)

    If everything is working, FTP should be running on port 21 of your server. Type 'netstat -na | grep 21' to see if you see something 'LISTEN'ING on that port number. REMEMBER: You cannot use 'root' to login via FTP to your server. You need to setup a seperate account (i.e. sysop) to test FTP correctly.

    Now to test it: By using a client (either from the main server or a client workstation), attempt to ftp to your server address. Under windows or linux: ftp <yourservername> or ftp <your ip address>

    -- Michael
    LVL 34

    Expert Comment

    DOS doesn't natively support the FTP protocol. You need an FTP *client* that runs under DOS. Never met a DOS that *included* it (altho I stopped looking about MS-DOS v6.22). In any event, its still a CLIENT software that must be present. Same for IE - it is a CLIENT software that must be present. My point being that Secure FTP or regular FTP, it still takes a CLIENT.

    mwecomputers has given you a good start - just understand that you are transmitting your username and password in cleartext every time you login. The advice to disable root login is therefore critical. Be sure whatever account you use, it has minimal privledges. You might even try making it an FTP-only account by giving it a shell of /bin/false in the /etc/passwd file.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now