2

I've been doing a Jamf now roll out, but have mucked up the user account by using this terminal command:

sudo dseditgroup -o edit -d UserName -t user admin

Which basically made the admin account switch to a standard user account.

I now need to revert back the standard user account to admin, but am struggling to find the terminal command that works to revert back.

3 Answers 3

0

You can use the same command.

sudo dseditgroup -o edit -a insertusernamehere -t user admin
2
  • 3
    How can a standard user run sudo?
    – nohillside
    Aug 15, 2023 at 17:17
  • You need to boot to single-user mode to do this if there's no user with sudo access.
    – Barmar
    Aug 15, 2023 at 20:48
0

If you have no other admin account, the steps to create a new one include:

  • Pushing a new admin user via jamf
  • Potentially booting to recovery based on what exact version of macOS and what hardware is running
  • Making a backup (or validating the backup is complete) and erase/install/restore from backup.
  • Using another Mac and target disk mode or share disk mode to migrate the data onto a new Mac.

There is no undo for group changes and you’ll need another admin user to reverse the change on this OS with sudo.

0

I would also look at Privileges for macOS.

It is designed to allow users to work as a standard user for day-to-day use, and provides a quick and easy way to get administrator rights when needed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .