cancel
Showing results for 
Search instead for 
Did you mean: 

ftp change ownership

hr61369256
Champ in-the-making
Champ in-the-making
Hello, I'm looking for a solution to change the onwer after a bulk upload using the ftp of alfresco (currently using release 4.2.c on ubuntu 12.04 LTS). When I compare the alfresco ftp with, for example, vsftp I'm missing the command "chown" (and by the way "ls -l"). Is there an other possibility for changing ownership through ftp? (I did not found a similar posting).
Thanks a lot, Ralf
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
No, I don't think so.   Do you know which RFC specifies chown for ftp?    I can't find it.  

In particular chown or chmod is not on the common ftp RFCs I've checked.

Could you use a rule?

hr61369256
Champ in-the-making
Champ in-the-making
… I assumed that. But would'nt it be a wonderful enhancement?

Content rule: I'm not yet shure if that would work. What I need is changing onwership after uploading with  ftp to the current logged-in user. I'm not using a ftp client, I'm using a php soap gui which triggers the bulk upload process. The stuff uploaded belongs afterwards to the alfresco-ftp-user "bulkupload" which should be changed to the user who started the upload process. (Hope this gives a kind of picture about the use case)

How can content rules come in here? Ideas?

mrogers
Star Contributor
Star Contributor
If you use alfresco's ftp server then the content will be created with the user's session.

So your issue is to do with bulk upload and the ftp server is not alfresco.  Could you store each user's content in a particular folder or tag it somehow?

hr61369256
Champ in-the-making
Champ in-the-making
Thank you for your hint. In the meantime I chose a third way with the php api and a code signed java applet. Java applet selects the files on the local client. Afterwards it forwards them to a php script on server side, which loads them into alfresco using given userid and ticket.