![]() OK, I may have misunderstood your question. Turn off screen sharing: sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off Sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -users short,usernames,seperated,by,commas -access -on -restart -agent -privs -all -allowAccessFor -specifiedUsersįind out more by running sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -hĮnable Remote Desktop via command line: sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all ![]() To add/enable Remote Management for only specific users (Add VNC flags from ghoppe's answer if you want VNC): (The last bit is thanks to Reed Stoner on ) (replace USERNAME with short username as well) read /Users/USERNAME GeneratedUID | cut -d " " -f 2` (replace USERNAME with the short username of the user) as well as: sudo dscl. To add the user you need to run: sudo dscl. If not, then we need to give the user access. If the returned value says _ssh-disabled then all users have SSH access. ![]() (Controlled using dscl)įirst off run dscl. ![]() SSH access by users is controlled by the local copy of Directory Services.
0 Comments
Leave a Reply. |