From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Allowing ftp but not a shell
Date: Mon, 18 Dec 2000 08:43:41 -0700 [thread overview]
Message-ID: <20001218084341.A30649@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <Pine.LNX.4.21.0012172155540.6763-100000@nolandbros.com>; from Brock Noland on Sun, Dec 17, 2000 at 09:57:38PM -0500
On Sun, Dec 17, 2000 at 09:57:38PM -0500, Brock Noland wrote:
>
> How can I allow someone to use ftp but not give them a shell...
You may always give /bin/false as a "shell". The only thing is that
in such case /bin/false has to be listed in /etc/shells or things may
not work. Do not give a shell script for a "shell" if you are concerned
with security like you should be.
> An ISP I
> uaed to work for had a shell called webftp I haved looked and looked for
> this, cannot find my answer..
This depends on a server but with wu-ftpd look at 'man ftpaccess'.
You have a control over many described there. In particular you can set
"chroot" accounts. Look for the following fragment on a manual page.
The second half is the user's home directory relative
to the root directory. The two halves are separated
by a "/./".
For example, in /etc/passwd, the real entry:
guest1:<passwd>:100:92:Guest Account:/ftp/./incoming:/etc/ftponly
but replace /etc/ftponly with /bin/false.
Configurations like that are your ftp server and not a processor specific.
Michal
next prev parent reply other threads:[~2000-12-18 15:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-18 2:57 Allowing ftp but not a shell Brock Noland
2000-12-18 4:35 ` J Bacher
2000-12-18 15:43 ` Michal Jaegermann [this message]
2000-12-19 16:28 ` Brock Noland
2000-12-20 17:33 ` Michal Jaegermann
2000-12-20 17:43 ` Liam Bedford
-- strict thread matches above, loose matches on Subject: below --
2000-12-18 15:21 Peter Petrakis
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox