[LON-CAPA-cvs] cvs: loncom / lcuserdel
foxr
lon-capa-cvs@mail.lon-capa.org
Mon, 07 Oct 2002 01:52:28 -0000
foxr Sun Oct 6 21:52:28 2002 EDT
Modified files:
/loncom lcuserdel
Log:
Restore the uid to www after running smbpasswd as euid root, uid root.
Index: loncom/lcuserdel
diff -u loncom/lcuserdel:1.13 loncom/lcuserdel:1.14
--- loncom/lcuserdel:1.13 Sun Oct 6 21:41:31 2002
+++ loncom/lcuserdel Sun Oct 6 21:52:28 2002
@@ -125,6 +125,7 @@
if (-e '/usr/bin/smbpasswd') {
($>,$<) = (0,0); # fool smbpasswd to think this is not setuid.
system('/usr/bin/smbpasswd -x '.$safeusername);
+ $< = $wwwid;
}