Re: Disallow shell access but not sftp?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 --- "Salmons, Michael" <SalmonsM@xxxxxxxxxxxx>
escribió: > Hello,
>  
> Does anyone know how one might disallow a user to
> logon to a secure
> shell but still allow them to make a secure login
> for ftp (sftp)? I want
> this person to have ftp access but not,
> specifically, have the ability
> to run passwd. I tried changing their shell to a
> variety of bogus
> filenames (/dev/null, /bin/ftponly, both as an empty
> file and as a
> symlink to /dev/null), and discovered at that point
> that sftp must allow
> an ssh login to work. I can't block in hosts.deny or
> allow because this
> user obtains an ip from the same dhcp pool we all
> do; denying by ip is
> no good.
>  
> Any ideas?

Try to changing their shell to /bin/false

Cheers, Michael

=====
--

Manuel Aróstegui Linux user 200896

___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux