Författare:
Per Stenebo
Per Stenebo
Skapad:
2019-07-12 22:14:21
2019-07-12 22:14:21
Ändrad:
2023-12-06 16:08:19
2023-12-06 16:08:19
Debian
Notes for Debian 10 Buster
| debian.org | manpages | Unofficial non-free images (including firmware packages) |
command not found
Commands in /sbin (/usr/sbin) like shutdown, reboot, usermod, useradd not found, even after su.
Use full path to (root) commands: /sbin/reboot
Or, explicitly tell the su to set environment variable with the switch -
, like su -
Run script as another user:
#/bin/su -s /usr/bin/php -c "thescript.php" "www-data"
Network
List interfaces: ls /sys/class/net/
Interfaces seems to be configured in /etc/network/interfaces rather than /etc/dhcpcd.conf