/etc/passwd.org, /etc/group.org, /etc/shadow.org files

On a Debian 10 server, which started as Debian 7 and updated whenever new version came out, I accidentally found these three files:

/etc/passwd.org, /etc/group.org, /etc/shadow.org

The backup files /etc/passwd-, /etc/group-, /etc/shadow- and other *- files are present, as they should.

For example, all passwd files are (same applies for the other two):

$ ll /etc/passwd*
-rw-r--r-- 1 root root 2,1K Αυγ  13 14:08 /etc/passwd
-rw-r--r-- 1 root root 2,1K Αυγ  13 14:06 /etc/passwd-
-rw-r--r-- 1 root root 2,0K Ιουν 20  2015 /etc/passwd.org

Their last access time is somewhere in 2015. Their contents are on par with /etc/passwd, /etc/group, /etc/shadow, as they probably were some time in the past – I can see some deleted users. I cannot find any info of such *org files. Does anybody has any idea what are there *org files and what is their use?

Go to Source
Author: Krackout

Dual network interface control with systemd

On a debian machine, I have two network interfaces: eth1 and eth2.

Eth1 is static and eth2 is using dhcp. How to make so that when the eth1 interface is active, the eth2 interface is down and vice versa? Basically I want the two interfaces never to be active at the same time.
I’ve started to make a script with ifdown ifup in the crontab but obviously we should be able to do it with systemd.

Do you have any idea how to make this easy?

Go to Source
Author: Rig0L

How to obtain the path of a Bash script, when it’s executed through a symlink?

I want to obtain the path of a Bash script, is when it’s executed through a symlink.

In this case, $0 is -bash, while BASH_SOURCE is the symlink’s path.

Can I obtain the script’s path through some shell variable, built-in shell command, or external command?

Will BASH_SOURCE always holds the initial symlink’s path, even if the script is executed through several levels of indirection (multiple symlinks)?

Could I use ls with BASH_SOURCE to always retrieve the script’s path?

Go to Source
Author: Shuzheng

HDMI input not detected on Debian 10

I am running Debian 10 Buster on an an hybrid laptop with the following GPUs:

$ lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630   (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060] (rev a1)

According to system settings > details the GPU in use is: Intel® UHD Graphics 630 (Coffeelake 3×8 GT2)

I have tried to open the Nvidia X server settings but nothing happens.

I previously used Mint and Ubuntu and had no problems the HDMI was detected automatically.

Go to Source
Author: JudeB

How can I set PHP 7.2 under Debian 10?

I’m trying to install phpBB and am getting that 7.3 is too new to be supported, with a suggestion of downgrading to 7.2.

Am I correct that I want to downgrade PHP to 7.2, and if so, what are the preferred methods? aptitude does not appear to offer a php7.2 complement of functions.

I might be able to install from source, but if that’s the best option I see, I probably don’t see the best option.

How can / should I make PHP 7.2 available to phpBB, whether through making a parallel PHP 7 installation or some other means?

Thanks,

Go to Source
Author: Christos Hayward