Re: FTP and SSH access question

From: Michael J. Pelletier (mjpelletier_at_mjpelletier.com)
Date: 12/05/04

  • Next message: Anne & Lynn Wheeler: "Re: Single User: Password or Certificate"
    Date: Sat, 04 Dec 2004 21:34:14 -0800
    
    

    donnie wrote:

    > On 30 Nov 2004 20:35:38 GMT, dtucker@dodgy.net.au (Darren Tucker)
    > wrote:
    >
    >>In article <f6b96d9f.0411301200.3696a33b@posting.google.com>,
    >>c3dy8911r <c3dy8911r@yahoo.com> wrote:
    >>>I am working on a RedHat 9 machine remotely (in a lab environment),
    >>>trying to access a file owned by root (permissions: -r--------) on the
    >>>remote machine. I have root FTP access (upstream) but only user-level
    >>>access via SSH.
    >>>
    >>>The FTP data port (20) is closed, so I can't get the file with FTP. I
    >>>can't use SSH (or SCP) to view/download the file, because root is
    >>>disabled from connecting to SSH (even locally).
    >>
    >>FTP in as root and chmod the file so your user account can read it, then
    >>scp it then chmod it back.
    >>
    >>Depending on your firewall rules, FTP passive mode might work too.
    > #######################
    > Does RedHat allow remote root FTP access and if it does, does FTP
    > support the chmod command? I don't think so. You might try to ssh to
    > the box as yourself, then su root and do your chmod then.
    > donnie

    YES! Taken from "man ftp":

    chmod mode remote-file
                     Change the permission modes of the file remote-file on the
                     remote system to mode.

    -- Michael


  • Next message: Anne & Lynn Wheeler: "Re: Single User: Password or Certificate"

    Relevant Pages

    • Re: wu.ftpd not chrooting on AIX 5.2 for guest logins
      ... chmod 111 $FTPHOME/bin/ls ... chmod 555 $FTPHOME ... chown root $FTPHOME ... FTP client will work without it, ...
      (comp.unix.aix)
    • Re: FTP and SSH access question
      ... donnie wrote: ... >>scp it then chmod it back. ... FTP passive mode might work too. ... > Does RedHat allow remote root FTP access and if it does, ...
      (comp.security.misc)
    • Re: FTP and SSH access question
      ... donnie wrote: ... >>scp it then chmod it back. ... FTP passive mode might work too. ... > Does RedHat allow remote root FTP access and if it does, ...
      (alt.computer.security)
    • Re: FTP and SSH access question
      ... donnie wrote: ... >>scp it then chmod it back. ... FTP passive mode might work too. ... > Does RedHat allow remote root FTP access and if it does, ...
      (comp.security.unix)
    • Re: NET::FTP problem w/CHMOD
      ... CHMOD 755 $file")' wouldn't hang the connection, ... successfully execute the chmod command via the ftp connection (I checked ... > Because of the nature of SITE commands being implementation specific ...
      (perl.beginners)