Dear Mark,

Your explanation is quite clear and I think I have been doing in a wrong 
way.  Someone even document something like setting directories of tomcat6 
(e.g. /etc/tomcat6 /var/lib/tomcat6 /var/cache/tomcat6 and 
/var/log/tomcat6) to be owned by user 'dspace' !!

Well, I was silly enough (ignorance enough) to follow that and finally 
caused tomcat6 unable to start !

Another big point, I read from someone's document saying that a command 
like:

update-alternatives --set java /usr/lib/jvm//usr/lib/jvm/java-6-sun/jre/bin/java

is also needed.  (Specific to Ubuntu 8.10 with sun-java6-jdk package).  Do 
we have to run this command every time when server is rebooted ?

Panyarak
Prince of Songkla University

On Wed, 1 Apr 2009, Mark H. Wood wrote:

> On Wed, Apr 01, 2009 at 02:46:06PM +0700, Panyarak Ngamsritragul wrote:
>> Thanks for additional info.  I am now starting from the first step using
>> Ubuntu's repository management system.  At the moment, I finished
>> installing postgreSQL and now installing TomCat6.
>>
>> In DSpace's installation instructions, I read:
>> "Note that DSpace will need to run as the same user as Tomcat, so you
>> might want to install and run Tomcat as a user called 'dspace'."
>>
>> This is very confused as it should not be possible to install any software
>> package without being 'root' in Unix like system.
>
> The account used to install software, and the account used to run it,
> may be different.  The instructions here seem to be aimed at someone
> who is installing Tomcat without the aid of a distribution's package
> manager and solely for use with DSpace.  Since you are using Ubuntu's
> package manager, it probably created a user account specifically for
> Tomcat and installed the product to be run by that user.  I use Gentoo
> Linux and the Tomcat packaged by Gentoo, and it does the same, setting
> up Tomcat to run as a user named "tomcat".
>
> The important thing here is that the user account used to run Tomcat
> must have sufficient access to the DSpace files.  If Tomcat is set up
> to run as a user "tomcat" then I would install DSpace in such a way
> that it is owned by "tomcat", probably by just being 'su tomcat'
> before installing.  You can use the 'root' account to create the
> [DSpace] directory and set its ownership appropriately, before
> installation.
>
> It is difficult to document this process literally, because different
> operating environments might use different account names.  If you have
> some reason to run Tomcat as a particular user, then I would consider
> every reference to "dspace" as a user account to be a placeholder for
> the account that Tomcat uses, whatever that is.
>
>

-- 
Panyarak Ngamsritragul
Department of Mechanical Engineering
Prince of Songkla University.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to