Skip to main content

1. Create new_user if not other existing user.

2. if you turned on auto login option, you need to disable that option and reboot then login to new_user created.

3. add new_user to the sudoers file.

4. Now you can use chmod command from new_user created.

Example: sudo usermod -l new_username -d /home/new_directory -m old_username