0

besides opening ssh- is there a way to connect and read local users defined in a machine?

Edit - further info.

My goal is to actually run an analysis on my network - to find out which local accounts reside in which machine. the thing is that not all machines have ssh opened.

All the machines are part of my domain, and i have an administrative user and password in order to connect to the machines.

Thanks

  • Are you looking to administer machines in your charge or are you just looking for a way to hack your way into someone's machine without their knowledge? – Allan Nov 30 '17 at 13:30
  • I'm not trying to hack anyone. i'm trying to make a list of local accounts that might reside on our laptops, let's assume i have an administrator's password already, so where's the hacking here? – ArielB Nov 30 '17 at 14:30
  • 1
    Allan's question is a legitimate one. You should edit your question to include pertinent information about the ownership of, and administrative access to, these Macs. We're just trying to be cautious in an effort to prevent malicious and/or illegal activity. Some of us on AskDifferent have responsibilities for maintaining security on our machines and networks, and blanket question like yours ring warning bells. That's all. – IconDaemon Nov 30 '17 at 18:25
  • Allright, i've edited my question. – ArielB Dec 3 '17 at 8:36
  • Is there a specific reason why you can't open ssh on all machines? If you have admin access to all machines anyway this will make things much easier. – nohillside Dec 3 '17 at 13:30
-1

You can get a list of all macOS-accounts with

 dscl . list /Users | grep -v '_'

daemon, nobody, and root are system-defined accounts. So here you have the list of all local users.

  • The problem is that i need to do it remotely. – ArielB Dec 3 '17 at 8:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .