35

Unable to use sudo on OSX, get sudo: unknown uid 501: who are you?

 3 years ago
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?

advertisements

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

I am looking to get the names of a few users from the parse.com DB based on a few queries, for which I am using a for loop to get users and load it into a listview using a custom adapter and the code I have used is as under : query.findInBackground(n

When you use CPAN in linux ubuntu, I run it using sudo / as root or as the default user

I get errors like this Running make install Prepending blib/arch and blib/lib of 17 build dirs to PERL5LIB; for 'install' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR: Can't create '/usr/local/man/man3' Do not have w

are you unable to use the plugins in build.phonegap.com since version 3.0?

I was using build.phonegap.com in it's simplest way. That is: no sdk and no phonegap framework installed on my computer; no git or svn repository used. I just upload a zip with my html, css and js files. But now I need to use the File plugin. I found

Get the position of the map area (html)?

Is this possible? I'm trying to find the x and y coordinates of the element in relation to the browser. var position = $(this).position(); x = position.left; y = position.right; Doesn't work. Is there any way to do this? http://adamsaewitz.com/housin

Ubuntu 12.04 - Use sudo or gksu to launch Sublime text 2?

I am new to using Ubuntu 12.04 and noticed two different ways of launching Sublime Text 2 via Terminal window, first being sudo and the other being gksu. Upon using both I noticed it's launching different instances of Sublime Text 2 with different in

Unable to install sudo plugins without sudo on OS X

I've installed plugins previously within vagrant. Now on a different MacBook, I'm trying to install some of the same plugins I was using on my older MacBook. For example when I try to install vagrant-hostmanager I get a ruby permissions error: $ vagr

OS X El Capitan - command line Unauthorized operation although using sudo

I am trying to create symbolic link using mac terminal command line but I am getting "Operation not permitted". See code below: sudo ln -s ~/.composer/vendor/drush/drush/drush /usr/bin/drush Password: ln: /usr/bin/drush: Operation not permitted

Find the name of the process without using sudo under Linux

Here are the commands I am familiar with that do what you may think I want: For the sake of this question; "pn" = "process name" pgrep pn sudo /sbin/service pn status ps -fC pn The problem I am running into is Java. pgrep Java will giv

Installing npm modules globally without using sudo and updating npmrc to install on the specified folder

I wanted to install npm modules globally and it is not recommended to use sudo with it: And this question : npm / yeoman install generator-angular without sudo is the solution to it. I followed this echo prefix = ~/.node >> ~/.npmrc And add this to

Is it safe to run a ruby ​​script using sudo?

I am running redmine on Ubuntu, and I am running it using sudo. If I try to run as my redmine user, I get permission errors on the log file. Is this safe? Should I be concerned?You should be careful when running any sort of web application as root. P

Error: Running as root, do not use sudo with this script

I am sshing to a remote Pc as a root user. When I am trying to run the script with the command "bootstrap.sh", I get the following error. The bootstrap script needs to install a few packages to your system as an admin, and we will use the 'sudo'

Use sudo to edit the file in the root directory

I'm trying to write a script to configure resolv.conf and /etc/network/interfaces automatically. I'm running the commands as "sudo", but I'm getting "Permission denied" errors. sudo apt-get --assume-yes install vsftpd sudo "namese

shell script that uses sudo su-team and executes the rest command under this sudo access only

#!/bin/bash sudo su - team //// this will change user to team <somecommnand> here i have some command like sqlplus that run under this privilege only . but ,this script first asked for password then i give password but it not run rest of command lik

Text editor that can be edited using sudo over ssh?

I'm trying to edit files on a remote Amazon EC2 Linux instance. I'm currently just sshing in and using nano, but would really like a graphical text editor. I have two problems: I have to use sudo to edit these server files when I ssh in. I can only l

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK