Giter VIP home page Giter VIP logo

Comments (3)

vv01f avatar vv01f commented on September 27, 2024

physical access will always be a problem. but trying to limit …

  • first thing: drop him from sudoers ;) or even better: dont use user pi but leave him be and go with another/new user, e.g. "status", "monitor" or sth. you like
  • one uncomplicated thing to limit the user is a restricted shell, e.g. sudo chsh -s /bin/rbash pi
  • another thing is to prevent him from exiting the script, this can be done with exec, trap is an alternative fallback … for /home/pi/.bashrc
# automatic start the LCD info loop
SCRIPT=/home/admin/00infoLCD.sh
# trap may not be necessary when exec is used
trap $SCRIPT EXIT
# replace shell with script => logout when exiting script
exec $SCRIPT

further limits are possible

from raspiblitz.

rootzoll avatar rootzoll commented on September 27, 2024

Remove the sudo from pi needs more work to keep info-scripts running - thinking about not investing the time in this for now, because maybe we will make jump to rewrite for ePaper Hat (replacing LCD) anyway soon. Will gather feedback on that from the community on the hackday this week.

But the exec sounds like a quick win. Will test it out. Much thanks.

from raspiblitz.

rootzoll avatar rootzoll commented on September 27, 2024

exec works great :D

from raspiblitz.

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.