Knowledgebase

Portal Home > Knowledgebase > Articles Database > How to identify domains that use Shell


How to identify domains that use Shell




Posted by crazyaboutlinux, 12-21-2010, 04:13 AM
HI, how identify those domains from SSH who use Normal Shell* OR Jailed Shell ?

Posted by nessic, 12-21-2010, 04:32 AM
If its on a cPanel server you could look at the /etc/passwd file and it should output something like the follow: user1:x:503:500::/home/user1:/bin/noshell user2:x:505:502::/home/user2:/usr/local/cpanel/bin/jailshell user3:x:509:505::/home/user3:/bin/bash It will vary for every server though

Posted by bear, 12-21-2010, 09:10 AM
To find those without shell: To find those with:

Posted by crazyaboutlinux, 12-21-2010, 09:52 AM
Sorry but those commands doesn't give a list of domains who use Jailed OR Normal Shell

Posted by Johnny Cache, 12-21-2010, 10:05 AM
cat /etc/passwd | grep /bin/bash <~># cat /etc/passwd | grep jail Also since it's a cPanel/WHM box, and you have root, you can simply look at "Manage Shell Access" and make the adjustments there.

Posted by crazyaboutlinux, 12-21-2010, 10:10 AM
Superb, & yes we have cPanel/WHM and i knew Manage Shell Access" but i wanted to know from the backed that's why i came here Thanks Bro

Posted by bear, 12-21-2010, 11:13 AM
They would if you combined them. "|" is "or" in that context, so jailshell *or* bash *or*... Glad you found one that works for you.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Looking someting cheap (Views: 556)
Server is lagging HARD (Views: 539)
big server load (Views: 607)


Language:

Contact us