----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi!

        i have just encountered a strange phenomenon using apache jserv, namely: i 
cannot execute certain system commands from a servlet that i can call from a "normal" 
java program.

what i'm trying to do is this:
do a batch-update on /etc/passwd (in suid mode), using a small chunk of code i've 
written in c. 
when i call this program using Runtime.getRuntime().exec("/bin/pw_change"); all works 
perfectly alright.
but when i try to use exactly the same code in a java servlet, nothing happens. there 
are no exceptions or error messages, just nothing is being done on the system. the 
uids were the same in both cases (that is, i ran java from the commandline as "www", 
and that is also my httpd UID).

has this something to do with the policies settings?
hopefully somebody can tell me what this is about...

best regards,
        karin kosina (kyrah)
                                                        http://the.system.at
+---------------------------------------------------------------------------
 "Calm down. It's only ones and zeros." -- Sam Kass

 [ please sign the petition against software patents at ]
 [ http://petition.eurolinux.org  ]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: pgpenvelope 2.9.0 - http://pgpenvelope.sourceforge.net/

iD8DBQE5h1lh7vvdOh/igesRAuRnAJ9XHNFReUAcgI30hjW453m5W0SRCACgik8d
x3SJm0baNPK0fWnQBFZ7/Xs=
=KRjq
-----END PGP SIGNATURE-----



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to