wiki will also be wrong, so let me explain it.
last change with old way is @ Last modified: 2012/10/24 18:27
Adding Custom Startup Scripts
blah blah
chown -R root:staff /tmp/package/usr/local/tce.installed
chmod -R 775 /tmp/package/usr/local/tce.installed
I added @ Last modified: 2012/10/24 18:31 a new section and
Important step before you move on
blah blah
mkdir -p /tmp/package/usr/local/tce.installed
touch /tmp/package/usr/local/tce.installed/package
sudo chown -R root:staff /tmp/package/usr/local/tce.installed
sudo chmod -R 775 /tmp/package/usr/local/tce.installed
Now to explain my change, in the history old way I changed a few things
I added the sudo
yes it was me.
But at no stage did I add any sudo su, or instruction to do this script as root. That means the old way, would have failed as local user because you can not change chown to root without being root eg
touch aa
tc@box:~$ chown root aa
chown: changing ownership of `aa': Operation not permitted
So I assumed because of NO mention that the script was to be run as root, it needed the sudo command
Now if we now assume script is to be run as root, then we can remove the sudo, but then we must tell user that script is to be run as root.
AFAIK at no version does anyone say to run as root. It that clearer?
Sorry if this sounds trivial but to me its important. From the local village idiot point of view, users can follow the wiki and that leads to more downstream maintainers, with luck. If I was ashamed of all my errors I would not have submitted anything. And I hoping you can see, by exposing my errors that we improve, so others don't fall for the same mistakes but make their own new mistakes or better still none at all.
cheers and thanks for reading