Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Ftp server

    Reply
    Page 6 of 8 | Prev |   4     5   6   7     8   | Next
    taril | # 51 | 2009-12-10, 21:03 | Report

    Originally Posted by Bratag View Post
    Its a bad idea to allow anonymous logins - much better to set up an ftp user .
    Ok, help me please to create a user for proftpd! Thanks!

    Step by step, uhhh baby....

    Edit | Forward | Quote | Quick Reply | Thanks

     
    11/(14-17)/09 | # 52 | 2009-12-10, 21:09 | Report

    he alread told you how to set up logins, even offered to post a perl script that he uses to generate login files.

    You have to configure the /opt/etc/proftpd.conf file first. There are many guides online for how to do that.

    this would be a good chance for you to flex that big thing between your ears and get your feet wet a little, look for an online guide to configure proftpd.conf, it will probably just be a matter of editing it like a text file.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to 11/(14-17)/09 For This Useful Post:
    les_garten

     
    taril | # 53 | 2009-12-10, 22:11 | Report

    Ive got it! It was painful.

    Here you are ppl:

    http://ubuntuforums.org/showthread.php?t=79588

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to taril For This Useful Post:
    avijitkt

     
    Laughing Man | # 54 | 2009-12-21, 05:14 | Report

    Eesh, I've been hammering at this for a while and still can't get it to start.

    The exec /home/opt/sbin/proftpd -c /opt/etc/proftpd.conf command just results in the termial closing

    the /etc/event.d etc.. command doesn't even work.

    /opt/sbin/proftpd.conf just reports a fatal ServerIdent: expected Boolean parameter on line 8.

    I'm guessing the exec command does work. But then trying to login to the FTP via my Ubuntu Desktop just results in error connecting: connection refused.

    This whole /opt situation is pretty annoying. It means what material you find in other Linux OS won't work on the N900 since everything has to be moved around.

    But any help would be appreciated.

    Edit: Removed ServerIdent.. now it says it's unable to determine the IP address. No valid servers configured. Error processing the /opt/etc/proftpd.conf

    Edit2: now we are getting somewhere

    Code:
    $ /opt/sbin/proftpd 
    vendetta-n900 - PRIVS_ROOT: unable to seteuid(): Operation not permitted
    vendetta-n900 - PRIVS_ROOT: unable to setegid(): Operation not permitted
    vendetta-n900 - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
    vendetta-n900 - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted
    vendetta-n900 - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted
    vendetta-n900 - mod_delay/0.6: error opening DelayTable '/opt/var/proftpd/proftpd.delay': No such file or directory
    vendetta-n900 - unable to set daemon groups: Operation not permitted
    vendetta-n900 - unable to set uid to 65534, current uid: 29999

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Laughing Man; 2009-12-21 at 06:42.

     
    DaSilva | # 55 | 2010-01-02, 04:00 | Report

    I have created a startup script in /etc/init.d/proftpd

    Code:
      #!/bin/sh
    
      # ProFTPD files
      FTPD_BIN=/opt/sbin/proftpd
      FTPD_CONF=/opt/etc/proftpd.conf
      PIDFILE=/home/opt/var/proftpd/proftpd.pid
    
      # If PIDFILE exists, does it point to a proftpd process?
    
      if [ -f $PIDFILE ]; then
       pid=`cat $PIDFILE`
      fi
    
      if [ ! -x $FTPD_BIN ]; then
        echo "$0: $FTPD_BIN: cannot execute"
        exit 1
      fi
    
      case $1 in
    
        start)
          if [ -n "$pid" ]; then
            echo "$0: proftpd [PID $pid] already running"
            exit
          fi
    
          if [ -r $FTPD_CONF ]; then
            echo "Starting proftpd..."
    
            $FTPD_BIN -c $FTPD_CONF
    	 ps -ef | pgrep -x proftpd | awk 'NR>1{exit};1' > $PIDFILE
    
          else
            echo "$0: cannot start proftpd -- $FTPD_CONF missing"
          fi
          ;;
    
        stop)
          if [ -n "$pid" ]; then
            echo "Stopping proftpd..."
    	 rm $PIDFILE
            kill -TERM $pid
    
          else
            echo "$0: proftpd not running"
            exit 1
          fi
          ;;
    
        restart)
          if [ -n "$pid" ]; then
            echo "Rehashing proftpd configuration"
            kill -HUP $pid
    
          else
            echo "$0: proftpd not running"
            exit 1
          fi
          ;;
    
        *)
          echo "usage: $0 {start|stop|restart}"
          exit 1
          ;;
    
      esac
    
      exit 0
    and with this you can start proftpd with "/etc/init.d/proftpd start" and stop it with "/etc/init.d/proftpd stop" from the console.
    To make it easier to start proftpd from the menu/desktop I created this script:

    Code:
    #!/bin/sh
    # proftpd-toggle
    if pgrep -x proftpd > /dev/null; then
    sudo /etc/init.d/proftpd stop > /dev/null
    else
    echo Started
    sudo /etc/init.d/proftpd start
    fi
    exit 0
    The developer could integrate those two scripts and instead of the current menu entry of proftpd it could link to the toggle script.
    Thanks.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by DaSilva; 2010-01-15 at 07:57.
    The Following User Says Thank You to DaSilva For This Useful Post:
    figaro

     
    chrisp7 | # 56 | 2010-01-20, 12:18 | Report

    How could you share the main flash drive using proftpd on the N900? (The 30Gb one) is it possible?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    digitalvoid | # 57 | 2010-01-23, 21:26 | Report

    I have also a working proftpd install on my device, but it's very slow in data traffic (between 80 ... 600KB/s to my 16GB). I was expecting a much faster connection...

    What's your up & download speed?

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by digitalvoid; 2010-01-23 at 21:32. Reason: typo

     
    DaSilva | # 58 | 2010-01-24, 00:18 | Report

    Not more than 650 KB/s
    I thought it would be faster than SCP but it is the same.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to DaSilva For This Useful Post:
    digitalvoid

     
    cafeine | # 59 | 2010-03-27, 20:48 | Report

    can someone please provide a direct link to instructions for the noobs here?
    I installed proftpd, tried to make the autostart files as described above but no luck...

    a simple guide would be highly appreciated...thx...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    cafeine | # 60 | 2010-04-05, 14:41 | Report

    It's pretty lame to have a working application and not a one page manual how to use it.

    The comments in previous pages are not helpful for the noobs,i think a step by step guide is essential.

    Can't anybody dedicate 1 hour to make it?...is it so difficult?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 6 of 8 | Prev |   4     5   6   7     8   | Next
vBulletin® Version 3.8.8
Normal Logout