Re: Different ways of locking accounts



On Sun, Mar 18, 2007 at 12:44:18AM +0800, Wei Chen wrote:

Will there be problem if I lock an account with one program and unlock with
another?

I don't know. Why don't you try it and see? :-)

BTW, both methods lock shells as well as ftp and sftp. Changing the shell to
/usr/sbin/nologin allows ftp but still prevents sftp.
Is there a method that locks shell but allows ftp and sftp? Thanks.

I think that you just described it. Change the user's shell to
/bin/false or something similar.

Regards,

-Roberto
--
Roberto C. Sanchez
http://people.connexer.com/~roberto
http://www.connexer.com

Attachment: signature.asc
Description: Digital signature



Relevant Pages

  • Re: Cannot access an external SFTP site from behind SBS 2003 R2/ISA 2004! HELP!!!
    ... Base on my further research, using SFTP in Explicit mode goes over port 21, ... built in FTP filter as the commands are encrypted. ... Please open the ISA management console, navigate to Firewall Policy, ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: SPAM sudden increase
    ... > Dude was on a tech call with f-secure and the tech asked, "So, ... dude is trying to FTP to their server using WSFTP. ... but I think he is talking about sftp protocol - FTP via ...
    (alt.2600)
  • Secure FTP Factory 5.7 released
    ... JSCAPE is please to announce the release of Secure FTP Factory 5.7. ... Enhancement: Added ASCII file transfer support for sftp servers using ...
    (comp.lang.java.announce)
  • Re: hack attempt on my server...What do you do about this?
    ... the first option is not to run vsftpd at all. ... which you can not do using sftp to log into you box. ... You don't need a separate ftp server to run it, ...
    (Fedora)
  • Re: Can allowing ftp compromise security?
    ... I am wondering if leaving port 21 open for ftp access would ... I have all my ports closed except for SSH. ... sftp does *not* do everything FTP does. ... You have to add patches by hand to get chroot, ...
    (comp.os.linux.security)