Hi all and thank you for answering.
Tomcat is running under an user called "Tomcat". All Dspace folders have the
user "Tomcat" as owner with the exception of the exports folder, whose owner is
the root...
> Date: Wed, 10 Jun 2009 10:36:57 +0200
> From: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]
> Subject: Re: [Dspace-tech] Strange Behaviour when exporting items and
> collections
>
> Hi Manuel,
>
> is your servlet container running as root?
>
> Claudia
>
>
>
> Manuel Martin Mohedano schrieb:
> > Hello Kim.
> >
> > Thank's for answering! But the thing is I am exporting from de Webui... :S.
> > What I do after login in the site as admin is accesing a comunnity and
> > using teh admin tools (right side of the screen) I click the button "Export
> > Community" and this message appears :
> > Thank You
> >
> >
> > The task is complete, and notification has been sent to the appropriate
> > people.
> > When I enter the CLI I see a new zip file corresponding to the exported
> > comunnity has been created inside exports folder, which has only root
> > access (And of course I don't have any privileges in the system to do that).
> >
> > Thank's in advance. Regards
> >
> > Manuel
> > Subject: RE: [Dspace-tech] Strange Behaviour when exporting items and
> > collections
> > Date: Wed, 10 Jun 2009 10:02:30 +1200
> > From: [email protected]
> > To: [email protected]; [email protected]
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 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:[email protected]]
> >
> >
> > Sent: Tuesday, 9 June 2009 7:59 p.m.
> >
> > To: [email protected]
> >
> > 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
> >
> >
> >
> >
> > _________________________________________________________________
> > Chatea sin límites en Messenger con la tarifa plana de Orange
> > http://serviciosmoviles.es.msn.com/messenger/orange.aspx
> >
> >
> > ------------------------------------------------------------------------
> >
> > ------------------------------------------------------------------------------
> > 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
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
_________________________________________________________________
Llévate Messenger en el móvil a todas partes ¡Conéctate!
http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech