All files permission set to www-data www-data

SYSTEM INFORMATION
OS type and version Ubuntu 20
Virtualmin version latest
I have installed SendmailAnalyzer and now all my files have permissions set to www-data www-data
How do I fix that and revert required permissions to the right place is sudo chown -R root:root /
will help? right now none of my users can access their mailboxes. and I guess there is even more issues

To fix permissions you could use Fix Permissions feature in Limits and Validation ⇾ Validate Virtual Servers page.

1 Like

You are a life saviour!!! thanks a million.

1 Like

actually I still need help. Users got access to the webmin and usermin but I am unable to connect to the server neither from outside nor from localhost, I tried to check all config files and disable firewall and I cannot find the issue. I had a backup file on that machine so though I can recover but I see that even for this backup file this damn script changed user group and permissions to www-data:www-data. What can I do to restore access to the server from outside and inside and how to I roll back permissions etc now even if my backup file got corrupted?

Can you elaborate on this? It isn’t clear what’s going on!

sure. Users can login to usermin to their mailbox and send email. But when I am trying to connect over telnet I get Trying 213.199.48.111…

telnet: connect to address 213.199.48.111: Connection refused

telnet: Unable to connect to remote host

I have checked config file, ufw disabled. linux firewall has port 25 open. I don’t know where to look else :frowning:

New problem, new topic. Don’t change the subject.

https://forum.virtualmin.com/guidelines

the problem was the same with permissions, while recommendations from Illa helped to restore users access to usermin that didn’t help to restore access to the server.
I finally got it fixed by changing bunch of files permissions and reinstalling Postfix.
Here is what helped in case anyone has the same issue. I ran

ps aux | grep postfix
sudo postfix check

sudo postfix check returned

postfix/postfix-script: warning: symlink leaves directory: /etc/postfix/./makedefs.out

postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/./master.lock

postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/./smtp_scache.db

postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/./verify_cache

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/5AE042521B29

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/1C68A2521ACA

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/3151A2521C0F

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/4A9E12521BC2

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/7BC622521962

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/EA6EA2521ADF

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/71CC32521D27

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/A74442521D03

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/BEBBC25219BF

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/EC95A2521B9E

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/5031825219B7

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/A62452521C56

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/A4A3525219E4

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/2D2082521AFF

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/0ED8525219B8

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/3108B25215D7

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/6840E2521E32

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/0DDF32521B3E

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/A1C1D2521DEC

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/3A8D92521E14

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active/7E0692521BFC

postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/trace

So I ran

sudo chown -R postfix:postfix /var/lib/postfix /var/spool/postfix/active /var/spool/postfix/trace
sudo systemctl restart postfix

Before that I checked all possible places.
Thanks guys! Hope this help someone else

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.