Commit 0ca95b12 authored by claes's avatar claes

Set owner and nogroup access to .rhosts file

parent 714205a9
/*
* Proview $Id: wb_pkg.cpp,v 1.14 2006-05-05 11:32:28 claes Exp $
* Proview $Id: wb_pkg.cpp,v 1.15 2006-06-30 12:22:19 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -469,6 +469,15 @@ void pkg_node::fetchFiles( bool distribute)
" sudo chmod g+w $pwrp_exe/plc_$nname_*" << endl <<
" sudo chmod u+s $pwrp_exe/plc_$nname_*" << endl <<
"fi" << endl;
// Group should not have write access to .rhosts file
ofu <<
"if [ \"$tst\" != \"\" ]; then" << endl <<
" if [ -e /home/pwrp/.rhosts ]; then" << endl <<
" sudo chown pwrp /home/pwrp/.rhosts" << endl <<
" sudo chmod g-w /home/pwrp/.rhosts" << endl <<
" fi" << endl <<
"fi" << endl;
ofu.close();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment