2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-29 01:56:42 +00:00
Commit Graph

10 Commits

Author SHA1 Message Date
Vinícius Ferrão e22bcf54d4 fix(syncfiles): name root explicitly on the xdcp subrequest
syncfiles builds an xdcp subrequest with no username. xdcp takes its user from
-l, then from DSH_FROM_USERID, and otherwise leaves it unset, so the sync ends
up running as whatever identity xcatd happens to have rather than one the
request states.

That gap dates from 2c9bdf848, which removed the forceroot flag because any
caller could set it, and replaced it by passing the real username through.
updatenode was updated to do that; syncfiles was not. Its request comes from the
node, so there is no calling user to carry through, and root is what the sync
has to run as.

Name it explicitly, the same way updatenode does. This is a consistency and
hardening change: on a management node running as root the resulting identity is
the same either way, and no behavior difference is observable today.

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-08-08 20:47:05 -03:00
GONG Jie 63d987f6a9 Remove trailing spaces in file xCAT-server/lib/xcat/plugins/syncfiles.pm 2017-12-31 23:59:59 +00:00
yangsong 7c85b0998d add support for syncfiles with scp (#5123)
* add support for syncfiles with scp

* refine logic of EXECTUTE support message non rsync filesync

* refine syncfiles

* add startsyncfile script for cumulus

* refine format, fix updatenode without options causes command to crash #5142
2018-04-27 11:28:08 +08:00
Mark Gurevich 0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
lissav 2361faaf6c handles multiple syncfiles for an osimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13934 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 11:15:26 +00:00
bp-sawyers 84a6043361 Fixed misspelling of xCAT::SvrUtils
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11639 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-20 14:35:38 +00:00
jbjohnso 362f237975 Fix various omissions of 'use' statements.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11623 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-19 16:09:21 +00:00
daniceexi 227f6bdcf4 move the getsynclistfile() from Utils.pm to SvrUtils.pm; move the syncfiles() from Postage.pm to syncfiles.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3853 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-22 05:59:11 +00:00
daniceexi 677047fe75 The code drop of Syncing File function
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3785 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-15 13:08:51 +00:00
daniceexi 05c9e4b58f The first phase code drop for CFM like funtion
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3514 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-06-04 15:33:44 +00:00