Projects
Kolab:3.4
cyrus-imapd
cyrus-imapd.rpm_set_permissions
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cyrus-imapd.rpm_set_permissions of Package cyrus-imapd (Revision 12)
Currently displaying revision
12
,
Show latest
#!/bin/sh IMAPCONF=/etc/imapd.conf CONFDIR=$(grep -se "^configdirectory:" $IMAPCONF | cut -d":" -f2) if [ "x$CONFDIR" = "x" ]; then echo "$0 error: configdirectory not found in /etc/imapd.conf, exiting!" exit 1 fi find $CONFDIR -type d ! -name "lost+found" -exec chmod 700 {} \; -exec chown cyrus:mail {} \; grep -sE "^(meta|)partition-.*:" $IMAPCONF | cut -d":" -f2 | while read SPOOLDIR; do if [ "x$SPOOLDIR" = "x" ]; then echo "$0 warning: invalid (meta)partition configuration in /etc/imapd.conf found!" else find $SPOOLDIR -type d ! -name "lost+found" -exec chmod 700 {} \; -exec chown cyrus:mail {} \; fi done find $CONFDIR -type f ! -name "lost+found" -exec chmod 600 {} \; -exec chown cyrus:mail {} \; grep -sE "^(meta|)partition-.*:" $IMAPCONF | cut -d":" -f2 | while read SPOOLDIR; do if [ "x$SPOOLDIR" = "x" ]; then echo "$0 warning: invalid (meta)partition configuration in /etc/imapd.conf found!" else find $SPOOLDIR -type f ! -name "lost+found" -exec chmod 600 {} \; -exec chown cyrus:mail {} \; fi done # lmtp socket must be accessible by group mail chmod 750 $CONFDIR chmod 750 ${CONFDIR}/socket
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.