I am doing a lot of checking above that code hoffmann. Any scripts that chmod and chown I am pretty careful with. =) You might laugh, but this is actually for OS-X in a very multi-user environment. I have a netinfo server which this script is going on, and it will store user's logins and personal files and allow users to login over the network with the right credentials from other OS-X machines. Anyway, I am going to try your idea now. I never would have though to try SSH. I assume it is the answer though. I'll be back on in a few min once I figure out if that worked for me or not.
Main Topics
Browse All Topics





by: ahoffmannPosted on 2003-04-01 at 05:17:12ID: 8245465
setup ssh to accept logins with keys, then generate a secret-public key pair with sshkeygen and use the pulic key to login as root
ate/\n");
$complete = $complete.exec("ssh root@host -i /path/to/pulic/key chmod 0700 /Users/".$shortname."/Priv
I'd suggest that you carefully check $shortname before passing it through to the system !