[LON-CAPA-cvs] cvs: loncom / lchtmldir lcuseradd
foxr
lon-capa-cvs@mail.lon-capa.org
Wed, 26 Jan 2005 10:38:13 -0000
foxr Wed Jan 26 05:38:13 2005 EDT
Modified files:
/loncom lchtmldir lcuseradd
Log:
Reset the ownership to user:user rather than user:www even though the latter
is objectively probably better and I don't think it will break any existing
stuff since the www already has groups for users that don't match this scheme.
Index: loncom/lchtmldir
diff -u loncom/lchtmldir:1.13 loncom/lchtmldir:1.14
--- loncom/lchtmldir:1.13 Tue Jan 25 06:39:52 2005
+++ loncom/lchtmldir Wed Jan 26 05:38:13 2005
@@ -221,7 +221,7 @@
# Based on the authentiation mode, set the ownership of the directory.
if($authentication eq "unix:") { # Unix mode authentication...
- &System("/bin/chown -R $safeuser:www"." ".$fulldir);
+ &System("/bin/chown -R $safeuser:$safeuser"." ".$fulldir);
&JoinGroup($safeuser);
} else {
# Internal, Kerberos, and Local authentication are for users
Index: loncom/lcuseradd
diff -u loncom/lcuseradd:1.32 loncom/lcuseradd:1.33
--- loncom/lcuseradd:1.32 Tue Jan 25 06:39:52 2005
+++ loncom/lcuseradd Wed Jan 26 05:38:13 2005
@@ -6,7 +6,7 @@
# with adding a user with filesystem privileges (e.g. author)
#
#
-# $Id: lcuseradd,v 1.32 2005/01/25 11:39:52 foxr Exp $
+# $Id: lcuseradd,v 1.33 2005/01/26 10:38:13 foxr Exp $
###
###############################################################################
@@ -314,15 +314,15 @@
</html>
END
close OUT;
-system('/bin/chown','0660', "/home/$safeusername/public_html/index.html");
+system('/bin/chmod','0660', "/home/$safeusername/public_html/index.html");
#
# In order to allow the loncapa daemons appropriate access
# to public_html, Top level and public_html directories should
# be owned by safeusername:www as should the smaple index.html..
print "lcuseradd ownership\n" unless $noprint;
system('/bin/chown','-R',"$safeusername:$safeusername","/home/$safeusername"); # First set std ownership on everything.
-system('/bin/chown',"$safeusername:www","/home/$safeusername"); # Now adust top level...
-system('/bin/chown','-R',"$safeusername:www","/home/$safeusername/public_html"); # And web dir.
+# system('/bin/chown',"$safeusername:www","/home/$safeusername"); # Now adust top level...
+# system('/bin/chown','-R',"$safeusername:www","/home/$safeusername/public_html"); # And web dir.
# ---------------------------------------------------- Gracefull Apache Restart
if (-e '/var/run/httpd.pid') {
print "lcuseradd Apache restart\n" unless $noprint;