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


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

Re: Creating user remotely

From richard@cogsci.ed.ac.uk (Richard Tobin)
Newsgroups uk.comp.sys.mac
Subject Re: Creating user remotely
Date 2020-03-24 17:43 +0000
Organization Language Technology Group, University of Edinburgh
Message-ID <r5dgsi$166m$1@macpro.inf.ed.ac.uk> (permalink)
References <r5cptt$qak$1@macpro.inf.ed.ac.uk> <vrB*9bONx@news.chiark.greenend.org.uk>

Show all headers | View raw


In article <vrB*9bONx@news.chiark.greenend.org.uk>,
Theo  <theom+news@chiark.greenend.org.uk> wrote:

>Richard Tobin <richard@cogsci.ed.ac.uk> wrote:
>>   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?

>I'd assume you would, because a login will try to launch a shell in your
>home directory.  If you don't have a home directory it might fail.

But it won't be able to find out that the home directory is missing
until it has unlocked the disk, and failing after that doesn't matter.

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

>I don't know MacOS well enough, but I'd assume you'd need to get 'emergency'
>to generate a key and encrypt a copy of the disc's key with it.  That would
>allow someone who can login as 'emergency' to derive the disc encryption key
>and so decrypt the disc.  I don't know how that works in MacOS, so this is
>based on the experience of LUKS in Linux.

I suspect that something like "fdesetup add" needs to be run.

But fortunately I was able to get physical access to the machine
before the building was secured, and created a user in the usual
way, so I guess I don't need to find out for now.

-- Richard

Back to uk.comp.sys.mac | Previous | Next — Previous in thread | 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