cancel
Showing results for 
Search instead for 
Did you mean: 

mapping SMB network drive to alfresco in linux

ktavasalo
Champ on-the-rise
Champ on-the-rise
please help me..
i have surfed the net about mapping a SMB network drive to alfresco in linux. but sad to say they are not working.
to those who knew how to do it and those who have ideas about it,  please help me.. i really need your help.
thank you very much!
10 REPLIES 10

bisana
Champ on-the-rise
Champ on-the-rise
Hi
Are you planning to make ur Sites/Folders in Alfresco which is running on LINUX to be shared as windows drive
or
Do you want some folders in some other system to be mounted on the LINUX system

ktavasalo
Champ on-the-rise
Champ on-the-rise
First of all, thank you for the reply..
My practicum supervisor wants me to map a network folder to Alfresco. It is like when a user creates an item inside his/her user space, the folder (lets say, alfresco) inside the network, will be updated and automatically adds that item in the folder.
Do you get what I am wanting to say? Thank you very much.

bisana
Champ on-the-rise
Champ on-the-rise
Hi
I would like to help, but not able to clearly understand what your objective is.
FUI:- Alfresco has CIFS capabilities, and you can access those folders from your client as network drive, for this you have to edit alfresco-gloabl.properties and then use iptables to redirect the port.

In your case,I was not able to understand clearlly what you want. You can get better help from the forum, if you can explain what you want clearly
thanks

ktavasalo
Champ on-the-rise
Champ on-the-rise
Sorry. I cant explain it through words.
Okay, in a network, anyone can access files, can open folders, etc. These actions are done with full freedom. What my supervisor wants is to have a folder, "Alfresco" in the network to control access. Alfresco Share will be used by the users, instead of directing to the network. All transactions done by the users in Alfresco Share are reflected to the folder "Alfresco" in the network, like when a user creates an item in ALfresco Share, it will be reflected in the network; when a user deletes an item in Alfresco Share, that file is also deleted in the network. The idea somehow is that Alfresco Share points to the folder "Alfresco" in the network.

bisana
Champ on-the-rise
Champ on-the-rise
This is CIFS
edit alfresco-global.properties file
add

##### Windows File Sharing ####################
cifs.enabled=true
cifs.Server.Name=mydc_a
cifs.domain=MYDC
cifs.hostanounce=true
cifs.broadcast=0.0.0.0
cifs.tcpipSMB.port=1445
cifs.ipv6.enabled=false
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138
cifs.netBIOSSMB.sessionPort=1139
audit.enabled=true
audit.dod5015.enabled=true


use the iptables to redirect the port,make a script to do so, using 

#!/bin/sh

iptables -F
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

iptables -t nat -A PREROUTING -p tcp –dport 445 -j REDIRECT –to-ports 1445
iptables -t nat -A PREROUTING -p tcp –dport 139 -j REDIRECT –to-ports 1139
iptables -t nat -A PREROUTING -p udp –dport 137 -j REDIRECT –to-ports 1137
iptables -t nat -A PREROUTING -p udp –dport 138 -j REDIRECT –to-ports 1138

iptables -t nat -A OUTPUT -d 127.0.0.1 -p tcp -m tcp –dport 445 -j REDIRECT –to-ports 1445
iptables -t nat -A OUTPUT -d 127.0.0.1 -p tcp -m tcp –dport 139 -j REDIRECT –to-ports 1139
iptables -t nat -A OUTPUT -d 127.0.0.1 -p tcp -m tcp –dport 137 -j REDIRECT –to-ports 1137
iptables -t nat -A OUTPUT -d 127.0.0.1 -p tcp -m tcp –dport 137 -j REDIRECT –to-ports 1137
iptables -t nat -A OUTPUT -d 127.0.0.1 -p tcp -m tcp –dport 21  -j REDIRECT –to-ports 1421

restart the alfreso, run the iptables script and you are done

ktavasalo
Champ on-the-rise
Champ on-the-rise
What will  be the address I will use to access Alfresco Share?
\\<serverName>\<domain>:share  ?

Is this right?

etech
Champ in-the-making
Champ in-the-making
This is my reference thread for setting up Alfresco CIFS. A couple of the replies towards the bottom are very useful:

http://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/how-e...

Good luck!

bisana
Champ on-the-rise
Champ on-the-rise
Hi
did you try \\DMServerIP\Alfresco, if CIFS is success it will ask user name and password, enter ur admin user name and password (You can give any user details here, for admin It has access to all the folders from "Alfresco )
Please let us know the results
thanks

ktavasalo
Champ on-the-rise
Champ on-the-rise
Sorry for idiocy. WHat is DMserver? How do I get its IP?
Thank you.