Change shell error
Solution 1:
On Ubuntu, the root account is not activated. As a consequence, the command su -
will not work. This command starts a login shell for the root user, which does not work. su - backuppc
starts a login shell for user backuppc
. This works if that user exists on the system.
To open an interactive prompt with root privileges, use sudo -i
. Yet, for many administrator tasks, there is rarely a need to keep a terminal with root privileges open. Instead precede the commands that require root privileges with sudo
.
To change the login shell of another user, for example user backuppc
, you can use
sudo chsh backuppc -s <path-to-shell>