how to remove administrator permission

How to Remove Administrator Permissions

By Nicole Clark
AD

Controlling user access and permissions is crucial for maintaining system security and efficiency. Sometimes, you might want to remove administrator permissions from a user account to restrict overly broad access rights. Here's a step-by-step guide on how to do this across three popular operating systems: Windows, macOS, and Linux.

Before proceeding, ensure you're logged in with an administrative account and understand that removing admin rights may limit the user's ability to perform certain tasks. Let's dive into the process.

Windows

Windows provides a straightforward process to remove admin permissions using the Local Users and Groups Management tool.

AD
Give Admin Permission/Rights to User in Windows 11/10
Give Admin Permission/Rights to User in Windows 11/10
How to Get Admin Rights on Windows
How to Get Admin Rights on Windows
Fix Because an App is Obscuring a Permission Request – Dark‑Themed Android Guide
Fix Because an App is Obscuring a Permission Request – Dark‑Themed Android Guide

First, open the Run dialog box by pressing Win + R, then type lusrmgr.msc and press Enter. Navigate to the Users folder, right-click on the user account you want to modify, and select 'Properties'.

Edit User Properties

In the Properties window, uncheck the box next to 'User must change password at next logon' and 'Password never expires'. Ensure the 'Full name' and 'Description' fields are filled out for better identification.

You'll need to provide administrator permission to copy this file or folder
You'll need to provide administrator permission to copy this file or folder
How to Remove a User from a Group in Linux? – A Complete Guide
How to Remove a User from a Group in Linux? – A Complete Guide

Remove Administrative Privileges

Click on the 'Member Of' tab and you'll see a list of groups the user is a member of. If the user is part of the 'Administrators' group, click on it and then click 'Remove'. Click 'OK' to save changes and exit the window.

macOS

macOS handles user permissions slightly differently, using the System Preferences to manage users with administrative privileges.

AD

Open System Preferences, click on 'Users & Groups', and then click on the lock icon at the bottom to make changes. Enter your admin credentials when prompted.

Change User Role

Select the user for whom you want to remove admin permissions and change their 'User role' from 'Admin' to either 'Standard' or 'Share Only'. If you change the role to 'Standard', the user will need your admin password to make changes. If you change it to 'Share Only', the user can only log in at the login window and will require an admin user to unlock the system.

Remove Administrator Access

To completely remove administrative access, ensure the user role is set to either 'Standard' or 'Share Only' and uncheck the box next to 'Allow user to administer this computer'. Click 'OK' to apply changes.

AD

Linux (Ubuntu)

In Linux, specifically Ubuntu, you can use the sudo command to manage user permissions. We'll use the 'visudo' command to edit the sudoers file and remove admin privileges.

Open a terminal and type sudo visudo -f /etc/sudoers to launch the sudoers file in the default text editor (usually nano or vim). Locate the line that reads your_user_name ALL=(ALL:ALL) ALL and ensure it's present. This line grants all permissions to the specified user.

Restrict User Permissions

Comment out the line by adding a ' #' symbol at the beginning to prevent the user from obtaining root privileges. You can also restrict the user to specific commands using the directive ливо command. For example, to allow the user to run only the apt-get command, place the following line: your_user_name ALL=(ALL) SETENV: ALL, !root

AD

Save and Exit

In nano, press Ctrl + X, then Y to save changes, and finally Enter to exit. In vim, press Esc, then type :wq and press Enter.

Removing administrator permissions can help strengthen your system's security and protect it from potential misuse. Now that you know how to perform this task on various operating systems, you can easily manage user access and permissions as needed.

AD