Skip to content

Commit

Permalink
recommend against running as root. mention port-forwarding in readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Byrne committed Oct 31, 2011
1 parent 57ab68c commit 45b5afd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.markdown
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ I assume you'll want to customize:


For my specific needs (at work) we needed custom user authentication, to sandbox all the file operations, and to run special code when a file is uploaded. For my specific needs (at work) we needed custom user authentication, to sandbox all the file operations, and to run special code when a file is uploaded.


Thanks, Thanks, Alan
Alan


Status Status
---- ----
Expand Down Expand Up @@ -51,6 +50,9 @@ Then implement the following event callbacks with logic you need performed:
* command:user - Same as command:pass above, but first parameter will be the username that was sent from the client. * command:user - Same as command:pass above, but first parameter will be the username that was sent from the client.
* command:pass - Sends three params. The first is the password. The second is a callback to be called if you determine the password is correct ... pass the username as the first parameter to this callback. Call the second if incorrect. * command:pass - Sends three params. The first is the password. The second is a callback to be called if you determine the password is correct ... pass the username as the first parameter to this callback. Call the second if incorrect.


Also, don't run node as root just so you can get access to the FTP port. We run our node FTP server as an unprivileged user and perform port-forwarding with iptables. The following should work for you as well:

> iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 21 -j REDIRECT --to-port 10000
04 September 2011 04 September 2011
---- ----
Expand Down

0 comments on commit 45b5afd

Please sign in to comment.