New answers tagged

2

When creating the user with useradd use the option -s -s, --shell SHELL The name of the user's login shell. The default is to leave this field blank, which causes the system to select the default login shell specified by the SHELL variable in /etc/default/useradd, or an empty string by default. Give it the value /sbin/nologin. This will prevent ...


0

Since OpenSSH 7.2, which was released in February 2016, %i is now supported in ControlPath expression, which expands to numeric UID. For example, ControlPath /run/user/%i/master-%l-%r@%h:%p Alternatively, if newer OpenSSH is not available, you can consider using /dev/shm for storing temporary data. It's world-writeable and is always tmpfs. Although it's ...



Top 50 recent answers are included