Posted By:
Nick_Maiorano
Posted On:
Monday, June 23, 2003 06:37 AM
Hello,
Your problem is one of 2 things:
1. adduser does not have execute privileges: All linux/unix shell scripts must have execute privileges. You can check by ls -l adduser. This command will list the file's privileges and make sure you see an "x" in the rwxrwxrwx string. If it's not there you can add it with chmod a+x adduser.
2. adduser is not on the PATH: When you fork a process from java, linux needs to locate the adduser file. Either you give it an absolute path in the java program or you add it to your PATH variable so that it can locate it. (PATH=/thepath/adduser:$PATH; export PATH)
That should do it.