cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS configuration in debian Permissions config

danilo
Champ in-the-making
Champ in-the-making
Hello,

I just installed the binary package in Linux debian and I'm trying to get CIFS to work, but I can't even seem to connect via smbclient in the local host!

I check the alfresco.log file and it seems that my user has no permissions to lauch the CIFS server:

16:05:38,293 ERROR [org.alfresco.smb.protocol.netbios] NetBIOSNameServer setup error:
java.net.BindException: Permission denied
        at java.net.PlainDatagramSocketImpl.bind0(Native Method)
        at java.net.PlainDatagramSocketImpl.bind(Unknown Source)
        at java.net.DatagramSocket.bind(Unknown Source)
        at java.net.DatagramSocket.<init>(Unknown Source)
        at java.net.DatagramSocket.<init>(Unknown Source)
        at java.net.DatagramSocket.<init>(Unknown Source)
        at org.alfresco.filesys.netbios.server.NetBIOSNameServer.openSocket(NetBIOSNameServer.java:1080)
        at org.alfresco.filesys.netbios.server.NetBIOSNameServer.run(NetBIOSNameServer.java:1504)
        at java.lang.Thread.run(Unknown Source)
16:05:38,294 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_05-b05; maximum heap size 493.063MB
16:05:38,295 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493.063MB is less than recommended 512MB
16:05:38,295 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 1.3.0 schema 14 - Installed versi
on 1.3.0 schema 14
16:05:38,296 ERROR [org.alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Permission denied
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(Unknown Source)
        at java.net.ServerSocket.bind(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:381)
        at java.lang.Thread.run(Unknown Source)
16:05:38,302 ERROR [org.alfresco.smb.protocol] Server error :
java.net.BindException: Permission denied
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(Unknown Source)
        at java.net.ServerSocket.bind(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at org.alfresco.filesys.smb.server.SessionSocketHandler.initialize(SessionSocketHandler.java:249)
        at org.alfresco.filesys.smb.server.NetBIOSSessionSocketHandler.createSessionHandlers(NetBIOSSessionSocketHandler.java:159)
        at org.alfresco.filesys.smb.server.SMBServer.run(SMBServer.java:496)
        at java.lang.Thread.run(Unknown Source)

Do I really need a user with root permissions to set this up? If not, what are the privileges I need to get this working?

Thanks,

Danilo
2 REPLIES 2

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

On linux you can either run as root so the CIFS server can bind the privileged ports 137/138/139/445 or you can setup firewall rules to bounce incoming requests to non-privileged ports so Tomcat/Alfresco can be run using a normal user account.

Cheers

Gary

danilo
Champ in-the-making
Champ in-the-making
Ok,

Consider I want to configure my firewall to bounce the incoming requests so Tomcat/Alfresco can be run using a normal user account.

How do I configure Tomcat/Alfresco so that the CIFS uses non-privileged ports?

Thanks in advance Gary,

Danilo