(cleaning the post, see the previous in the same thread)
Abstract : tryin' to install xwiki 1.0 beta 2 (debian, apache, tomcat
container, mod_jk connector, MySQL database)
Hi Vincent,
U force me to modify the /etc/passwd in order my tomcat user can login
to a shell ;)
# starting tomcat as root in the tomcat log folder
didascalie:/var/log/tomcat5.5# pwd
/var/log/tomcat5.5
didascalie:/var/log/tomcat5.5# /etc/init.d/tomcat5.5 restart
Stopping Tomcat servlet engine: tomcat5.5 (not running).
Starting Tomcat servlet engine: tomcat5.5.
didascalie:/var/log/tomcat5.5#
# login as tomcat55, the user running tomcat
didascalie:/var/log/tomcat5.5# su - tomcat55
tomcat55@didascalie:~$ cd /var/log/tomcat5.5/
tomcat55@didascalie:/var/log/tomcat5.5$ touch toto
tomcat55@didascalie:/var/log/tomcat5.5$ ls -l
total 16
-rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 admin.2007-01-23.log
-rw-r--r-- 1 tomcat55 nogroup 8959 2007-01-23 14:42 catalina_2007-01-23.log
-rw-r--r-- 1 tomcat55 nogroup 855 2007-01-23 14:42 catalina.2007-01-23.log
prwx------ 1 tomcat55 root 0 2007-01-23 14:42 catalina.out
-rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41
host-manager.2007-01-23.log
-rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 localhost.2007-01-23.log
-rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 manager.2007-01-23.log
-rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:43 toto
tomcat55@didascalie:/var/log/tomcat5.5$
So, the user running tomcat has the good rights to write files in the
tomcat log folder ... :)
thanks,
--
Julien Oix
UFR d'Informatique - Université Paris Diderot
Bureau 5C01 (5ème étage)
175 rue du Chevaleret
75013 PARIS
Tel : +33 (0) 144 278 504
Mobile : +33 (0) 664 392 207
---------------------------------------------
http://www.gnu.org/philosophy/no-word-attachments.html