Answer» How will anybody create a user in UNIX with privilage and environment similar to 'root'?
Regards, TACThe 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).Note to the unwary: don't EVER do this.
|