[LON-CAPA-cvs] cvs: loncom /debugging_tools modify_config_files.pl
raeburn
raeburn at source.lon-capa.org
Tue Jul 9 10:18:16 EDT 2024
raeburn Tue Jul 9 14:18:16 2024 EDT
Modified files:
/loncom/debugging_tools modify_config_files.pl
Log:
- File: /home/www/.inputrc to be owned by www user.
Index: loncom/debugging_tools/modify_config_files.pl
diff -u loncom/debugging_tools/modify_config_files.pl:1.25 loncom/debugging_tools/modify_config_files.pl:1.26
--- loncom/debugging_tools/modify_config_files.pl:1.25 Mon Jul 8 23:46:06 2024
+++ loncom/debugging_tools/modify_config_files.pl Tue Jul 9 14:18:16 2024
@@ -2,7 +2,7 @@
#
# The LearningOnline Network
#
-# $Id: modify_config_files.pl,v 1.25 2024/07/08 23:46:06 raeburn Exp $
+# $Id: modify_config_files.pl,v 1.26 2024/07/09 14:18:16 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -393,6 +393,11 @@
} else {
warn "**** Error: could not open $bash_www_cnf to add 'set enable-bracketed-paste to off'";
}
+ my $wwwuid = getpwnam('www');
+ my $wwwgid = getgrnam('www');
+ if ($wwwuid!=$<) {
+ chown($wwwuid,$wwwgid,$bash_www_cnf);
+ }
} else {
my ($bracketed_paste_on,$bracketed_paste_off, at preserve);
if (open(my $fh,'<',$bash_www_cnf)) {
More information about the LON-CAPA-cvs
mailing list