Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » Suggestions

Post new topic   Reply to topic
/bin/false shell
View previous topic :: View next topic  
Author Message
keopp
Senior Member


Joined: 08 Nov 2008
Posts: 162
Location: Romania

PostPosted: Sun Mar 06, 2011 8:14 pm    Post subject: /bin/false shell Reply with quote

Thank you very much for the tutorial to secure SMS. It was very helpfull since I've allready tryed to forbid ftp users shell access. I succeeded now, but after adding in /etc/shells a new line with /bin/false.

I also tryed /dev/null and /sbin/nologin methods but without success.... yet Very Happy .
Back to top
View user's profile Send private message
keopp
Senior Member


Joined: 08 Nov 2008
Posts: 162
Location: Romania

PostPosted: Sun Mar 06, 2011 8:25 pm    Post subject: Reply with quote

Too easy....
I also added /dev/null and /sbin/nologin to /etc/shells.... and voila.... it's working now.... Very Happy
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Sun Mar 06, 2011 8:40 pm    Post subject: Reply with quote

Even if you don't add bin/false in /etc/shells still ssh access are forbidden.
You are getting
Code:
root@sms:~# ssh webftp@localhost
webftp@localhost's password:
Permission denied, please try again.

When adding /bin/false the message change to
Code:
Connection to localhost closed.


I'll add bin/false to /etc/shells though, since it seems right.

Thanks
gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » Suggestions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional