Hi Manuel,

 

I’m assuming that you’re exporting from the CLI here, but if that’s not the 
case please say so..

Do you use ‘sudo’ when running dsrun? (I’m guessing so, or you wouldn’t be able 
to create the files beneath the exports folder if it’s owned by root). If so, 
you’re effectively running the ‘dsrun’ command as root unless you do something 
like ‘sudo –u tomcat dsrun org.dspace.app......’ or ‘sudo –u dspace dsrun 
.......’ – the username you pass to sudo should be whatever user dspace is 
actually running as.

 

If you get sudo errors when you try this, you may need to ask the sysadmin to 
allow you to sudo ‘dsrun’ as your dspace user as well as (or, preferably, 
instead of!) root. You’ll also want them to change ownership of 
[dspace]/export/* to the dspace user, or you won’t be able to write to it.

 

There’s no need to be concerned about Dspace itself escalating privileges to 
root when it shouldn’t be – the dsrun script will run as whatever user it 
thinks is running it (‘effective user’), so if you make sure you can sudo to 
the dspace/tomcat user rather than just to root, you should be able to avoid 
any root-owned files/dirs being created.

 

If you’re using the webui or I’m totally barking up the wrong tree, apologies 
-- maybe give a few more details about how you’re exporting items/collections.

 

Cheers,

 

Kim

--

Kim Shepherd

IRR Technical Specialist

ITS Systems & Development

The University of Waikato

New Zealand

 

DDI +64 7 838 4025

 

 

 

From: Manuel Martin Mohedano [mailto:manumohed...@hotmail.com] 
Sent: Tuesday, 9 June 2009 7:59 p.m.
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Strange Behaviour when exporting items and collections

 

Hi all.

I was doing some exporting tests with communities and items yesterday and there 
was a thing that surprised me. Exported files are stored in a folder on server 
called exports/downloads/number. The thing is the owner of this folder is the 
root of the system but I don't have any root account on the machine. How is 
this possible?? Can Dspace run processes as root??

Thank's  and regards.

________________________________

Charlas más divertidas con el nuevo Windows Live Messenger 
<http://download.live.com> 

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to