sudo su -l : change to user, but with whatever shell environment the root user would usually have. Note that this is simply sudo with the command of 'su'. sudo su : if you don't know the root password (not usually an issue on the One), this allows you to run the su command without a password. This requires the root password, but by default on the One this is set to the same password as the user password. This means that all the commands you now enter will be run as root, until you either close the console window or log out as root (Ctrl-D, or exit, will log you out as root but leave you logged into the console as yourself). su : change to be the root user in the present console. This article has explained the difference between ‘su -‘ and ‘su root’ commands in Linux.They all provide ways of running commands as root (or, technically, as any other user - but since the One comes with only "root" and "user" as user accounts, it's not very relevant to the One!). Once you enter the password, it is switched to the root user. Both commands prompt to enter the root user password. In Linux, the “ su –” is utilized to switch to a user account with a login shell session, and the “ su root” switches to the root user account without a login shell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |