Web Hosting Talk







View Full Version : how to grant ssh?


miami_g
06-12-2002, 05:20 PM
does anybody know the commands to grant ssh access to a user, cpanel doesnt do this upgrade.

thankyou

diederik
06-12-2002, 06:04 PM
Hi,

Login via SSH with root pass

chsh username of customer

Change shell to /bin/bash

And you're done :)

mdrussell
06-12-2002, 06:42 PM
Not tried it diederik's way, we normally etd /etc/passwd and change to /bin/bash

@ diederik, I'll have to try that for the next SSH request we get in :cool:

bacid
06-12-2002, 06:52 PM
if you are going to manually modify the passwd file u should use 'vipw'

diederik
06-13-2002, 04:04 AM
Originally posted by voxtreme-matt
Not tried it diederik's way, we normally etd /etc/passwd and change to /bin/bash

@ diederik, I'll have to try that for the next SSH request we get in :cool:

This is the quickest way... I'm lazy :D

MotleyFool
06-13-2002, 12:30 PM
usermod -s /bin/bash username

also works on Linux

akashik
06-14-2002, 09:31 AM
on a c-panel server I just use these from root:

ADD: chsh -s /bin/bash client_username
REMOVE: chsh -s /usr/local/cpanel/bin/noshell client_username

Greg Moore