what is the user name in tomcat server like nobody in apache server

hi all,
I'm facing an error in uploading using tomcat it's priviliges error that is why I'm asking for user name in  tomcat that do the upload online like nobody in apache web server

regards
hatem gamal
hatem_from_mesrAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
thats a terrible example (as are a lot on roseindia)

you are better off using commons fileupload

http://www.theserverside.com/tt/articles/article.tss?l=HttpClient_FileUpload
0
 
objectsCommented:
depends on how you start it. check the owner of the java process

0
 
hatem_from_mesrAuthor Commented:
hi objects,
>>>depends on how you start it. check the owner of the java process
please tell me how to get the java process owner name (I mean the syntax because I'm newbie)
regards
hatem gamal
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
objectsCommented:
what os?

0
 
hatem_from_mesrAuthor Commented:
>>>what os?
linux centos
0
 
objectsCommented:
try this:

ps -ef | grep java

0
 
hatem_from_mesrAuthor Commented:
does this mean tomcat
if the answer is yes to which folder I give privilage to rwx

[root@localhost ~]# ps -ef | grep java
tomcat    3039     1  0 08:37 ?        00:00:08 /usr/lib/jvm/java/bin/java -Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib -Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib -Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classpath /usr/lib/jvm/java/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar -Dcatalina.base=/usr/share/tomcat5 -Dcatalina.home=/usr/share/tomcat5 -Djava.io.tmpdir=/usr/share/tomcat5/temp org.apache.catalina.startup.Bootstrap start
root      5646  4056  0 11:57 pts/1    00:00:00 grep java
[root@localhost ~]#

best regards
hatem gamal
0
 
objectsCommented:
yes thats the one. The user is it running at is tomcat

0
 
hatem_from_mesrAuthor Commented:
I tried this
[root@localhost ~]# setfacl -Rmg:tomcat:rwx /usr/share/tomcat5/webapps
[root@localhost ~]# setfacl -Rmg:tomcat:rwx /var/lib/tomcat5/webapps
[root@localhost ~]#

but I get this

HTTP Status 404 - agenda_analysis (Permission denied)

type Status report

message agenda_analysis (Permission denied)

description The requested resource (agenda_analysis (Permission denied)) is not available.
Apache Tomcat/5.5.23

can you please help me
regards
hatem gamal
0
 
objectsCommented:
what are the perms on agenda_analysis and what are you trying to do?

0
 
hatem_from_mesrAuthor Commented:
>>>what are the perms on agenda_analysis and what are you trying to do?
it's a file on desktop that I want to upload
can you please tell me to which folder the file is uploaded
best regards
hatem gamal
0
 
objectsCommented:
its your app, you should know where it is being uploaded, not me :)

0
 
hatem_from_mesrAuthor Commented:
me :-)
it's a tutorial example that I didn't touch
here is the example I even downloaded the code in zip file
http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml

please help as soon as possible
there is another thing that is strange

/usr/share/tomcat5/webapps is a link to /var/lib/tomcat5/webapps
and so on except for
/usr/share/tomcat5/bin

please help and guide which path have wrong access privilige
regards
hatem
0
All Courses

From novice to tech pro — start learning today.