Skip to main content
Question

remote login disabling using profiles

  • December 11, 2023
  • 4 replies
  • 168 views

Forum|alt.badge.img+3

hello all, does anyone know how to disable remote login using a profile/policy 

4 replies

Forum|alt.badge.img+8
  • Contributor
  • December 11, 2023

The terminal command for disabling remote login is:

sudo systemsetup -f -setremotelogin off

So you should be able to create a policy with that line in Files and Processes > Execute Command to disable remote login on a computer.

 


Forum|alt.badge.img+8
  • Contributor
  • December 11, 2023

The terminal command for disabling remote login is:

sudo systemsetup -f -setremotelogin off

So you should be able to create a policy with that line in Files and Processes > Execute Command to disable remote login on a computer.

 


(Except no sudo, since Jamf is executing as root already.)


AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • December 12, 2023

The command @mdp should get the job done. However using the enable/disable Remote Desktop MDM command in under the Macs inventory record > Management > Management Commands is much faster. You can also issue the MDM command as a mass action.

 

 


Forum|alt.badge.img+1
  • New Contributor
  • March 1, 2024

I have a similar need to the OP and found this thread. Thanks so much!

I am going to assume from this that there isn't a config profile method that can be utilized to limit the removal?