Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > uk.comp.sys.mac > #142252

Creating user remotely

From richard@cogsci.ed.ac.uk (Richard Tobin)
Newsgroups uk.comp.sys.mac
Subject Creating user remotely
Date 2020-03-24 11:11 +0000
Organization Language Technology Group, University of Edinburgh
Message-ID <r5cptt$qak$1@macpro.inf.ed.ac.uk> (permalink)

Show all headers | View raw


I have a Mac in a building that I do not and will not have access to
while the current situation continues, and I want to ensure that it
can be restarted if it crashes or there is a power cut.  Hopefully
there will be someone who can physically access it in such
circumstances.

The Mac has Filevault installed so it needs someone to log in to boot
it.  I therefore want to - remotely - create a new admin user with a
password I can supply in an emergency.

On the basis of various web pages about this, I have done the following:

  sudo dscl . -create /Users/emergency
  sudo dscl . -create /Users/emergency UserShell /bin/bash
  sudo dscl . -create /Users/emergency RealName "Emergency login"
  sudo dscl . -create /Users/emergency UniqueID "26099"
  sudo dscl . -create /Users/emergency PrimaryGroupID 20
  sudo dscl . -create /Users/emergency NFSHomeDirectory /Users/emergency
  sudo dscl . -passwd /Users/emergency XXXXXXX
  sudo dscl . -append /Groups/admin GroupMembership emergency
  sudo dscl . -create /Users/emergency PrimaryGroupID 80

Should I also create the directory /Users/emergency?  Is there anything
essential that must go in it?

And of course, will this be sufficient to let the user boot the machine?

-- Richard

Back to uk.comp.sys.mac | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Creating user remotely richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-03-24 11:11 +0000
  Re: Creating user remotely Theo <theom+news@chiark.greenend.org.uk> - 2020-03-24 12:49 +0000
    Re: Creating user remotely richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-03-24 17:43 +0000
      Re: Creating user remotely Graham J <nobody@nowhere.co.uk> - 2020-03-24 20:14 +0000
        Re: Creating user remotely Tim Streater <timstreater@greenbee.net> - 2020-03-24 21:49 +0000

csiph-web