cancel
Showing results for 
Search instead for 
Did you mean: 

TCP-IP SMB session handler, Permission denied

tctim
Champ in-the-making
Champ in-the-making
I have this error that I don't know to resolve - my thought is I need to change a configuration file somewhere but I don't have a clue which one it is…


12:08:13,808 ERROR [org.alfresco.fileserver] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
12:08:13,844 ERROR [org.alfresco.fileserver] org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
12:08:13,844 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.nio.NIOCifsConnectionsHandler.initializeHandler(NIOCifsConnectionsHandler.java:265)
12:08:13,844 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:478)
12:08:13,844 ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:637)

Thanks for your help.

Tim
13 REPLIES 13

jsosic
Champ in-the-making
Champ in-the-making
OK, I've found some threads, so I created a file /var/lib/tomcat5/shared/classes/alfresco/extension/file-servers-custom.xml and added the following in it:
<alfresco-config area="file-servers">

   <!– To override the default Alfresco filesystem use replace="true", to –>
   <!– add additional filesystems remove the replace="true" attribute     –>

   <!– section added by jsosic –>
   <config evaluator="string-compare" condition="Filesystem Security" replace="true">
      <!– Domain mappings used for passthru authentication routing              –>
      <!– Used when the client does not provide a domain name in the NTLM logon –>
      <DomainMappings>
          <Domain name="COMPANY.LOCAL" subnet="192.168.1.0" mask="192.168.1.255"/>
      </DomainMappings>

      <!– Custom share mapper when multi-tenancy is enabled –>
      <!–
      <shareMapper type="multi-tenant">
        <debug/>
      </shareMapper>
      –>

      <!– Global access control list                                                                    –>
      <!– Applied to all filesystems that do not have an <accessControl> block                          –>
      <!– Access type of 'none' will stop the filesystem from showing up for that user/address/protocol –>
      <!–
      <globalAccessControl default="None">
         <user name="admin" access="Write"/>
         <address ip="192.168.1.2" access="Write"/>
      </globalAccessControl>
      –>
   </config>
</alfresco-config>

Still it didn't help Smiley Sad

jsosic
Champ in-the-making
Champ in-the-making
It seems that problem is only with DC (domain controller). Accessing it from workstation works OK.

I guess this thread is SOLVED Smiley Happy Thank you for your assistance!

gawabe
Champ in-the-making
Champ in-the-making
Hi…
I am using alfresco 3.3g community edition and trying to enable CIFS shared drive. I am working in linux environment and I had already configured my alfresco with ldap active directory.

I updated the following properties in alfresco-global.properties file
cifs.enabled=true
cifs.ipv6=disabled
cifs.disableNativeCode=false
cifs.serverName=${localname}A
cifs.urlfile.prefix=http://mySystemName:8080/alfresco
cifs.domain=
cifs.broadcast= (subnet mask address)
cifs.bindto= {my system IP address}
cifs.hostannounce=true
cifs.ipv6.enabled=false
cifs.sessionTimeout=900
cifs.tcpipSMB.port=1445
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138
cifs.netBIOSSMB.sessionPort=1139
cifs.platforms=linux,solaris,macosx
cifs.WINS.autoDetectEnabled=true

Enabled Port forwarding (1137, 1138, 1139 and 1445) and added the ports (445, 137, 138, 139) in my firewall.
For CIFS server debugging
log4j.logger.org.alfresco.smb.protocol=debug
log4j.logger.org.alfresco.smb.protocol.auth=debug
log4j.logger.org.alfresco.acegi=debug

Restarted my tomcat and Still cant able to access my alfresco shared drive.
I am getting the following message in tomcat log:
DEBUG [smb.protocol.auth] Protocol order primary=TCP/IP NetBIOS, secondary=Native SMB (port 445)
DEBUG [smb.protocol.auth] Using offline check interval of 300 seconds

Can anyone say the reason for this message and do I need to configure anything more to have CIFS enabled?

hfunes
Champ in-the-making
Champ in-the-making
Hi! I'm having the same problem with Centos 7 and Alfresco 5 ¿Could anybody solve this?
Best regards!
Hernán