Web Hosting Talk







View Full Version : How to Restrict SSH access to a certain use?


dgessler
07-18-2001, 07:40 PM
Does anyone know how to restrict SSH to a certain use? I have CPanel/WHM

qslack
07-18-2001, 07:47 PM
What use do you want to allow?

Or do you mean "user"?

dgessler
07-18-2001, 07:53 PM
user not use

teck
07-18-2001, 09:40 PM
Edit their line in passwd and point it to:

/usr/local/cpanel/bin/noshell

Example:

mcfly:x:32016:521::/home/mcfly:/usr/local/cpanel/bin/noshell

slade
07-19-2001, 09:48 AM
I believe I understand the question, but need clarification on an answer:

teck...

Is this example to be applied so that mcfly can not use ssh?

Is this like allowing if not forbidden? (everybody gets it unless otherwise noted)