cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED]Alfresco as ftp-Server

thomas91
Champ in-the-making
Champ in-the-making
Hello,

I want to configure Alfresco ftp server:

I have the following entries in /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/file-servers.xml:
    Are these entires correct?
    Do I also have to change the file file-servers.xml in the /opt/alfresco/tomcat/webapps/alfresco.war? 
    Is anything more to adapt?
<config evaluator="string-compare" condition="FTP Server">
          <serverEnable enabled="true"/>

          <!– Run on a non-privileged port –>

          <port>21</port>
        <rootDirectory>/Alfresco</rootDirectory>

      <!– FTP authentication –>
      <authenticator type="alfresco"/>

<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>
15 REPLIES 15

thomas91
Champ in-the-making
Champ in-the-making
Hello,

I tried:
smitty-op:/opt/alfresco # ftp admin@192.168.78.249
Connected to 192.168.78.249.
220 FTP server ready
331 User name okay, need password for admin
Password:
230 User logged in, proceed
Remote system type is UNIX.
ftp> ls
522 Command not recognized
227 Entering Passive Mode (192,168,78,249,181,247)
150 File status okay, about to open data connection
drw-rw-rw-   1 user group 0 Sep  5 17:46 Warning Products
drw-rw-rw-   1 user group 0 Sep  5 17:46 Information Products
drw-rw-rw-   1 user group 0 Sep  5 17:47 Map Products
drw-rw-rw-   1 user group 0 Sep  5 17:47 Reports
drw-rw-rw-   1 user group 0 Sep  5 17:48 Other Products
226 Closing data connection

So it seems to work many thanks for all your help.

Now I have four problems/questions left:
  • I want to change the derby db to postgresql -> see extra topic (Do I loose my already genereated spaces/subspaces, users and uploaded data if I change the DB afterwards?)

  • I want add users for my spaces, there should be
  • - an overall admin (exist already (=admin)=
    -  normal users of a space: these users can read the content of all spaces, but edit only the content of their own home space (there are more users belongin to the same space)
    - space coordinators: these users can additionally add users to their spaces and also create subspaces in their space (but only in their space)
    How can I configure such user rights?
  • I have still the error messages in the log for openoffice, swf2pdf and Image Magick, although I've downloaded the files, gzip -d, tar xvf and installed as described in the the Readme (execute ./configure, make install)
  • smitty-op:/opt # ls -l
    total 3
    drwxr-xr-x 17 root root 1384 Sep 11 13:28 ImageMagick-6.4.3
    drwxr-xr-x 11 root root  640 Sep 11 13:37 alfresco
    drwxr-xr-x  8 root root  192 May 18  2007 gnome
    drwxr-xr-x 10 root root  576 Sep  3 13:58 jdk1.6.0_07
    drwxr-xr-x  9 root root  216 Apr 14 16:07 kde3
    drwxr-xr-x  8 root root  352 May 29 19:33 openoffice.org2.4
    drwxr-xr-x  9 root root  864 Sep 11 12:57 swftools-0.8.1

  • I had to add some lines in the CIFS-Server part. Does this mean since ftp-server is now accessible that I can use CIFS? Most user will address alfresco from a windows PC, so it would be comfortable if the repository directories can be browsed like normal directories in windows explorer. Is there anything more to configure to do be able to do this?

thomas91
Champ in-the-making
Champ in-the-making
Hello,

I added the directory path to PATH. Are the main directories correct or do I need to add a subdirectory?

smitty-op:/opt # echo $PATH
/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/sbin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/ImageMagick-6.4.3:/opt/swftools-0.8.1:/opt/openoffice.org2.4/
smitty-op:/opt # ls -l
total 3
drwxr-xr-x 17 root root 1384 Sep 11 13:28 ImageMagick-6.4.3
drwxr-xr-x 11 root root  640 Sep 11 15:01 alfresco
drwxr-xr-x  8 root root  192 May 18  2007 gnome
drwxr-xr-x 10 root root  576 Sep  3 13:58 jdk1.6.0_07
drwxr-xr-x  9 root root  216 Apr 14 16:07 kde3
drwxr-xr-x  8 root root  352 May 29 19:33 openoffice.org2.4
drwxr-xr-x  9 root root  864 Sep 11 12:57 swftools-0.8.1cd ..

smitty-op:/opt/openoffice.org2.4 # ls
LICENSE  LICENSE.html  README  README.html  THIRDPARTYLICENSEREADME.html  help  licenses  presets  program  readmes  share

smitty-op:/opt/swftools-0.8.1 # ls
AUTHORS  ChangeLog  INSTALL   Makefile.common     Makefile.in  avi2swf       config.h     config.log     config.sub  configure.in  install-sh  ltmain.sh  missing        pdf2swf  swfs
COPYING  FAQ        Makefile  Makefile.common.in  TODO         config.guess  config.h.in  config.status  configure   doc           lib         m4         mkinstalldirs  src

smitty-op:/opt/ImageMagick-6.4.3 # ls
AUTHORS.txt       ImageMagick.spec.in  Install-vms.txt      Magick++       Makefile     NEWS.txt    Platforms.txt   _configs.sed  config         configure     images      ltdl    magick.sh     scripts    version.sh  www
ChangeLog         Install-mac.txt      Install-windows.txt  Magickshr.opt  Makefile.am  NOTICE      QuickStart.txt  aclocal.m4    config.log     configure.ac  index.html  m4      magick.sh.in  tests      wand
ImageMagick.spec  Install-unix.txt     LICENSE              Make.com       Makefile.in  PerlMagick  README.txt      coders        config.status  filters       libtool     magick  scenes        utilities  winpath.sh

thomas91
Champ in-the-making
Champ in-the-making
I added the paths for swftools and pdf2swf, but I didn't find convert at least not exactly (I tried to add ./ImageMagick-6.4.3/utilities/convert.c and /ImageMagick-6.4.3/wand/convert.c but same result)

smitty-op:/opt # find -iname '*convert*'
./ImageMagick-6.4.3/www/api/MagickWand/convert_8h-source.html
./ImageMagick-6.4.3/www/api/MagickWand/convert_8c.html
./ImageMagick-6.4.3/www/api/MagickWand/convert_8h.html
./ImageMagick-6.4.3/www/convert.html
./ImageMagick-6.4.3/wand/.deps/wand_libMagickWand_la-convert.Plo
./ImageMagick-6.4.3/wand/convert.c
./ImageMagick-6.4.3/wand/convert.h
./ImageMagick-6.4.3/utilities/.deps/convert.Po
./ImageMagick-6.4.3/utilities/convert.1
./ImageMagick-6.4.3/utilities/convert.c
./ImageMagick-6.4.3/utilities/convert.1.in

thomas91
Champ in-the-making
Champ in-the-making
Hello,

seems not to work (perhaps beacuse its opensuse not fedora):
smitty-op:/opt # rpm -Uvh ImageMagick-6.4.3-6.i386.rpm
error: Failed dependencies:
        libdjvulibre.so.15 is needed by ImageMagick-6.4.3-6.i386
        libgomp.so.1 is needed by ImageMagick-6.4.3-6.i386
        libgomp.so.1(GOMP_1.0) is needed by ImageMagick-6.4.3-6.i386
        libgomp.so.1(OMP_1.0) is needed by ImageMagick-6.4.3-6.i386
        libgs.so.8 is needed by ImageMagick-6.4.3-6.i386
        libjasper.so.1 is needed by ImageMagick-6.4.3-6.i386
        libpng12.so.0(PNG12_0) is needed by ImageMagick-6.4.3-6.i386
        rtld(GNU_HASH) is needed by ImageMagick-6.4.3-6.i386


Rgds
thomas

nadaoneal
Champ in-the-making
Champ in-the-making
yes; I tried: ftp://localhost/alfresco (instead of localhost I used the ip-address since I tried it from another server, I can start alfresco from this server)
but firefox was only browsing and nothing happened, also no error page) .

You might want to try using a normal ftp client rather than firefox; firefox negotiates a passive connection and your firewall may be blocking the passive ports. Compare this for the same problem with a different ftp server.

Using a different ftp client will help you to establish what the problem actually is. If other ftp clients work, then it's a firewall/configuration issue. If other ftp clients don't work, then it's a basic alfresco ftp config issue.

I'm trying to figure out how to limit the ports Alfresco will use for passive ftp transfer - if I do, I'll post again here.

ymatos
Champ in-the-making
Champ in-the-making
I have tried every thing in this post and others, but still not working.
When i try to connect from nautilus: ftp://n.n.n.n:1121/Alfresco, agains an AD, it ask me for username and password, after that, throws a message like this: "Unable to show <<ftp://n.n.n.n:1121/Alfresco>>  Nautilus can't mannage «ftp» places", and never loggs in.

here is a piece of my file-servers.xml file:

<config evaluator="string-compare" condition="FTP Server">

     <serverEnable enabled="true"/>

    

     <!– Run on a non-privileged port –>

     <port>1121</port>

     <bindto>10.128.50.80</bindto>
     <rootDirectory>/Alfresco</rootDirectory>
    


      <!– FTP authentication –>

      <authenticator type="passthru">

        <Server>10.0.0.186</Server>
      </authenticator>
      <!–allowAnonymous/–>
          

<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>

   </config>

regards.

Note: sorry for my english.