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

0 Members and 1 Guest are viewing this topic.

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

I deleted an user account

Later I added the same account/domain back

Now the var/vmail/ 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

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

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/