Author Topic: folder permissions - re adding an account  (Read 1105 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
folder permissions - re adding an account
« on: July 21, 2023, 07:45:46 AM »
Hi

I deleted an user account

Later I added the same account/domain back

Now the var/vmail/domainname.com permission is not set to user vmail but instead to 1074

When I login to webmail, I get check server logs

When I check server logs I get error

Quote
Jul 21 09:29:36 imap-login: Info: Login: user=<accounts@domain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28279, secured, session=<VAgZOvoAssx/AAAB>
Jul 21 09:29:36 imap(accounts@domain.com): Info: Namespace '': stat(/var/vmail/domain.com/accounts) failed: Permission denied (euid=1129(user) egid=12(mail) missing +x perm: /var/vmail/domain.com, we're not in group 1074, dir owned by 101:1074 mode=0770) in=0 out=376

Offline
*****
Re: folder permissions - re adding an account
« Reply #1 on: July 21, 2023, 03:40:56 PM »
You should manually reset permissions:
Code: [Select]
chown -R vmail:mail /var/vmail/domain.com