Date: Mon, 15 Mar 1999 12:07:34 -0500 (EST) From: adrian2ubergeeks.com@gosub.cstone.net To: FreeBSD-gnats-submit@freebsd.org Subject: bin/10601: symlink ownership fix to adduser(8) Message-ID: <199903151707.MAA25449@gosub.cstone.net>
next in thread | raw e-mail | index | archive | help
>Number: 10601 >Category: bin >Synopsis: Ownership of symlinks copied by adduser are not set correctly. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 15 09:20:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Adrian Filipi-Martin >Release: FreeBSD 3.1-STABLE i386 >Organization: Ubergeeks Consulting >Environment: >Description: When adduser copies symlinks form /usr/share/skel, it does not set the ownership of the new files correctly. >How-To-Repeat: >Fix: Apply the follwing patch: --- adduser.perl.orig Mon Mar 15 11:59:42 1999 +++ adduser.perl Mon Mar 15 12:00:10 1999 @@ -940,7 +940,7 @@ print "Copy files from $dotdir to $homedir\n" if $verbose; system("cp -R $dotdir $homedir"); system("chmod -R u+wrX,go-w $homedir"); - system("chown -R $name:$group $homedir"); + system("chown -Rh $name:$group $homedir"); # security opendir(D, $homedir); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903151707.MAA25449>