From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020605 Description of problem: When placing symlinks into /etc/skel copy_tree of libmisc/copydir.c will properly create the symlink in the destination directory but not change the ownership to the target user/group. This makes httpd Option SymlinkIfOwnerMatch break for default weg pages including symlinks placed into /etc/skel/public_html for example. Version-Release number of selected component (if applicable): 20000902-4 How reproducible: Always Steps to Reproduce: [root@zaphod root]# touch /etc/skel/boo [root@zaphod root]# ln -s boo /etc/skel/boo2 [root@zaphod root]# ls -l /etc/skel total 0 -rw-r--r-- 1 root root 0 Jun 17 13:28 boo lrwxrwxrwx 1 root root 3 Jun 17 13:28 boo2 -> boo [root@zaphod root]# useradd -m boo Actual Results: [root@zaphod root]# ls -l /home/boo total 0 -rw-r--r-- 1 boo boo 0 Jun 17 13:29 boo lrwxrwxrwx 1 root root 3 Jun 17 13:29 boo2 -> boo Expected Results: [root@zaphod root]# ls -l /home/boo total 0 -rw-r--r-- 1 boo boo 0 Jun 17 13:29 boo lrwxrwxrwx 1 boo boo 3 Jun 17 13:29 boo2 -> boo Additional info: I'll see whether I can attach the patch I've done that seems to do the magic for me.
Created attachment 61164 [details] patch adding lchown to symlink creation in useradd
Fixed in shadow-utils-4.0.3-36. Thanks for the patch.