Mailinglist Archive: opensuse-security (211 mails)
| < Previous | Next > |
Re: [suse-security] root has no shell
- From: Roman Drahtmueller <draht@xxxxxxx>
- Date: Wed, 8 Oct 2003 16:34:08 +0200 (MEST)
- Message-id: <Pine.LNX.4.58.0310081632100.29794@xxxxxxxxxxxx>
> 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.
>
> 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.
| < Previous | Next > |