8 Oct
2003
8 Oct
'03
14:34
Ok, in this case i would try following (you will need ssh-Access):
1) scp the remote /etc/passwd to your system 2) change it 3) scp it back ... 4) try it
That wouldn't work, because scp -t (on the remote side with the f***'ed up passwd file) is being run by sshd via login shell. Means: sshd runs login shell, login shell runs scp -t. Ergo: No scp -t will be run, and false will be propagated to the local scp program (client-wise), which will return non-0. Roman.