GithubHelp home page GithubHelp logo

Comments (2)

pymumu avatar pymumu commented on August 16, 2024

change user default shell with following command:

chsh -s /bin/bash username

from jail-shell.

jaimbh avatar jaimbh commented on August 16, 2024

This did not work.
Actually I am using ttyd web terminal that I installed from github.
When I step down as user and login to ttyd web terminal, I am able to see other users' home directories and also enter them using cd command even when the user is jailed.

I enter the ttyd terminal from my php script where I call:
exec(SOMEPATH/bin/ttyd --once -u UID_OF_USER -g GID_OF_USER -P 10 -b /tty/ -i dir/username sock /bin/bash);

Adding su with this command like mentioned below works but it asks for password in the web terminal which I dont want.
exec(SOMEPATH/bin/ttyd --once -u UID_OF_USER -g GID_OF_USER -P 10 -b /tty/ -i dir/username sock su username);

After using su I am able to login as a jailed user but I have to enter password in the terminal to login.
I am looking for a solution where the user gets logged in without password.

https://github.com/tsl0922/ttyd

from jail-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.