change cyrus user shell to nologin
This commit is contained in:
parent
a5faf09e16
commit
7a95194565
@ -528,10 +528,10 @@ fi
|
||||
%if %{SASLGROUP}
|
||||
/usr/sbin/groupadd -g %{gid} -r %{_saslgroup} 2> /dev/null || :
|
||||
/usr/sbin/useradd -c "Cyrus IMAP Server" -d %{_vardata} -g %{_cyrusgroup} \
|
||||
-G %{_saslgroup} -s /bin/bash -u %{uid} -r %{_cyrususer} 2> /dev/null || :
|
||||
-G %{_saslgroup} -s /bin/nologin -u %{uid} -r %{_cyrususer} 2> /dev/null || :
|
||||
%else
|
||||
/usr/sbin/useradd -c "Cyrus IMAP Server" -d %{_vardata} -g %{_cyrusgroup} \
|
||||
-s /bin/bash -u %{uid} -r %{_cyrususer} 2> /dev/null || :
|
||||
-s /bin/nologin -u %{uid} -r %{_cyrususer} 2> /dev/null || :
|
||||
%endif
|
||||
|
||||
%post utils
|
||||
|
Loading…
Reference in New Issue
Block a user