AnsweredAssumed Answered

File server subsystem not from root

Question asked by pelican on Jun 26, 2014
Latest reply on Jun 26, 2014 by pelican
Hello.
File server subsystem does not start under not root user. Using non-standard ports. Sysetm - Ubuntu Server 14.04 LTS, Alfresco Community 4.2.f

logs:

2014-06-25 17:06:12,071  ERROR [org.alfresco.fileserver] [FTP Server] [FTP] FTP Socket error : java.net.BindException: Permission denied
2014-06-25 17:06:12,081  ERROR [org.alfresco.fileserver] [CIFS Server] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Отказано в доступе
2014-06-25 17:06:12,093  ERROR [org.alfresco.fileserver] [FTP Server] Error from JLAN
java.net.BindException: Отказано в доступе
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
   at java.net.ServerSocket.bind(ServerSocket.java:376)
   at java.net.ServerSocket.<init>(ServerSocket.java:237)
   at java.net.ServerSocket.<init>(ServerSocket.java:181)
   at org.alfresco.jlan.ftp.FTPServer.run(FTPServer.java:554)
   at java.lang.Thread.run(Thread.java:724)
2014-06-25 17:06:12,093  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(Thread.java:724)


file-servers.properties

filesystem.name=Alfresco
filesystem.acl.global.defaultAccessLevel=
filesystem.avm.name=AVM
filesystem.avm.enabled=true
filesystem.avm.stores=site,staging,author
filesystem.storeName=${spaces.store}
filesystem.rootPath=${protocols.rootPath}
filesystem.renameShufflePattern=(.*[a-f0-9]{8}+$)|(.*\\.tmp$)|(.*\\.wbk$)|(.*\\.bak$)|(.*\\~$)
filesystem.renameCSVShufflePattern=.*[a-f0-9]{8}+$
filesystem.setReadOnlyFlagOnFolders=false
cifs.enabled=true
cifs.serverName=${localname}A
cifs.domain=
cifs.broadcast=255.255.255.255
cifs.bindto=
cifs.ipv6.enabled=false
cifs.hostannounce=true
cifs.disableNIO=false
cifs.disableNativeCode=false
cifs.sessionTimeout=900
cifs.maximumVirtualCircuitsPerSession=16
cifs.tcpipSMB.port=8445
cifs.netBIOSSMB.sessionPort=8139
cifs.netBIOSSMB.namePort=8137
cifs.netBIOSSMB.datagramPort=8138
cifs.WINS.autoDetectEnabled=true
cifs.WINS.primary=1.2.3.4
cifs.WINS.secondary=5.6.7.8
cifs.sessionDebug=
cifs.pseudoFiles.enabled=true
cifs.pseudoFiles.explorerURL.enabled=true
cifs.pseudoFiles.explorerURL.fileName=__Alfresco.url
cifs.pseudoFiles.shareURL.enabled=false
cifs.pseudoFiles.shareURL.fileName=__Share.url
ftp.enabled=true
ftp.port=2121
ftp.bindto=
ftp.dataPortFrom=0
ftp.dataPortTo=0
ftp.keyStore=
ftp.keyStoreType=JKS
ftp.keyStorePassphrase=
ftp.trustStore=
ftp.trustStoreType=JKS
ftp.trustStorePassphrase=
ftp.requireSecureSession=true
ftp.sslEngineDebug=false
ftp.sessionDebug=
nfs.enabled=false
nfs.nodeMonitor.enabled=${nfs.enabled}
nfs.mountServerPort=0
nfs.nfsServerPort=2049
nfs.rpcRegisterPort=0
nfs.portMapperPort=111
nfs.portMapperEnabled=false
nfs.sessionDebug=
nfs.mountServerDebug=false
filesystem.cluster.debugFlags=
filesystem.lockKeeperEnabled=true
filesystem.lockKeeperTimeout=7200
filesystem.lockKeeperRefreshCronExpression=0 * */1 * * ?

Whats wrong?

Outcomes