cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to mount CIFS Alfresco 3.2 share under CentOS 5.4

optimal
Champ in-the-making
Champ in-the-making
I am trying to setup a Alfresco Community Edition 3.2r2 installation on CentOS 5.4.  The installation is working properly except that I am unabled to mount the CIFS AVM share.

The current properties in the alfresco-global.properties file are:

cifs.enabled=true
cifs.ipv6.enabled=false
cifs.tcpipSMB.port=1445
cifs.netBIOSSMB.sessionPort=1139
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138

Using the following command :

# mount -t cifs //127.0.0.1/AVM /mnt/alfresco-wcm -o user=admin,pass=admin,port=1445

I get the response :

mount error 111 = Connection refused
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

What is strange is that I am able to connect using the smbclient, a list inquiry:

# smbclient -L 127.0.0.1 -p 1139 -U admin%admin

returns:

Domain=[262262-FRESCO01] OS=[Java] Server=[Alfresco CIFS Server 5.0.0]

        Sharename       Type      Comment
        ———       —-      ——-
cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \srvsvc failed with error NT_STATUS_BUFFER_TOO_SMALL
        Alfresco        Disk
        IPC$            IPC
        AVM             Disk
Error connecting to 127.0.0.1 (Connection refused)
Connection to 127.0.0.1 failed (Error NT_STATUS_CONNECTION_REFUSED)
NetBIOS over TCP disabled – no workgroup available

I can connect to the share using the smbclient, update files, etc without any problem, but for some reason I can't mount the share.  I would appreciate any comments or suggestions.

Thanks!
1 REPLY 1

kb9zzw
Champ in-the-making
Champ in-the-making
The mount.cifs implementation for CentOS 5.4 appears to ignore the "port=" option from being recognized.  Sniffer showed that despite setting port=1445, SYN's going to 445, 139 but not 1445.

Work around is to use port redirect in IPTables, something along these lines:


echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe iptable_nat
iptables -t nat -F
iptables -t nat -A OUTPUT -d 127.0.0.1 -p tcp –dport 445 -j REDIRECT –to-ports 1445

(or, similar rule in PREROUTING chain)

Now this works for me:
mount -t cifs -o user=admin,password=admin,rw //127.0.0.1/AVM /mnt/avm

Hope that helps.

-Jon