![]() I would go down this path only as a desperate last resort.įor discussion of this within the context of the postgres user running the Postgres database system on macOS, see this Question on the sister site, DBA Stack Exchange. If need be, you can enable the root user in macOS and then switch to that user. See this Apple Support note for discussion. It is a bad idea to have no password for sudo George Udosen at 10:28 never use sudo su please use either sudo -i or sudo su - if you use sudo su your user variable such as PATH or aliases are more likely to be corrupted will be usable as root. Apple created the idea of the Administrator user accounts who have many powers, more powers than a Standard user account, but not absolute power like root has. The root user in Unix-related operating systems have absolute power to do anything.Īpple has chosen to disable the root account in macOS, to avoid security vulnerability exploits and to protect you from shooting yourself in the foot. Or, to include running the user's startup scripts, add the hyphen. sudo -u someuser -iĪnother approach uses the su command in combination with the sudo. If we opt to not specify a command or app to run, we get an interactive shell running as that user. This runs the nano app as the user someuser but only after having run the startup scripts for that user. To simulate an initial login as a particular user, including running their startup scripts, use -I.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |