Results 1 to 9 of 9
  1. #1
    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!

  2. #2
    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. #3
    Join Date
    Apr 2002
    Location
    Bucuresti
    Posts
    24

    Unhappy

    And how can I do that?

  4. #4
    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. #5
    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

    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. #6
    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. #7
    Join Date
    Nov 2002
    Location
    Arkansas
    Posts
    36
    Using Jail can be a VPS system too.

    :p
    SilenceGold

  8. #8
    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. #9
    Join Date
    Oct 2002
    Posts
    77
    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

  10. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •