Re: FTP and SSH access question
From: Michael J. Pelletier (mjpelletier_at_mjpelletier.com)
Date: 12/05/04
- Previous message: Bryan Hoover: "Putty, win2k: Service lookup failed"
- In reply to: donnie: "Re: FTP and SSH access question"
- Next in thread: c3dy8911r: "Re: FTP and SSH access question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Previous message: Bryan Hoover: "Putty, win2k: Service lookup failed"
- In reply to: donnie: "Re: FTP and SSH access question"
- Next in thread: c3dy8911r: "Re: FTP and SSH access question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|