DA does not set permissions correctly when editing files

interfasys

Verified User
Joined
Oct 31, 2003
Messages
1,821
Location
Switzerland
On FreeBSD 8, DA doesn't follow the rules set in edit_files.txt.

I've tried with this line:
Code:
/etc/exim.conf=user=root&group=wheel&permission=755
The result is an exim file owned by root:9999

I've also had problems doing chown and chmod via post and pre scripts, but I'm not a 100% sure that it's a DA problem yet.
 
Code:
>ls -l /etc/exim.conf
-rwxr-xr-x 1 root root 36025 17 feb 10:39 /etc/exim.conf

Are you sure have to be wheel? On my box is root:root as pasted
 
oh ok, long time i dont use freebsd sorry ^^

try to contact directadmin support for find out a solution for this that seems to be a bug
 
Hello,

Thanks for the report. Bug found and fixed.

The issue was that the group ID was being determined from the text entry in /etc/passwd, and the group ID retrieved from that. Wheel is only a group and doesn't exist in /etc/passwd. The change was to ensure the group ID is grabbed from /etc/group.

I've also updated the edit_files.txt for freebsd to use group=wheel.

John
 
Back
Top