cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Bind Port

mliedtke
Champ in-the-making
Champ in-the-making
Hi All,
I have Alfresco 2.1 community running in JBoss 4.2ga on Fedora Linux.  In my initial installation I was running JBoss as root, but am trying to move away from running as root, and want to run as a non-privileged user.  Initially I was Having issues with the CIFS/SMB ports (137, 138, 139 & 445) as well as FTP (21).  I was able to configure CIFS to bind to non-privileged ports (1137, 1138, 1139 & 1445) in file-serves.xml, then forward them using iptables. 

Now I'm having issues with FTP and am getting this error at startup.

09:52:46,495 INFO  [STDOUT] 09:52:46,475 ERROR [alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Permission denied
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at java.net.ServerSocket.<init>(ServerSocket.java:141)
        at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:407)
        at java.lang.Thread.run(Thread.java:619)

Is there a way to bind FTP to a non-privileged port ie. 1121 in a way similar to what was done with CIFS?

Thanks,
Mark
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
It's in the same config file:
<config evaluator="string-compare" condition="FTP Server">
  <!– Run on a non-privileged port –>
  <port>1121</port>
</config>

Mike

mliedtke
Champ in-the-making
Champ in-the-making
Thanks Mike…I guess I should have read the file rather then just search for 21.