mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
CentOS7: Register /sbin/nologin and /usr/sbin/nologin
Fix for https://github.com/serghey-rodin/vesta/issues/1437
This commit is contained in:
parent
f8b4d42b74
commit
8010f5d802
1 changed files with 4 additions and 0 deletions
|
@ -691,6 +691,10 @@ chmod a+x /backup
|
||||||
# Set directory color
|
# Set directory color
|
||||||
echo 'LS_COLORS="$LS_COLORS:di=00;33"' >> /etc/profile
|
echo 'LS_COLORS="$LS_COLORS:di=00;33"' >> /etc/profile
|
||||||
|
|
||||||
|
# Register /sbin/nologin and /usr/sbin/nologin
|
||||||
|
echo "/sbin/nologin" >> /etc/shells
|
||||||
|
echo "/usr/sbin/nologin" >> /etc/shells
|
||||||
|
|
||||||
# Changing default systemd interval
|
# Changing default systemd interval
|
||||||
if [ "$release" -eq '7' ]; then
|
if [ "$release" -eq '7' ]; then
|
||||||
# Hi Lennart
|
# Hi Lennart
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue