1 votos

Cómo ejecutar .sh script de usb en el Terminal en Modo de Recuperación?

Soy un usuario novato. Me gustaría correr MacUserGenerator exportado secuencia de comandos de shell para crear una cuenta en un nuevo iMac sin manualmente haciendo esto en el proceso de seguimiento conjunto. No estoy seguro si esto es posible? El shell bash script está en mi memoria USB: usbName/Install/Scripts/createAccount.sh

Medidas Adoptadas:

  1. Arrancar en Modo de Recuperación

  2. Ejecute el siguiente:

    diskutil list
    diskutil mountDisk both usb stick and internal HD
    cd /Volumes/usbName/Install/Scripts/
    sh createAccount.sh
    
  3. El de arriba escupe:

    Print: Entry, ":_writers_UserCertificate", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":_writers_hint", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":_writers_jpegphoto", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":_writers_passwd", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":_writers_picture", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":_writers_realname", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":_writers_UserCertificate", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":authentication_authority", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":generateduid", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":gid", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":home", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":name", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":passwd", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":realname", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":shell", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":uid", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    Print: Entry, ":ShadowHashData", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    sed: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist: No such file or directory
    sed: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist: No such file or directory
    chmod: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist: No such file or directory
    Print: Entry, ":jpegphoto", Does Not Exist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    File Doesn't Exist, Will Create: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist
    sed: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist: No such file or directory
    sed: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist: No such file or directory
    sed: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist: No such file or directory
    sed: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist: No such file or directory
    sed: /private/var/db/dslocal/nodes/Default/users/esoadmin.plist: No such file or directory
    Print: Entry, ":DidSeeCloudSetup", Does Not Exist
    File Doesn't Exist, Will Create: /Users/esoadmin/Library/Preferences/com.apple.SetupAssistant.plist
    Print: Entry, ":DidSeeSiriSetup", Does Not Exist
    File Doesn't Exist, Will Create: /Users/esoadmin/Library/Preferences/com.apple.SetupAssistant.plist
    Print: Entry, ":DidSeeTouchIDSetup", Does Not Exist
    File Doesn't Exist, Will Create: /Users/esoadmin/Library/Preferences/com.apple.SetupAssistant.plist
    Print: Entry, ":LastSeenCloudProductVersion", Does Not Exist
    File Doesn't Exist, Will Create: /Users/esoadmin/Library/Preferences/com.apple.SetupAssistant.plist
    Print: Entry, ":LastSeenBuddyBuildVersion", Does Not Exist
    File Doesn't Exist, Will Create: /Users/esoadmin/Library/Preferences/com.apple.SetupAssistant.plist
    Print: Entry, ":DidSeePrivacy", Does Not Exist
    File Doesn't Exist, Will Create: /Users/esoadmin/Library/Preferences/com.apple.SetupAssistant.plist
    mkdir: /Users/esoadmin/Library/Preferences: Read-only file system
    chmod: /Users/esoadmin: No such file or directory
    chown: esoadmin: illegal user name
    chmod: /Users/esoadmin/Library: No such file or directory
    chown: esoadmin: illegal user name
    chmod: /Users/esoadmin/Library/Preferences: No such file or directory
    chown: esoadmin: illegal user name
    

Lo que está mal y cómo puedo solucionarlo?

1voto

12padams Puntos 36

Mi amigo, a primera vista, usted va a tener un problema con el archivo jerarquía, dado que no es el normal de volumen y de su estructura que el script ha hecho presunciones a utilizar.

Su sistema de archivos root en el modo de recuperación de un volumen diferente y no el normal, utilizados en condiciones normales de uso.

Es probable que sea mejor que en el modo normal, o arrancar en modo de usuario único y, a continuación, ejecutar la secuencia de comandos.

F.

AppleAyuda.com

AppleAyuda es una comunidad de usuarios de los productos de Apple en la que puedes resolver tus problemas y dudas.
Puedes consultar las preguntas de otros usuarios, hacer tus propias preguntas o resolver las de los demás.

Powered by:

X