Root user guide
A server’s root user has administrative privileges for the server.
Deploying code to apps
Do not create files or directories in your apps while logged in as the root user. Files and directories created by the root user will not be writable by the app’s system user and will cause permissions problems and errors for apps.
To upload files to your apps, SSH or SFTP into the server as the app’s system user.
Customizations
Before running commands as the root user such as to install software or make configuration changes to a server, create a snapshot of the server. If an incorrect command you run as the root user breaks your server, you will need to restore the server from a snapshot.