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!

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux