This repository was archived by the owner on Jun 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Copy link
Copy link
Open
Description
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. :)
Metadata
Metadata
Assignees
Labels
No labels