Re: how to crate new super user from terminal in fedora core 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jerin Jacob K wrote:
> Hi Yogesh
> 
> Create one use with adduser command
> 
> $adduser xyz
> $passwd xyz
> 
> open /etc/passwd
> 
> $vi /etc/passwd
> 	go to last line of passwd file
> 
> Change user id and groupd id to 0,0
> 	xyz:x:506:507::/home/xyz:/bin/bash
> 	      ^^^^^^ 	
> 		to
> 	xyz:x:0:0::/home/xyz:/bin/bash
> 
> 
useradd -u 0 -g 0 -o xyz

or

useradd -u 0 -g 0 -d /root -o xyz

>From man vipw:

The first gets its own home directory, the second shares /root as
its home directory. Also, if you are going to exit passwd, vipw is a
better command to use. Use vigr to edit the group directory.

Vipw edits the password file after setting the appropriate locks,
and does any necessary processing after the password file is
unlocked.  If the password file is already locked for editing by
another user, vipw will ask you to try again later. The default
editor for vipw is vi(1). Vigr edits the group file in the same
manner as vipw.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux