🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.uu.comp.os.linux.questions
Article #236

Re: Securing FTP

#236
From: Daryl Lim
Date: Mon, 13 Apr 1998 00:00
51 lines
2554 bytes
On Sat, 11 Apr 1998 02:07:40 +0200, dan <danielga@easynet.fr> wrote:

>Daryl Lim wrote:
>
>> Hi,
>>
>> Could someone tell me or point me to some place where it documents how
>> to secure a FTP Server.
>>
>> I'm running RedHat 4.1 with 2.0.29 Kernel ..
>>
>> What I would like to know is how can I stop webpage owners from
>> browsing outside there home directory eg. /web/html/~page/ . Currently
>> if they were to FTP in they could browse outside there home directory
>> to other directories eg. /usr/??? . This may seem very paranoid but I
>> just want them to be able to FTP to their home directory to change
>> their pages *only* . And not really snoop around
>>
>> I have found a site ages ago . That if I remembered correctly didn't
>> allow them to browse outside the base directory eg. /web .. They
>> couldn't go below that eg / . But now I can not remember where it was
>>
>> Any help would be extremely grateful
>>
>> Daryl,
>
>  Normally as in the "anonymous" type FTP, the user gets a line in
>/etc/passwd as :
>babe:ecrypted_passwd:uid:gid:comment:/web/html/./user:/bin/false
>
>^^^
>the dot means a chroot()ed path so /web/html becomes "/", this is the
>theory,
>you can achieve this with Wu-ftpd or  proftpd.
>Hope this helps a little
>Daniel

Thanks ...

I found out another way using wu-ftpd . Although it took a while to
find any descent information about wu-ftpd .. In the ftpaccess file
/etc/ftpaccess. You can add a line 

guestgroup lowest

Which you can then create users who belong to `lowest` group and they
will only be able to ftp in to the set directory and will not be able
to go lower as it is mapped as / . Like you said above .

Daryl,
Technical Details
Message-ID: <3531dc9b.3162311@news.ihug.co.nz>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3525d8fb.26924992@news.ihug.co.nz> <352EB44C.92C2399E@easynet.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,a186a50550db532
X-Google-Attributes: gid102983,public
X-Google-Thread: f9b51,a186a50550db532
X-Google-Attributes: gidf9b51,public
X-Google-Thread: 100b1f,a186a50550db532
X-Google-Attributes: gid100b1f,public
X-Google-Thread: ff9be,a186a50550db532
X-Google-Attributes: gidff9be,public
X-Google-Thread: 10a997,a186a50550db532
X-Google-Attributes: gid10a997,public
From: dlim@ihug.co.nz (Daryl Lim)
Subject: Re: Securing FTP
Date: 1998/04/13
Message-ID: <3531dc9b.3162311@news.ihug.co.nz>
X-Deja-AN: 343549482
References: <3525d8fb.26924992@news.ihug.co.nz> <352EB44C.92C2399E@easynet.fr>
Organization: The Internet Group Ltd
Newsgroups: alt.uu.comp.os.linux.questions,aus.computers.linux,comp.os.linux.help,comp.os.linux.questions,comp.os.linux.setup