Re: ssh passwd -f in a restricted shell

From: Jason Price (jason@jasonprice.net)
Date: 02/28/02

  • Next message: Andrew Falanga: "compiling and installing OpenSSH 3.0.2"

    From: jason@jasonprice.net (Jason Price)
    Date: 28 Feb 2002 06:47:23 -0800
    
    

    Neil W Rickert <rickert+nn@cs.niu.edu> wrote in message news:<a5h159$4c2$1@husk.cso.niu.edu>...
    > jason@jasonprice.net (Jason Price) writes:
    >
    > >We are restricting users on a certain machine as to what they can run.
    > > Currently, only ls,passwd,rm,scp, and ssh are allowed. The problem is
    > >when passwords expire the users don't seem to have permission the
    > >change their password. At first, I thought it was because sshd was
    > >calling /bin/passwd, but I changed which passwd binary to use and it
    > >still errors.
    >
    > >Any help ?
    >
    > >Below is after a passwd -f. This is on a Solaris 8 machine with SSH
    > >Comm's version of ssh. SSH-2.0-3.0.1 SSH Secure Shell (non-commercial)
    > >user@sys 502 ~ >ssh -l user system
    > >user's password:
    > >Authentication successful.
    > >/usr/lib/rsh: /usr/local/rsh/passwd: restricted
    > >Connection to system closed.
    > >user@sys 502 ~ >
    >
    > The restricted shell does not permit a command path to be executed.
    > The command must be in the default path and executed without
    > specifying a command.

    Much thanks !!! I compiled ssh to look for just "passwd" with no path
    and everything is working now..

    Jason



    Relevant Pages

    • Re: ssh passwd -f in a restricted shell
      ... >We are restricting users on a certain machine as to what they can run. ... > Currently, only ls,passwd,rm,scp, and ssh are allowed. ... The restricted shell does not permit a command path to be executed. ...
      (comp.security.ssh)
    • Re: Really need help on this one
      ... Is there a way to read the output of a particular command into ... Heres a better example using ssh. ... set timeout $timeout ... exec kill -9 $pid ...
      (comp.lang.tcl)
    • RE: midnight commander and ssh sftp
      ... midnight commander and ssh sftp ... which is displayed at the bottom of the MC panel. ... "Left file command options right" at the top of the MC ... MC SSH session with the remote host by hitting F10 key. ...
      (freebsd-questions)
    • Re: [Info-ingres] problems with ssh
      ... Check the SSHD log on the server for errors. ... ancient version of SSH, unfortunately. ... the command seems to have functioned - but just wont terminate and leaves a process hanging around. ... Duckman: You got anymore of those glues? ...
      (comp.databases.ingres)
    • Scripts using SSH and SSH_ASKPASS
      ... To test SSH scripts you better destroy the control TTY. ... The trick is to run YOUR script on YOUR local ... As for the password relaying command: this needs not be an X command. ... # we read one line from a temporary pipe. ...
      (comp.security.ssh)