MnEm0nIc
17.06.2009, 11.56
Originariamente Scritto da LeO
ti ripeto, funzionano in egual modo, solo che il tuo metodo ha valenza in debian (e derivate), mentre il mio e' piu' generico..
ciao
root@psyche:~ # cat /etc/debian_version 4.0 root@psyche:~ # useradd -m -s /bin/false noshelluser root@psyche:~ # ls /home/ | grep shell noshelluser root@psyche:~ # passwd noshelluser Enter new UNIX password: Retype new UNIX password: passwd: password aggiornata correttamente root@psyche:~ #
alfredo@cyberia:~ $ ssh noshelluser@psyche Password: Linux psyche 2.6.29.4-wired #5 SMP Sun May 20 19:10:43 EDT 2009 i686 Connection to psyche closed.
alfredo@cyberia:~ $ ftp earth Connected to psyche 220 ProFTPD 1.3.0 Server Name (psyche:alfredo): noshelluser 331 Password required for noshelluser. Password: 230 User noshelluser logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> pwd 257 "/" is current directory. ftp> ls 229 Entering Extended Passive Mode (|||44913|) 150 Opening ASCII mode data connection for file list -rw-rw-r-- 1 noshelluser noshelluser 18921 Jun 17 09:57 logo.gif 226 Transfer complete. ftp> cd .. 250 CWD command successful ftp> ls 229 Entering Extended Passive Mode (|||55895|) 150 Opening ASCII mode data connection for file list -rw-rw-r-- 1 noshelluser noshelluser 18921 Jun 17 09:57 logo.gif 226 Transfer complete. ftp>