Thread: FTP-server

    #1
  1. No Profile Picture
    PHP-addict
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Netherlands
    Posts
    54
    Rep Power
    14

    FTP-server


    Hello,

    I finally got my first Linux Webserver running !!!!!!!!!
    I installed Redhat 7.1, Apache, PHP and Mysql.
    So far so good. In my local network I can use this server to try out my websites before I upload them, there only one problem:
    Ho do I upload my website to this Linux Webserver ???
    Do I need an FTP-server or is there another way. And if I do need one, which one is the best solution. As I am a complete newbie I need a foolproof "How to install an FTP-server for dummies" so every pointer in that direction would be higly appreciated.
    I already tried ProFTPd (http://www.linuxhelp.net/guides/joey/proftpd.shtml) but I can't seem to get the configuration file in order.
    Anybody ???

    Thanks,

    Ronald
    "Yes dear, I'll come to bed in a minute"
    R. Smit
    http://www.rsdev.nl
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    174
    Rep Power
    18
    Maybe you have an ftp already?

    if you don't know in console type ftp
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Vienna, Austria
    Posts
    12
    Rep Power
    0
    proFTPD is a good choice.
    if you don't want anonymous access you're almost ready, after installing the rpm-package.

    you have to do one more thing:

    open the file /etc/inetd.conf in an editor. find the line starting with ftp or #ftp

    it should look like this (all in one line):

    ftp stream tcp nowait root /usr/sbin/tcpd proftpd
    if there are more lines starting with ftp put a # sign in front of the others.

    restart inetd

    type "ftp localhost" in a shell and log in with your user name and password.
    if you want anonymous access just uncomment the lines (at the bottom) in /etc/proftpd.conf
  6. #4
  7. No Profile Picture
    PHP-addict
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Netherlands
    Posts
    54
    Rep Power
    14
    Hello Shakadev,

    Here is my config file.

    ServerName "ProFTPD Default Installation"
    ServerType standalone
    DefaultServer on

    # Port 21 is the standard FTP port.
    Port 21
    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    Umask 022

    MaxInstances 30

    # Set the user and group that the server normally runs at.
    User nobody
    Group nogroup

    # Normally, we want files to be overwriteable.
    <Directory /*>
    AllowOverwrite on
    </Directory>

    # A basic anonymous configuration, no upload directories.
    <Anonymous ~ftp>
    User ftp
    Group ftp
    # We want clients to be able to login with "anonymous" as well as "ftp"
    UserAlias anonymous ftp

    # Limit the maximum number of anonymous logins
    MaxClients 10

    # We want 'welcome.msg' displayed at login, and '.message' displayed
    # in each newly chdired directory.
    DisplayLogin welcome.msg
    DisplayFirstChdir .message

    # Limit WRITE everywhere in the anonymous chroot
    <Limit WRITE>
    DenyAll
    </Limit>

    </Anonymous>
    I tried to use this one but it says that i don't have a group called "nogroup". I guess I knew that but I don't know how to fix it. I only use the FTP-server internally on my home network.
    So one account (preferably without password) is sufficient.

    Hope you can help me with this one.

    Thanks,

    Ronald
    "Yes dear, I'll come to bed in a minute"
    R. Smit
    http://www.rsdev.nl
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Vienna, Austria
    Posts
    12
    Rep Power
    0
    I'm not running RedHat (I use SuSE) but there should be a tool for creating users. Try linuxconf or if you are running KDE use the KDE program for it. First create a group nogroup and then create a new user nobody who is a member of the nogroup.

    If you can't find the tools open a shell and type

    adduser

    you can find help with the man command

    man adduser

    hope this helps

    alex
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    California
    Posts
    43
    Rep Power
    15
    Ronald,

    What you want to do is change the group to nobody as well.
    RedHat doesn't have a nogroup group, but the user nobody has it's own group : nobody

    Just change that, and it should work!!

    Hope this helps!

    Cya,
    Iwan
  12. #7
  13. Modding: Oracle MsSQL Firebird
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2001
    Location
    Outside US
    Posts
    8,527
    Rep Power
    539

IMN logo majestic logo threadwatch logo seochat tools logo