awsalfresco

Enable CIFS and/or FTP

To enable CIFS in Alfresco, open port 445.

To enable FTP in Alfresco, install the vsftpd FTP server:

  • Debian:

    $ sudo apt-get install vsftpd
    
  • CentOS:

    $ sudo yum install vsftpd
    

Then, open port 21 and comment out the following line in the /etc/vsftpd.conf file:

#listen_address=127.0.0.1

Then, restart the vsftpd server:

  • Debian:

    $ sudo service vsftpd restart
    
  • CentOS:

    $ systemctl restart vsftpd.service
    

Refer to the FAQ for more information on how to open ports in the server firewall.

You might see this error when binding the CIFS port in the Tomcat/Alfresco log file:

ERROR [org.alfresco.fileserver] [CIFS Server] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
ERROR [org.alfresco.fileserver] [CIFS Server] Error from JLAN
org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
        at org.alfresco.jlan.smb.server.nio.NIOCifsConnectionsHandler.initializeHandler(NIOCifsConnectionsHandler.java:259)
        at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:479)
        at java.lang.Thread.run(Unknown Source)

This occurs when Alfresco tries to start a SMB/CIFS server using a port number below 1024, and that operation is not allowed for normal users. To fix this, edit the /opt/bitnami/apache-tomcat/shared/classes/alfresco-global.properties file and uncomment these lines:

#cifs.tcpipSMB.port=1445
#cifs.netBIOSSMB.sessionPort=1139
#cifs.netBIOSSMB.namePort=1137
#cifs.netBIOSSMB.datagramPort=1138
Last modification August 30, 2018