Closed noralinn closed 5 months ago
Quite likely that I have used thoughtlessly something like last-asroot -c "cd matlab/LAST/LAST-OCS; git checkout j2000InHeader; git pull
where I should have instead last-asocs
, so my fault.
Does sudo chown -R ocs ~/matlab/LAST/LAST_OCS/.git
fix it?
yes, chown fixes it! Thank you.
I wasn't aware of last-asocs.
Well, in fact
ocs@last03e:~/matlab/LAST/LAST_OCS$ last-asocs -H last11e -H last11w -c "last-tool -n make last-software"
[SECT] last11e
last-tool: Must be root to run this tool!
so one has to be root for that. I don't know if there is a solution and whether to reopen
last-tool -n make user
will (among others)
A few files, e.g.,
.git/HEAD
and files from Feb. 28 in.git/objects
, are owned by root and not by ocs. I'm suspecting that this is happening when usinglast-asroot
to pull from github? But it means that we can no longer pull (and maybe push? I didn't try) as ocs from the local computer.What is the best solution? Modify last-asroot? Change to root when using git commands?