You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Cannot remove Unknown User

Hi just noticed in (OS X Mountain Lion) System Preferences, Sharing, Screen Sharing: I have a 'Unknown User' and too 2 'Unknown User' in the Remote Login.

See screen shots... got any ideas? (note clicking "–" does not remove the "Unknown User" they are stuck, hence my posting)


thanks



User uploaded file


User uploaded file

Mac Pro, OS X Mountain Lion

Posted on Aug 2, 2012 7:30 AM

Reply
39 replies

Sep 29, 2012 1:27 PM in response to concretenz

Thank you for your solution to removing the Unknown user in Screen Sharing System Preferences.

It worked perfectly.


I would like to add for others following this discussion that one does not need OS X server or the Server Admin Tools in order to access Workgroup Manager. Just download Workgroup Manager 10.8 from Apple Support.


Here are some more detailed instructions for using Workgroup Manager for those not familar with this tool which is not included in Mountain Lion OS X.


Install Workgroup Manager.


To have Workgroup Manager work independently of Server or a network connection do the following:

On the signin screen enter the IP address: of the machine you are working on.

Then enter the username and password of the machine.

Workgroup Manager will then work in standalone mode with your Mountain Lion OS X.


In the Workgroup Manager file menu navigate to View and turn on Show System Records

then select Accounts in the top icon bar menu

then in the tab bar below on the left select the icon with three people which will show below it group name.


In the list below on the left select Screen Sharing ACL (GID 401).

Then in the large box on the right select the members tab and you will see the unknown user(s) listed.

Select the unknown user(s) to be deleted and hit the minus ➖ button on the right.

Then hit the Save button below.

Exit Workgroup Manager and you will find your unknown user(s) will no longer appear in System Preferences Sharing.

Feb 25, 2013 10:16 PM in response to concretenz

Directory Utility is on your Mac already and can do this:





From the Finder use the "Go" menu and click "Go to Folder..." or use Command + Shift + G

Paste this in:



/System/Library/CoreServices/Directory Utility.app



 FIrst Find the Users you still use:


On the left sidebar you can find your users and their GeneratedUID is the field you are looking for on the right when you click on each user.



 Copy/Paste the UIDs of each user you use to a Stickie or somewhere you can paste text for a moment.



We want to note them so we don't delete the wrong one, although I am not sure that would really hurt anything. You could probably just go back in manually and add what you want.



 Finding the groups:



Up near the top toolbar you will see a couple drop down menus completing a sentence that says "Viewing <Users> in node </Local/Default>",



 Change "Users" to groups, click the lock and authenticate as an admin user.



Choose either "Remote Login ACL" or "Screen Sharing ACL" from the left and delete out the entries you didn't save before in the copy/paste. Don't forget to change both the "GroupMembers" and the "GroupMemebership".



 Click "Save" and you are done!



(If anyone really wants the command line way to work, try com.apple.access_screensharing instead of com.apple.access_ssh, although I really recommend some sort of GUI for this unless you are familiar with such things and were just looking for the right file.



Edit: Oh and check "SharePoints" instead of "Groups" if you are having this issue on a shared folder. The folder will list the groupID but also the groupName, which may be the folder name, on mine it was not but likely because of a rename or copy. Then swicth back to Groups and find the group, repeat the steps from clicking the lock and on.

Mar 1, 2013 10:43 PM in response to garyMacPro

Again, I'm with you on all the steps. But when I get to the Members list for Screen Sharing ACL, I don't see "unknown user" there, I see "Not Found" instead (even though I have unknown user in Screen Sharing in System Preferences. Moreover, even if it were there, I couldn't delete it because all the Members are greyed out. So I can't select them to delete one. Ideas? Thx

Mar 1, 2013 10:52 PM in response to Rick Fernandez1

Any kind of lock icon or anything? Are you an Admin? Usually with things like this you need to be an Admin and/or click a lock to be able to make changes. There is a few different "Unknown Users" that I have found. You should be fine removing it but never a bad idea to back up first. If you still have problems with that app try my instructions on the bottom of this page.

Jul 16, 2013 4:48 PM in response to Mymi.F

I have some decent instructions at the bottom here that can maybe help you accomplish your task. It doesn't mean that someone has access to your computer, to set your mind at ease about that. The unknown user occurs because the user existed at one time and was removed leaving a blank entry in the database with no name. If you still have troubles after following my instructions at the bottom, let me know and we will try and find a creative way for you to get hands on help.

Cannot remove Unknown User

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.