mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -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
|
||||
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
|
||||
if [ "$release" -eq '7' ]; then
|
||||
# Hi Lennart
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue