Create dedicated install
user
A lot of damage can be done with root
access. Especially Makefiles
can easily create unintended damage. For this reason we will avoid installing software with sudo or root
rights unless absolutely necessary. Instead, all software installation shall be done using a dedicated install
user.
See Managing and propagating local accounts for the steeps to create the install
user account. Afterwards, make the install
user the owner of the /data/opt/
folder.
[root@master ~]# chown -R install:install /data/opt
The remaining exercise should be done as install
user, unless otherwise stated. To switch to this user, create a login shell using su
:
[root@master ~]# su - install
[install@master ~]$