Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Create a USER Account with ROOT Privileges

Featured Replies

Use the following commands to create the new user dennis, grant him the same privileges as root and set him a password :



# useradd -ou 0 -g 0 dennis
# passwd dennis

Perhaps you already have some user dennis and you would like to give root permissions to a normal user.



# grep dennis /etc/passwd
dennis:x:1001:1001::/home/dennis:/bin/sh

Edit /etc/passwd file and grant root permissions to the user dennis by changing User and Group IDs to UID 0 and GID 0 :



# $ grep dennis /etc/passwd
dennis:x:0:0::/home/dennis:/bin/sh

You won't be able to delete second root user with another UID 0 using userdel command.



# userdel dennis
userdel: user dennis is currently used by process 1

To delete user dennis with UID 0, open /etc/passwd file and change dennis's UID.


For example, change the line :



dennis:x:0:0::/home/dennis:/bin/sh

to



dennis:x:1111:0::/home/dennis:/bin/sh

Now, you'll be able to delete user dennis with userdel command (as shown above)


 


  • Author

Curious why you just don't run





/usr/sbin/visudo


Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.