prefer /usr/sbin/nologin than /sbin/nologin when creating user cyrus.

Requested by:	nork
This commit is contained in:
Hajimu UMEMOTO 2004-03-31 16:56:31 +00:00
parent febfac9141
commit 026ebc1dee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105796
6 changed files with 18 additions and 6 deletions

View file

@ -42,7 +42,9 @@ cyrus_conf() {
modify_cyrus_user() {
USER=cyrus
PW=/usr/sbin/pw
if [ -x /sbin/nologin ]; then
if [ -x /usr/sbin/nologin ]; then
shell=/usr/sbin/nologin
elif [ -x /sbin/nologin ]; then
shell=/sbin/nologin
else
shell=/nonexistent

View file

@ -32,7 +32,9 @@ checkfile() {
modify_cyrus_user() {
USER=${CYRUS_USER}
PW=/usr/sbin/pw
if [ -x /sbin/nologin ]; then
if [ -x /usr/sbin/nologin ]; then
shell=/usr/sbin/nologin
elif [ -x /sbin/nologin ]; then
shell=/sbin/nologin
else
shell=/nonexistent

View file

@ -32,7 +32,9 @@ checkfile() {
modify_cyrus_user() {
USER=${CYRUS_USER}
PW=/usr/sbin/pw
if [ -x /sbin/nologin ]; then
if [ -x /usr/sbin/nologin ]; then
shell=/usr/sbin/nologin
elif [ -x /sbin/nologin ]; then
shell=/sbin/nologin
else
shell=/nonexistent

View file

@ -32,7 +32,9 @@ checkfile() {
modify_cyrus_user() {
USER=${CYRUS_USER}
PW=/usr/sbin/pw
if [ -x /sbin/nologin ]; then
if [ -x /usr/sbin/nologin ]; then
shell=/usr/sbin/nologin
elif [ -x /sbin/nologin ]; then
shell=/sbin/nologin
else
shell=/nonexistent

View file

@ -32,7 +32,9 @@ checkfile() {
modify_cyrus_user() {
USER=${CYRUS_USER}
PW=/usr/sbin/pw
if [ -x /sbin/nologin ]; then
if [ -x /usr/sbin/nologin ]; then
shell=/usr/sbin/nologin
elif [ -x /sbin/nologin ]; then
shell=/sbin/nologin
else
shell=/nonexistent

View file

@ -25,7 +25,9 @@ create_user() {
GROUP=${CYRUS_GROUP}
PW=/usr/sbin/pw
if [ -x /sbin/nologin ]; then
if [ -x /usr/sbin/nologin ]; then
shell=/usr/sbin/nologin
elif [ -x /sbin/nologin ]; then
shell=/sbin/nologin
else
shell=/nonexistent