RouteXL
New Pleskian
I ran into a problem for which I found no fix on this forum or the KB, but did find a fix myself. I thought I'd share it here for someone else if they run into the same problem.
The problem:
I had added some web users for one of my domains one day. After a while I also changed the system user username for that same domain. Then the weirdest thing happened: all folders in the vhost were suddenly owned by one of the web users. Nothing helped to regain ownership, deleted web users, renamed system user, chown's, etcetera. The web user owned the place.
The fix:
I've edited /etc/passwd and put line with the system user above all web users of that domain. After that the system user had the ownership back, no restart required.
The question:
Was this the right thing to do? Should the order of /etc/passwd make any difference?
The problem:
I had added some web users for one of my domains one day. After a while I also changed the system user username for that same domain. Then the weirdest thing happened: all folders in the vhost were suddenly owned by one of the web users. Nothing helped to regain ownership, deleted web users, renamed system user, chown's, etcetera. The web user owned the place.
The fix:
I've edited /etc/passwd and put line with the system user above all web users of that domain. After that the system user had the ownership back, no restart required.
The question:
Was this the right thing to do? Should the order of /etc/passwd make any difference?