Re: creating ftp users!

From: Raymond Sundland (raymond_at_sundland.com)
Date: 06/23/03

  • Next message: Raymond Sundland: "Re: creating ftp users!"
    Date: Mon, 23 Jun 2003 10:00:11 -0400
    To: Rob Lahaye <lahaye@users.sourceforge.net>
    
    

    Rob,

    You can try setting the user's shell to /usr/libexec/sftp-server (or
    wherever the sftp-server binary exists under FreeBSD).

    This will give the user ability to SFTP into the box, but without a
    normal shell. /usr/lib/exec/sftp-server should be added to /etc/shells,
    too.

    Rob Lahaye wrote:
    >
    > I have not inetd running, but instead only allow secure
    > connections with ssh and sftp.
    > However, the hints given here seem to only apply to ftpd
    > server and not the sftp connection. /sbin/nologin disables
    > both, ssh and sftp.
    >
    > Is there a way to disable ssh, but allow sftp access only?
    > Can I do the /etc/ftpchroot for sftp as well?
    >
    > Thanks,
    > Rob.
    >
    > Jonathan Arnold wrote:
    >
    >>>How to create users for Ftp server(inetd)?
    >>
    >>You just use the 'adduser' command normally, to add a "normal"
    >>user. If they are just going to be doing ftp, you can use the
    >>/sbin/nologin for their shell, so they can't login.
    >
    >
    > Doron Shmaryahu wrote:
    >
    >>I would also suggest limiting ftp users to their respective home dir. You
    >>can do this simply by creating a file /etc/ftpchroot and putting all the
    >>usernames in there.
    >
    >
    > _______________________________________________
    > freebsd-questions@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Raymond Sundland: "Re: creating ftp users!"

    Relevant Pages

    • Re: creating ftp users!
      ... Rob Lahaye wrote: ... > connections with ssh and sftp. ... >>I would also suggest limiting ftp users to their respective home dir. ...
      (freebsd-questions)
    • Re: Batch job to perform sftp transfer
      ... It relies on copying datasets to temporary HFS files ... I used /bin/cat with ssh so that I could transfer the data and pipe it to ... The IBM version of sftp doesn't support datasets, ... Batch job to perform sftp transfer ...
      (bit.listserv.ibm-main)
    • Re: secure file transfer FROM z/OS
      ... FTPS. ... SSH SFTP. ... This is supported by z/OS Ported Tools - OpenSSH. ... better native z/OS features than Ported Tools SSH ...
      (bit.listserv.ibm-main)
    • Re: SPAM sudden increase
      ... up ssh for some sftp session and saw something odd... ... Dude was on a tech call with f-secure and the tech asked, "So, are you ... To which the dude replied, "Yeah, I'm ...
      (alt.2600)
    • Re: SFTP is not working
      ... When I try to use sftp or scp2, I get a message like this: ... sftp and scp2 both actually work by running ssh in a subprocess, ... The reason the shell startup files are relevant at all, ...
      (comp.security.ssh)