zEitEr
Super Moderator
Hello,
It seems there is a typo in line
of
in /usr/local/directadmin/scripts/set_permissions.sh
this call
would do the following:
and it will end with wrong permissions on /home dir and probably other files/dirs:
Please fix it.
It seems there is a typo in line
Code:
chown $5 $2:$3 $1
of
Code:
set_file()
{
if [ -e "$1" ] || [ "$6" = "nocheck" ]; then
log "set $1 $2:$3 $4 flag $5";
#chown goes first.
#A 4755 file is set to 755 if chown is called after chmod.
chown $5 $2:$3 $1
chmod $5 $4 $1
fi
}
in /usr/local/directadmin/scripts/set_permissions.sh
this call
Code:
set_file /home 711 root $RT_GRP 711
would do the following:
Code:
chown 711 711:root /home
and it will end with wrong permissions on /home dir and probably other files/dirs:
Code:
[root@server ~]# ls -ld /home/
drwx--x--x. 433 711 root 16384 Mar 30 05:37 /home/
[root@server ~]# chown 0:0 /home
[root@server ~]# ls -ld /home/
drwx--x--x. 433 root root 16384 Mar 30 05:37 /home/
[root@server ~]#
Please fix it.