Re: Update password using ssh over remote server permission denied
From: Darren Tucker (dtucker_at_gate.dodgy.net.au)
Date: 07/25/05
- Next message: salmonsm: "Re: puTTY to Windows 200k W/ OpenSSH OK; SFTP not OK"
- Previous message: akim_ziadi_at_hotmail.com: "Update password using ssh over remote server permission denied"
- In reply to: akim_ziadi_at_hotmail.com: "Update password using ssh over remote server permission denied"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 25 Jul 2005 15:37:25 GMT
On 2005-07-25, akim_ziadi@hotmail.com <akim_ziadi@hotmail.com> wrote:
> I'm trying to change a user password on another servers via ssh, and i
> always get a permission denied, someone know why ???
>
> SERVERA#ssh SERVERB "passwd USER1"
> Permission denied
> SERVERA#
The "passwd" program is trying to read its input from its controlling
terminal, and when you run it that way there's no controlling terminal,
only stdin/stdout/stderr.
If you're using OpenSSH, try adding a "-t" to request a pty (two -t's to
force it), ie:
ssh -t SERVERB "passwd USER1"
If you're using some other software then check for an equivalent option.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Next message: salmonsm: "Re: puTTY to Windows 200k W/ OpenSSH OK; SFTP not OK"
- Previous message: akim_ziadi_at_hotmail.com: "Update password using ssh over remote server permission denied"
- In reply to: akim_ziadi_at_hotmail.com: "Update password using ssh over remote server permission denied"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|