change cyrus user shell to nologin

This commit is contained in:
Michal Hlavinka 2009-07-01 08:24:37 +00:00
parent a5faf09e16
commit 7a95194565

View File

@ -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