cancel
Showing results for 
Search instead for 
Did you mean: 

Running Alfresco as regular user

marius_dumitrac
Confirmed Champ
Confirmed Champ
Hello,
I have installed Alfresco from war on CentOS7, Apache Tomcat 7 and PostgreSQL9.4.
The CIFS Settings from alfresco-global.properties are the following:
#CIFS Settings
cifs.enabled=true
cifs.serverName=alfresco
cifs.hostannounce=true
cifs.sessionTimeout=900
cifs.broadcast=255.255.255.0
cifs.tcpipSMB.port=1445
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagram.port=1138
cifs.netBIOSSMB.session.port=1139
cfs.WINS.autoDetectEnabled=true

The firewall is configured to port-forward 445 to 1445 (and the same for the other 3 ports)
Everything is ok if I run the Tomcat as root.

If I run Tomcat as user alfresco - a regular user (which is the owner of the folder where alfresco & tomcat are installed) the net share folder (smb://ipAddres/alfresco) is not accessible any more.

Any information how to resolve this problem ?

Thanks
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
It should work.   Please post the errors from your alfresco log file.

Hello,

You are right, it is a "little" error in log file at start-up (it was hard to see it when I start the server).
Here it is:

2015-12-07 20:27:22,771  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1] Checking for patches to apply …
2015-12-07 20:27:23,692  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1] No patches were required.
2015-12-07 20:27:23,715  INFO  [repo.module.ModuleServiceImpl] [localhost-startStop-1] Found 0 module(s).
2015-12-07 20:27:23,740  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'fileServers' subsystem, ID: [fileServers, default]
2015-12-07 20:27:29,463  WARN  [org.alfresco.fileserver] [localhost-startStop-1] CIFS, Unable to get local domain/workgroup name, using default of WORKGROUP. This may be due to firewall settings or incorrect <broadcast> setting)
2015-12-07 20:27:29,476  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
2015-12-07 20:27:29,476  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'imap' subsystem, ID: [imap, default]
2015-12-07 20:27:29,564  ERROR [org.alfresco.fileserver] [CIFS Server] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing NetBIOS SMB session handler, Permission denied
2015-12-07 20:27:29,573  ERROR [org.alfresco.fileserver] [CIFS Server] Error from JLAN
org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing NetBIOS SMB session handler, Permission denied
   at org.alfresco.jlan.smb.server.nio.NIOCifsConnectionsHandler.initializeHandler(NIOCifsConnectionsHandler.java:280)
   at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:479)
   at java.lang.Thread.run(Thread.java:745)
2015-12-07 20:27:29,636  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'imap' subsystem, ID: [imap, default] complete
2015-12-07 20:27:29,636  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'email' subsystem, ID: [email, outbound]

Thanks