AnsweredAssumed Answered

FTP Bind Port

Question asked by mliedtke on Nov 25, 2008
Latest reply on Nov 25, 2008 by mliedtke
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

Outcomes