Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14
Ah yes, that's true. A call to /bin/chroot in ~/.profile? Or would a restricted login shell do the trick? I'm logged in as blog right now, with 'set -r' and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux User
    Join Date
    Dec 2011
    Location
    Turtle Island West
    Posts
    345

    Ah yes, that's true.

    A call to /bin/chroot in ~/.profile? Or would a restricted login shell do the trick?

    I'm logged in as blog right now, with 'set -r' and a bash shell. I can run programs in my path, but I can't cd out of $HOME. Even cd .. doesn't work. Maybe that's the way to go. It's easy.

    With the chroot method, you'd need to copy crucial files to ~/bin so blog can actually do something when they're logged in. I guess it would be trial and error. Start with the absolute minimum, and play around with the login, keep adding files until you get the level of functionality desired and stop there.

    And, yes, this is getting a bit like setting up an ftp server.

  2. #12
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    personally, i wouldn't bother with trying to set up a restricted remote shell at all, and stick with chrooted sftp which has been done to death and is easy to set up, and FileZilla and other FTP clients now support SFTP.

  3. #13
    Just Joined!
    Join Date
    Nov 2012
    Posts
    10
    The two posts above is something I want.

    How exactly do I set it up though, the example I provided? Is it a plugin or a command I have to run?

  4. #14
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by xavieranderson View Post
    The two posts above is something I want.

    How exactly do I set it up though, the example I provided? Is it a plugin or a command I have to run?
    Try this tutorial for setting up the chrooted SFTP on CentOS6:

    http://www.thisisnotsupported.com/sf...il-on-centos6/

    It looks to have all the steps I needed the last time I set one up.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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