Unable to use sudo on OSX, get sudo: unknown uid 501: who are you?
source link: https://www.codesd.com/item/unable-to-use-sudo-on-osx-get-sudo-unknown-uid-501-who-are-you.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Unable to use sudo on OSX, get sudo: unknown uid 501: who are you?
When I type sudo <command>
in terminal I get sudo: unknown uid 501: who are you?
and when I type su
I get su: who are you?
I think I must have changed super user permissions somehow on my personal machine. I'm not able to use sudo commands now, and I've not been able to find any helpful solutions. Do I have to do something with my /etc/passwd
file? Can I even modify that?
FWIW - I simply had to install (via restart) the automatic updates that were downloaded and it was fixed. Logging out and back in didn't work.
Related Articles
Android unable to use for loop to get user data from database Parse.com
When you use CPAN in linux ubuntu, I run it using sudo / as root or as the default user
are you unable to use the plugins in build.phonegap.com since version 3.0?
Get the position of the map area (html)?
Ubuntu 12.04 - Use sudo or gksu to launch Sublime text 2?
Unable to install sudo plugins without sudo on OS X
OS X El Capitan - command line Unauthorized operation although using sudo
Find the name of the process without using sudo under Linux
Installing npm modules globally without using sudo and updating npmrc to install on the specified folder
Is it safe to run a ruby script using sudo?
Error: Running as root, do not use sudo with this script
Use sudo to edit the file in the root directory
shell script that uses sudo su-team and executes the rest command under this sudo access only
Text editor that can be edited using sudo over ssh?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK