When I try to enable the FTP service in the preferences (File Sharing->Options->Share Files and Folders Using FTP) the check box enables and then disables again. The console is giving me the message :
16/04/2010 12:14:20 com.apple.coreservicesd sh: launchctl: command not found
This indicates to me that it can't find the launchctl executable
launchctl is present in the folder /bin
/bin is set in the PATH variable for sh and bash shells and also in the ~/.MacOS/environment.plist
How can I fix this so that my preferences can find this so that I can enable the FTP service.
Edit: Following various suggestions, I have removed the environment.plist file from .MacOSX folder, run verify permissions / repair permissions from disk utility. I have created another administrator user and tried starting it for that user.
The permissions for launchproxy is:
-r-xr-xr-x 1 root wheel 60032 25 Jul 2009 launchproxy
and running the command
/usr/libexec/launchproxy ftpd -l -n gives me:
launchproxy: launch_msg(CheckIn): Operation not permitted