Hi Alessio Fattorini Am 2014-01-21 17:17, schrieb Alessio Fattorini: > > after the shell change for user sogo, from /bin/bash to /sbin/nologin my > expire-autoreply vacation script stop working. > > 0 0 * * * sogo /usr/sbin/sogo-tool expire-autoreply sogo:wi*** > > I wrote this month ago, as suggested in documentation and sogo package > > I try with this (like an email suggest me) > sudo -u sogo /usr/sbin/sogo-tool expire-autoreply -p > /var/lib/sogo/credentials > > but i obtain this error: > > 2014-01-23 00:05:42.282 sogo-tool[9279] Could not login 'alessio' on > Sieve server: <0x0x8fb34d4[NGSieveClient]: > socket=<NGActiveSocket[0x0x8fb7e04]: mode=rw > address=<0x0x8fb92d4[NGInternetSocketAddress]: host=localhost > port=57430> connectedTo=<0x0x8fb57ec[NGInternetSocketAddress]: > host=localhost port=4190>>>: (null) > 2014-01-23 00:05:42.287 sogo-tool[9279] An error occured while removing > auto-reply of user alessio > > > alessio is the user with vacation activated > Can you explain how change script please? If i should change > I should use sudo, how can i use sudo into cron? >
You already did a "sudo" to "sogo" with giving the user to execute as in your cron entry. You only have to change the options of your command in the cron entry. So just use: 0 0 * * * sogo /usr/sbin/sogo-tool expire-autoreply -p /var/lib/sogo/credentials Kind regards, Christian Mack -- Christian Mack Gruppe Informationsdienste Rechenzentrum Universität Konstanz -- [email protected] https://inverse.ca/sogo/lists
