Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Allowing ftp but not a shell
@ 2000-12-18  2:57 Brock Noland
  2000-12-18  4:35 ` J Bacher
  2000-12-18 15:43 ` Michal Jaegermann
  0 siblings, 2 replies; 7+ messages in thread
From: Brock Noland @ 2000-12-18  2:57 UTC (permalink / raw)
  To: axp-list

How can I allow someone to use ftp but not give them a shell... An ISP I
uaed to work for had a shell called webftp I haved looked and looked for
this, cannot find my answer..

Thanks

-- 
Brock Noland
212 3rd St.
Hayward MN 56043
Check out Nolandbros.com
(507) 373 1986




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Allowing ftp but not a shell
  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
  1 sibling, 0 replies; 7+ messages in thread
From: J Bacher @ 2000-12-18  4:35 UTC (permalink / raw)
  To: axp-list

> How can I allow someone to use ftp but not give them a shell... An ISP I
> uaed to work for had a shell called webftp I haved looked and looked for
> this, cannot find my answer..

You can give them a false shell or modify the .profile with a single
command -- 'exit'.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Allowing ftp but not a shell
@ 2000-12-18 15:21 Peter Petrakis
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Petrakis @ 2000-12-18 15:21 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

So to not confuse your users. Make a shell script that runs and tells them
"yadada, no shell
access only ftp access. If you blah blah  contact administrator here". The
old ISP I used to work for (Javanet) did that when they disabled shell
access to all there users. 

Peter

|-> -----Original Message-----
|-> From: J Bacher [mailto:jb@jbacher.com]
|-> Sent: Sunday, December 17, 2000 11:35 PM
|-> To: axp-list@redhat.com
|-> Subject: Re: Allowing ftp but not a shell 
|-> 
|-> 
|-> 
|-> > How can I allow someone to use ftp but not give them a 
|-> shell... An ISP I
|-> > uaed to work for had a shell called webftp I haved looked 
|-> and looked for
|-> > this, cannot find my answer..
|-> 
|-> You can give them a false shell or modify the .profile with a single
|-> command -- 'exit'.
|-> 
|-> 
|-> 
|-> _______________________________________________
|-> Axp-list mailing list
|-> Axp-list@redhat.com
|-> https://listman.redhat.com/mailman/listinfo/axp-list
|-> 




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Allowing ftp but not a shell
  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
  2000-12-19 16:28   ` Brock Noland
  1 sibling, 1 reply; 7+ messages in thread
From: Michal Jaegermann @ 2000-12-18 15:43 UTC (permalink / raw)
  To: axp-list

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




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Allowing ftp but not a shell
  2000-12-18 15:43 ` Michal Jaegermann
@ 2000-12-19 16:28   ` Brock Noland
  2000-12-20 17:33     ` Michal Jaegermann
  0 siblings, 1 reply; 7+ messages in thread
From: Brock Noland @ 2000-12-19 16:28 UTC (permalink / raw)
  To: axp-list


>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.


I tried this before but it said not a vaild command executer. This maybe
because I am using userconf instead of useradd and the command line
utilites?? I have it listed in /etc/shells..

-- 
Brock Noland
212 3rd St.
Hayward MN 56043
Check out Nolandbros.com
(507) 373 1986




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Allowing ftp but not a shell
  2000-12-19 16:28   ` Brock Noland
@ 2000-12-20 17:33     ` Michal Jaegermann
  2000-12-20 17:43       ` Liam Bedford
  0 siblings, 1 reply; 7+ messages in thread
From: Michal Jaegermann @ 2000-12-20 17:33 UTC (permalink / raw)
  To: axp-list

On Tue, Dec 19, 2000 at 11:28:06AM -0500, Brock Noland wrote:
> 
> 
> >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.
> 
> 
> I tried this before but it said not a vaild command executer.

Who said that?  ftpd daemon?  This is an /etc/passwd  entry from the
real, live, and functioning system which happens to run wu-ftpd:

yyyyy:x:608:259:FTP Guest Account:/home/ftp/./yyyyy:/bin/false

(names and id's changed to protect innocents)

> This maybe
> because I am using userconf instead of useradd and the command line
> utilites??

Maybe.  Possibly they are trying to be too smart for their own good.
File a bug report.  In the meantime there are such fine tools like
'vipw' (and do not forget /etc/shadow if you are using that one).

   Michal




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Allowing ftp but not a shell
  2000-12-20 17:33     ` Michal Jaegermann
@ 2000-12-20 17:43       ` Liam Bedford
  0 siblings, 0 replies; 7+ messages in thread
From: Liam Bedford @ 2000-12-20 17:43 UTC (permalink / raw)
  To: axp-list

On Wed, Dec 20, 2000 at 10:33:32AM -0700, Michal Jaegermann came forth with:
> On Tue, Dec 19, 2000 at 11:28:06AM -0500, Brock Noland wrote:
> > 
> > I tried this before but it said not a vaild command executer.
> 
> Who said that?  ftpd daemon?  This is an /etc/passwd  entry from the
> real, live, and functioning system which happens to run wu-ftpd:
> 
> yyyyy:x:608:259:FTP Guest Account:/home/ftp/./yyyyy:/bin/false
> 
> (names and id's changed to protect innocents)
> 
is that the message you get if /bin/false isn't in /etc/shells ?

L.
-- 
     dBP   dBBBBb | And how does it feel like to make it happening,
              dBP | And how does it feel like to breath with everything,
   dBP    dBBBK'  | And how does it feel like to let forever be, 
  dBP    dB' db   | And how does it feel like to spend a little lifetime
 dBBBBP dBBBBP'   | sitting in the gutter screaming symphony




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-12-20 17:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox