Comments (3)
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.
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.
exec works great :D
from raspiblitz.
Related Issues (20)
- 1.11.0 wrong message in raspiblitz.log
- 1.11.0 Lean Image did not start setup process HOT 4
- config.txt > pciex1_gen=3 HOT 1
- "RaspiBlitz starting" instead of "No Network"
- Fail Cleaning HDD HOT 1
- Recheck DuckDNS HOT 3
- build_sdcard.sh / image for Odroid M1 ?
- Stuck when creating migration file HOT 1
- Update LND for v1.11.1
- Add "program_usb_timeout=1" entry to bootconfig in order to wait for larger (2TB) SSDs HOT 1
- [RP5] Update EEPROM latest Firmware HOT 4
- Deactivate Touchscreen and remove from the ssh menu until fixed HOT 3
- Stuck at "Starting RaspiBlitz. Please wait ..." with amd64-lean-legacyboot-image-build 1.11 (#166) HOT 6
- Can't connect Raspiblitz to Phone HOT 2
- Allow to use existing bitcoin folder HOT 1
- Boot Process Gets Stuck HOT 1
- Remove Tallycoin App HOT 1
- LCD / internet.sh with WiFi HOT 1
- cl-plugin.summary.sh - not working properly
- bitcoind.service not working?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspiblitz.