Professional Web Applications Themes

startup scripts and java (cont.) - Sun Solaris

Would someone tell me why all of my java processes (tomcat, jboss, cruisecontrol) are being owned by root? (I'm not logged in as root) I found an earlier post...(link at bottom, slightly relevant), which suggested using su before the command but is this normal for solaris? I would think this to be a huge security flaw or is my configuration just messed up? -Steven http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=37386995.6C45AC83%40fuchsia.hisa.cf.ac.u k&rnum=5&prev=/groups%3Fq%3Djava%2Broot%2Bowner%2Bgroup:comp.unix .solaris%26hl%3Den%26lr%3D%26ie%3DUTF-8%26group%3Dcomp.unix.solaris%26selm%3D37386995.6C 45AC83%2540fuchsia.hisa.cf.ac.uk%26rnum%3D5...

  1. #1

    Default startup scripts and java (cont.)

    Would someone tell me why all of my java processes (tomcat, jboss,
    cruisecontrol) are being owned by root? (I'm not logged in as root) I
    found an earlier post...(link at bottom, slightly relevant), which
    suggested using su before the command but is this normal for solaris?
    I would think this to be a huge security flaw or is my configuration
    just messed up?
    -Steven

    http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=37386995.6C45AC83%40fuchsia.hisa.cf.ac.u k&rnum=5&prev=/groups%3Fq%3Djava%2Broot%2Bowner%2Bgroup:comp.unix .solaris%26hl%3Den%26lr%3D%26ie%3DUTF-8%26group%3Dcomp.unix.solaris%26selm%3D37386995.6C 45AC83%2540fuchsia.hisa.cf.ac.uk%26rnum%3D5
    Steven Guest

  2. #2

    Default Re: startup scripts and java (cont.)

    "Steven" <net> wrote in message
    news:google.com... 
    [snip]

    If those processes need to open a listening port <= 1024, then they will
    need to be root. In the case of web servers, they typically listen on port
    80, so would need to be running as root in order to open that port. When
    the system boots, the startup scripts in /etc/rc[23].d are executed by root.

    If these applications don't listen on any ports <= 1024, then you should run
    them with either their own user account (or nobody) via 'su -c' in the
    startup script. Example (for Tomcat):-

    su - tomcat -c "JAVA_HOME=/usr/java; CATALINA_HOME=/opt/tomcat;
    $CATALINA_HOME/bin/startup.sh"

    HTH,
    --
    Dave Ockwell-Jenner
    Solar Nexus Solutions
    http://www.solar-nexus.com/



    Dave Guest

  3. #3

    Default Re: startup scripts and java (cont.)

    (Steven) Additionally let me add this may not have anything to do with
    java... as in this example...logged in as user sdeal
    $ps -ef | grep root
    sdeal 16003 15874 0 17:19:58 pts/3 0:00 grep root
    root 16002 15874 0 17:19:58 pts/3 0:00 ps -eaf

    I think it's really weird that ps is run by root and grep by me. Can
    anyone explain this?

    net (Steven) wrote in message news:<google.com>... 
    Steven Guest

Similar Threads

  1. Can't run java scripts
    By inspmike in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 0
    Last Post: November 16th, 05:33 AM
  2. Where to put Javascript StartUp scripts?
    By Garrett_Cobarr@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 5
    Last Post: April 23rd, 06:55 PM
  3. Perl and Java scripts
    By Patrik Rask in forum PERL Modules
    Replies: 3
    Last Post: February 5th, 08:44 AM
  4. non-java detection scripts?
    By ciecierega webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 3
    Last Post: September 15th, 01:17 PM
  5. java or cgi scripts in dwmx
    By jonnyfriendly webforumsuser@macromedia.com in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: August 21st, 06:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139