Comments (5)
If I'm not mistaken, logname
expecting a tty session which ssh normally does not provide.
from dietpi.
I could not install various software I needed to run on the Raspberry pi because of it.
I got a hint that it is SSH related and switched from Dropbear to OpenSSH, and it's now working.
from dietpi.
logname
returns the name of the user logged in based in /var/run/utmp
, ignoring sudo
/runuser
and possible subshells. Dropbear seems to not create that entry, similar to how it does not use all PAM features etc. One can check the w
command for registered login sessions.
To be true, I never heard of this command before, but $USER
, $LOGNAME
variables or whoami
command. As you say "various software", which software exactly requires the logname
command to be installed?
from dietpi.
logname
returns the name of the user logged in based in/var/run/utmp
, ignoringsudo
/runuser
and possible subshells. Dropbear seems to not create that entry, similar to how it does not use all PAM features etc. One can check thew
command for registered login sessions.To be true, I never heard of this command before, but
$USER
,$LOGNAME
variables orwhoami
command. As you say "various software", which software exactly requires thelogname
command to be installed?
It's https://github.com/Stefal/rtkbase
from dietpi.
I see. It uses bash
for the installer, and suggests to run it with sudo
, so a failsafe replacement (or fallback) for logname
would be $SUDO_USER
, else $USER
variables, which is assured to be set in bash
, hence also makes this "empty value" check obsolete.
from dietpi.
Related Issues (20)
- Failed to install Docker via software HOT 4
- [USER ERROR] After Bullseye upgrade, `apt-get -y -eany update` fails with `option 'e' [from -eany] is not understood` HOT 4
- CPU Governor on NanoPi NEO3 seems faulty HOT 7
- Iteration v9.4 (2024-05-11)
- APT | TLS errors when connecting to dietpi.com HOT 13
- DietPi has encountered an error during update to v9.3.0 HOT 4
- Image | Radxa ZERO 3 HOT 58
- Update from 9.2.1 to 9.3 fails. Appears to be corrupted update URLs or something with Tailscale running on the box HOT 8
- "cpu" command | Add CPUFreq stats for time in states
- USB0 Network setting HOT 2
- Pine A64 - update from 9.2.1 to 9.3.0 fails while upgrading APT packages HOT 3
- Trying to run HamClock on /dev/fb0 HOT 4
- Dietpi-9.3 issues with all existing services going down while using tailscale as an exit node. HOT 3
- Elecrow 10.7" 1920x1080 IPS HDMI - Current console font on boot looks unreadable. HOT 2
- /dev/fb0 disappeared HOT 6
- Software request - photoprism
- Issue with /dev/dri/ with no desktop running HOT 2
- DietPi-Installer | Add support for Amlogic S9xx TV boxes HOT 7
- DietPi-Software | NZBGet: Move to DEB packages?
- Dietpi-VPN IPVanish installation - Possible bugs with IpVanish's configs.zip and also "keysize" in .ovpn file HOT 6
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 dietpi.