On 05/24/2012 10:01 PM, xaf wrote:
|--> Eric Shubert, le 25/05/2012 04:58, a dit :
On 05/24/2012 07:37 PM, Bharath Chari wrote:
On Friday 25 May 2012 07:47 AM, Bharath Chari wrote:
On Friday 25 May 2012 04:51 AM, Eric Shubert wrote:
On 05/24/2012 10:44 AM, Cecil Yother, Jr. wrote:
Is there a script to reset all the permissions in the
/home/vpopmail/domains directory?
--
Not that I'm aware of.
I've thought on occasion that it'd be nice to have a utility script
sort of like queue_repair.py that would go through all of the QMT
related directories and check/fix the permissions and ownerships.
Anyone care to take a stab at it? I'd be glad to add such a thing to
the QTP package.
Isn't "chown -R vpopmail:vchkpw * /home/vpopmail/domains" sufficient?
Sorry "chown -R vpopmail:vchkpw /home/vpopmail/domains"
That's easy enough for ownership, but permission bits are a little
trickier. Need to differentiate between directories and files.
cd /home/vpopmail/domains
find . -type d -exec chmod 700 {} \;
find . -type f -exec chmod 600 {} \;
find . -type f -name "courierimap*" -exec chmod 644 {} \;
chown -R vpopmail:vchkpw .
do the job
xaf
---------------------------------------------------------------------
Nice. If you're running dovecot, also:
find . -type f -name "dovecot-uidvalidity.*" -exec chmod 444 {} \;
Would someone care to add this to the wiki? Maybe in the FAQ section if
there's not a more appropriate place.
--
-Eric 'shubes'
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]