Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Others => Miscellaneous => Topic started by: sravanth.svk on April 15, 2006, 12:55:46 PM
-
hi to linux community
i want to know how to create a duplicate user with
the useradd -o option i.e, the syntax to add a user sss with the same uid as root and he should have the same group id even
-
Well.. syntax for useradd is as follow :
useradd [-c comment] [-d home_dir] [-e expire_date] [-f inactive_time] [-g initial_group] [-G group[,...]] [-m [-k skeleton_dir]] [-p passwd] [-s shell] [-u uid [ -o]] login
Now if want to create a user with similar UID as another then . you can do following..
useradd -u <UID HERE> -o <NEW USER NAME>
Ofcourse there are other options but what you are asking for must look as above.
but existing UID so that it can be assign to other user as well. Both user will be able to see each other's details and files etc.
-
thank u for ur ans.
u said ther r other ways even to make a duplicate user
can u even tell them
-
Creating duplicate user(UID) for root is not good.... as a Sys admin you can give Sudo permissions for normal users..
try with #visudo or vi /etc/sudoers
-
thank u for ur ans.
u said ther r other ways even to make a duplicate user
can u even tell them
I meant there that there are other options / arugments which can also be given .
-
thanks
:)