Re: Disallow logins, but allow ftp?
From: Anon (Anon@god.com)Date: 04/24/02
- Next message: Nico Kadel-Garcia: "Re: User SFTP Directory under win2000 server"
- Previous message: Alex Walker: "Get Involved - 16th Systems Administration Conference (LISA 2002)"
- In reply to: Jeff Shipman - SysProg: "Re: Disallow logins, but allow ftp?"
- Next in thread: Daniel Tiefnig: "Re: Disallow logins, but allow ftp?"
- Reply: Daniel Tiefnig: "Re: Disallow logins, but allow ftp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Anon <Anon@god.com> Date: Wed, 24 Apr 2002 02:10:59 GMT
yeah, int /etc/passwd:
replace /bin/bash with /bin/false
(this runs false instead of the shell)
it could be /bin/bash or /bin/sh or whatever, its at the end of the
line, youll see it.
users can still use ftp (as the shell is never ran)...
one problem ive seen: proftp seems to need /bin/bash there (dont know
why, it doesnt use it)
there are still ways around that (little more complicated though)
hope this helps someone,
--just a random guy
Jeff Shipman - SysProg wrote:
> Does anybody have any tips for this?
>
> Jeff Shipman - SysProg wrote:
>
> > We have a machine that we would like to disallow
> > ssh logins, but allow sftp connections. Is there
> > a way to do this?
> >
> > One word about our system:
> >
> > Some people are allowed to login to the machine
> > (through the console) and they have valid shells.
> > However, all other users have their shell set
> > to a shell that simply displays the fact that they
> > cannot login and logs the user out.
> >
> > I'm not sure how that will affect how this can
> > be done. Any help would be greatly appreciated.
> >
> > Thanks,
> >
>
> --
> Jeff Shipman E-Mail: jeff@nmt.edu
> Systems Programmer Phone: (505) 835-5748
> NMIMT Computer Center http://www.nmt.edu/~jeff
- Next message: Nico Kadel-Garcia: "Re: User SFTP Directory under win2000 server"
- Previous message: Alex Walker: "Get Involved - 16th Systems Administration Conference (LISA 2002)"
- In reply to: Jeff Shipman - SysProg: "Re: Disallow logins, but allow ftp?"
- Next in thread: Daniel Tiefnig: "Re: Disallow logins, but allow ftp?"
- Reply: Daniel Tiefnig: "Re: Disallow logins, but allow ftp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|