Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Creating user similar to root  (Read 7726 times)

0 Members and 1 Guest are viewing this topic.

TAC

  • Guest
Creating user similar to root
« on: July 20, 2005, 06:59:12 AM »
How will anybody create a user in UNIX with privilage and environment similar to 'root'?

Regards,
TAC

ldslourdes

  • Guest
Re: Creating user similar to root
« Reply #1 on: August 07, 2006, 01:25:00 PM »
The following is for Linux. It may or may not work for Unix. Try it and see.

Method #1: if user already created
syntax:
Step 1. Type     vi /etc/passwd
Step 2. Scroll down to username and change the following to a 0 (zero):

username:x:uid:gid::/etc/home:/bin/bash

Step 3. Hit the ESC button, then hit the key combination Shift:, then type wq!, then hit the enter button.

[size=18]"Note"[/size]
Be careful. If you make a mistake, just hit the ESC button, then hit the key combination Shift:, then type q!, then hit the enter button. Then begin at step 1 again.
 

Method #2: if user not yet created
syntax:
adduser -o -u 0 username
the letter o is for override and the number 0 is to set the uid to zero like the root's uid(user id).
« Last Edit: August 07, 2006, 01:26:38 PM by ldslourdes »

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: Creating user similar to root
« Reply #2 on: August 07, 2006, 03:14:53 PM »
Note to the unwary: don't EVER do this.  :)
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos