Oh... I've forgot to say that this will only works if you really installed
DSpace inside "dspace" user. If not, i suggest you to change DSpace's
installation folder's owner to "dspace" user.

Lets say you installed it using "root" user on folder "/opt/dspace".
Everything that is created during installation process will then belong to
"root", and not "dspace". But it's not recommended that Dspace runs on root
user because security issues, and nor "tomcat". The correct way is that the
folder in which DSpace is installed belongs to a user other than "root"
(and other important services). That's why in the tutorial is suggested to
create a new user and to do all the installation steps using this new user,
so that everything created belongs to it.

If this is your case (installed everything using "root"), use "chown"
command to alter installation folder's owner to "dspace":
$ chown -R dspace:dspace /opt/dspace

Also, everything i said there is nothing to do with Database users. This is
a completely different thing, and it's not affected by none of the
suggested commands.

Em sáb, 5 de nov de 2016 às 20:54, Bruno Nocera Zanette <
[email protected]> escreveu:

> Hoska,
> You need to edit the file: /etc/default/tomcat8, to specify that Tomcat
> will run from now on on the same user that DSpace is installed on. Eg: If
> you created an user called "dspace", you have to configure Tomcat to run on
> this user "dspace". This is necessary because otherwise tomcat wouldn't be
> able to write to files inside dspace's installation folder that are
> important for it to function correctly, like SOLR files and log files. All
> you have to do is to change the line "TOMCAT8_USER=...", save and restart
> tomcat.
>
> Also, if you already ran Tomcat on another user, lets say "root", you will
> need to change some folder's owner from "root" to the new Tomcat's user,
> for the same reason explained before. Some of these folder are:
>
> - /var/lib/tomcat8
>
> - /var/log/tomcat8
>
> - /var/cache/tomcat8
>
> (there may be others depending on the OS, tomcat's version,
> configurations, ...):
>
> To do it, use the command: "chown -R" (-R is to modify it recursively).
> Eg.: if it's set on the configuration file that tomcat will run on user
> "dspace" and group "tomcat8", the command would be:
>
> $ chown -R dspace:tomcat8 /var/lib/tomcat8
>
> After doing this, follow both dspace's and tomcat's logs to see if
> everything is going fine.
>
> Em Sáb, 5 de nov de 2016 07:23, <[email protected]> escreveu:
>
> Iam new with dspace
> I followed the tutorial
> https://wiki.duraspace.org/display/DSDOC5x/DSpace+5.x+Documentation
> Ihave installed dspace 5.2 on debian jessie 64bits. with tomcat8 maven
> 3.0.5 openjdk7 ant 1.9 apache2 postgresql9.4
> all prerequisite packages are installed with apt-get install
> tomcat run under user tomcat8
> in the tutorial  DSpace will need to run as the same user as Tomcat
> I do not understand is this that the building and installation of dspace
> in this case will be run as the user name tomcat8 or as the user dspace
> created above
> I think the user dspace( creates : useradd -m dspace) is just required for
> database of dspace
> is this right or no
>
> thanks for help
>
> excuse me i am bad in english
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> Bruno Nocera Zanette
> +55 41 9992-2508 <(41)%209992-2508>
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to