hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Software and Control Panels : Restrict command in SSH (like ls, cd, dir etc)
Reply

Forum Jump

Restrict command in SSH (like ls, cd, dir etc)

Reply Post New Thread In Hosting Software and Control Panels Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Newbie
 
Join Date: Apr 2002
Location: Bucuresti
Posts: 24

Restrict command in SSH (like ls, cd, dir etc)


Hi!

I want to restrict the access of my client when is connected with ssh. I don't want to can use cd, dir, ls -al, ls etc etc.
What chmod is necessary to do for /home and /home/user becouse a user I don't want to see the content of /home/ or other directory.

How can I do that?

Thanks!



Sponsored Links
  #2  
Old
Junior Guru Wannabe
 
Join Date: Nov 2002
Location: Arkansas
Posts: 36
Best way is to put your customers in a group and add permissions to allow only other group to use those commands you listed above.

Other way is learn about chroot or jail (freebsd).

SilenceGold

  #3  
Old
Newbie
 
Join Date: Apr 2002
Location: Bucuresti
Posts: 24
Unhappy

And how can I do that?

Sponsored Links
  #4  
Old
Retired Moderator
 
Join Date: Nov 2002
Location: Hot, hot Michigan...
Posts: 3,506
'info chroot' at your linux command prompt will give you some information - for more I reccomend checking out http://www.tldp.org/ and searching for 'chroot'.
-David

__________________
Ion Web Services/TronicTech
http://www.ion-web.com or Unsupported webhosting?!?
Shared hosting, Reseller accounts, Dedicated Servers, and More
Proudly hosting since 2002

  #5  
Old
Junior Guru Wannabe
 
Join Date: Nov 2002
Location: Arkansas
Posts: 36
Depending on your use of OS, Linux or Freebsd..etc, you can consult to their documentions.

Since I am a FreeBSD user, you can learn about chown, chmod, chroot, and jail with the man pages.

An example to read the man pages of chown, you would type in

Quote:
man chown
It would work for the rest of the commands in FreeBSD. If you don't have manpages installed on your box...you can go to FreeBSD Manpages link.

Good luck,
SilenceGold

  #6  
Old
Junior Guru Wannabe
 
Join Date: Oct 2002
Posts: 77
Yup.

This guys are dammed right.
You can add users like customer:customer and spend a lot of time changing permissions. You can read plenty of f**ng manuals learning chroot.
All of this takes a lot of TIME.
Simple solution is VPS.

__________________
WG

  #7  
Old
Junior Guru Wannabe
 
Join Date: Nov 2002
Location: Arkansas
Posts: 36
Using Jail can be a VPS system too.

:p
SilenceGold

  #8  
Old
Junior Guru Wannabe
 
Join Date: Sep 2002
Posts: 77
Jail em down. That way they can snooop round the FS.

__________________
Fuel Guru
High Octane Web Hosting!
http://www.fuelhosting.com

  #9  
Old
Junior Guru Wannabe
 
Join Date: Oct 2002
Posts: 77
Quote:
Originally posted by SilenceGold
Using Jail can be a VPS system too.
Hey!!!
with jail you don't need to hack anything.
ha ha ha...

__________________
WG

Reply

Related posts from TheWhir.com
Title Type Date Posted
Linode Releases CLI Tool for Cloud Platform Web Hosting News 2014-01-29 17:15:43
tmzVPS Listing 2014-10-22 09:44:50
tmzVPS Listing 2014-10-22 09:48:49
Just Host Shuts Down Website of Iranian Opposition Leader Mehdi Karroubi Web Hosting News 2013-09-17 15:30:19
NSA Bulk Surveillance Lives on After House Votes Against Amendment Web Hosting News 2013-07-25 11:17:59


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?