I'd like to get sudo working, but cutting and pasting the su entries
doesn't do the trick.

In particular, it seems that there are some argument problems.

Here is a sample entry:

     ("sudm"  (rcp-connection-function  rcp-open-connection-su)
              (rcp-rsh-program          nil)
              (rcp-rcp-program          nil)
              (rcp-remote-sh            "/bin/sh")
              (rcp-rsh-args             nil)
              (rcp-rcp-args             nil)
              (rcp-rcp-keep-date-arg    nil)
              (rcp-su-program           "sudo")
              (rcp-su-args              ("-u"))
              (rcp-encoding-command     "mimencode -b")
              (rcp-decoding-command     "mimencode -u -b")
              (rcp-encoding-function    base64-encode-region)
              (rcp-decoding-function    base64-decode-region)
              (rcp-telnet-program       nil))

However, when I try this, I get 

    # Waiting 30s for remote `/bin/sh' to come up...
    usage: /usr/bin/sudo -V | -h | -L | -l | -v | -k | -K | -H | [-b] [-p prompt]
                            [-u username/#uid] -s | <command>
    # Setting up remote shell environment

in the debug buffer.

The sudo invocation should look like `sudo -u user prog', but
evidently it doesn't.

Ideas?

Mark.

Reply via email to