EPrints Technical Mailing List Archive

Message: #00814


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: problem on permisions


Il 29/06/2012 10:22, Denis Pitzalis ha scritto:
Ciao Yuri!

you did the good operations, but in the wrong place (I think)!
try this:

(note the eprints:www-data)

$ sudo chown -R eprints:www-data /usr/share/eprints3/
$ sudo chmod -R 02775 /usr/share/eprints3/archives/

sure I did it as eprints:www-data, I forgot to change and just copied from the wiki when writing the email :)

but I can see the file is eprints:eprints.. anyway, www-data is in the eprints group (and the eprint user is in the www-data group), so it should work anyway., shouldn't?

I'll redo chown/chmd again, to see if something change.

Best,

Denis



On 29/06/2012 10:15, Yuri wrote:
I've a test site with a copy of our eprints repository. In this site
everything works but index of modified items (cannot find them using
eprintid) and this:

------------------------------------------------------------------
---------------- EPrints System Error ----------------------------
------------------------------------------------------------------
Failed to write
/usr/share/eprints3/archives/XXXX/html/it/view/dottorato/FusionScienceandEngineering=5Fcorsi=5F24.title:
Operation not permitted

this is the situation:


servercopy:/usr/share/eprints3/archives/XXXX/html/it# ls -l
/usr/share/eprints3/archives/XXXX/html/it/view/dottorato/FusionScienceandEngineering\=5Fcorsi\=5F24.title
-rwxrwsr-x 1 eprints eprints 37 30 mar 11.36
/usr/share/eprints3/archives/XXXX/html/it/view/dottorato/FusionScienceandEngineering=5Fcorsi=5F24.title

and this:


www-data:x:33:eprints
eprints:x:107:www-data

apache runs as www-data and should be able to modify the file, isn't it?
I've also chowned and chmodded as here:
http://wiki.eprints.org/w/Moving_a_repository#Migrate_the_repository

$ sudo chown -R eprints:eprints /opt/eprints3/
$ sudo chmod -R 02775 /opt/eprints3/archives/

Any idea? Thanks!


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/