----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Hi,
Ok so I can now excute commands, I am however having problems with
ownership. I can not clock in, or clock out files because I do not have
have permission to write to them. I use the "chown wwwrun *" command, and
this gives me temporary release. However it doesn't work when I check out
the files and lock them, I get a permission denied message...
String [] command = {"/usr/bin/bash", "-c", "cd /usr/local/Project/;
i -l -t-\"The login java file.\" login.java "};
I am trying to use the "sudo" command so that I can execute the command as
root, therefore getting around the "permission" problems.
This......
String [] command = {"sudo", "-u", "wwwrun", "--", "/usr/bin/bash", "-c",
"cd /usr/local/Project/; ci -t-\"login\" login.java "};
Or.... I don't know which one is correct......
String [] command = {"/usr/bin/bash", "-c", " sudo ", " -u ", " wwwrun ",
" -- ", "cd /usr/local/Project/; ci -t-\"login\" login.java "};
The first one gives me the following problem in the log window......
Feb 23 14:21:22 darren-nt sudo: wwwrun : password incorrect ; TTY=unknown
; PWD=/ ; USER=wwwrun ; COMMAND=/usr/bin/bash -c cd /usr/local/Project/;
ci -t-"login" login.java
I am stumped yet again. Has anyone got anyideas of things I could try or
better still knows the solution?
Keith
---------------------------------------------------------------------------
Keith Ball - Praktikant
WA46 Operationelle Analysen Luftwaffe
IABG MbH Einsteinstr. 20 85521 Ottobrunn
Phone : 0049-89-6088-2556
Email : [EMAIL PROTECTED] WWW site : www.iabg.de
----------------------------------------------------------------------------
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]