Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

created admin user and can login without password #15

Description

@echoparkbaby

I created an ladmin user using the python method. (Saving as a pkg file didn't work. It wouldn't save the file in the directory. Nothing ever appeared)
Anyway, I ran the script in 10.13.6 under another admin account. It created the user, but I was allowed to login to the ladmin user without a password. Logged out to login screen, clicked "ladmin" and was signed right in.

Last login: Tue Sep 24 21:37:11 on console
tests-MacBook-Pro:~ test$ cd ~/Desktop/
tests-MacBook-Pro:Desktop test$ chmod +x ladmin.py 
tests-MacBook-Pro:Desktop test$ sudo ./ladmin.py 
Password:
User account 'ladmin' does not exist, continuing...
User ID '510' does not exist, continuing...
User account 'ladmin' created via Open Directory
User account 'ladmin' updated attribute _writers_picture: ladmin
User account 'ladmin' updated attribute shell: /bin/bash
User account 'ladmin' updated attribute name: ladmin
User account 'ladmin' updated attribute generateduid: B1D35546-DDB9-45A6-80AB-4DB16299769C
User account 'ladmin' updated attribute passwd: ********
User account 'ladmin' updated attribute _writers_jpegphoto: ladmin
User account 'ladmin' updated attribute ShadowHashData: DATA
User account 'ladmin' updated attribute jpegphoto: DATA
User account 'ladmin' updated attribute _writers_realname: ladmin
User account 'ladmin' updated attribute _writers_hint: ladmin
User account 'ladmin' updated attribute gid: 20
User account 'ladmin' updated attribute authentication_authority: ;ShadowHash;HASHLIST:<SALTED-SHA512-PBKDF2>
User account 'ladmin' updated attribute uid: 510
User account 'ladmin' updated attribute home: /Users/ladmin
User account 'ladmin' updated attribute _writers_UserCertificate: ladmin
User account 'ladmin' updated attribute IsHidden: FALSE
User account 'ladmin' updated attribute _writers_passwd: ladmin
User account 'ladmin' updated attribute realname: Local Admin
User account 'ladmin' admin privileges Granted
creating home directories for (tests-MacBook-Pro.local)
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
created (/Users/ladmin)
User account 'ladmin' home directory created
User account 'ladmin' skipped Setup Assistant
Restarted Directory Services
tests-MacBook-Pro:Desktop test$ 

Tried pycreateuserpkg and it worked. Really like your project tho and hope you can find the bug. :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions