Posted on 08-24-2020 12:07 PM
[Remote MacOS Catalina machine accessed via SSH]
Hi, I've created a new user via the command line (SSH), and though the new user is able to log in, the user's home directory has no pre-defined folders (as is the case for users added via the GUI).
So, I've tried using sudo /usr/sbin/createhomedir -c -u UserName
but that didn't do anything.
Can someone please help me with the right command to do this? Thanks.
Posted on 08-24-2020 12:16 PM
@nap How did you create the user account? sysadminctl
is the preferred tool these days (unless you're dealing with something older than Sierra), or you could use the createAccount
option with the jamf
binary.
Posted on 07-11-2024 07:31 AM
Hi, this is the command i used.
sudo sysadminctl -addUser admin -fullName "Admin" -password password -home /Users/admin -shell /bin/zsh -admin
Posted on 07-11-2024 07:32 AM
Hi, I used the following:
sudo sysadminctl -addUser admin -fullName "Admin" -password password -home /Users/admin -shell /bin/zsh -admin