[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Others  |  Miscellaneous  |  Topic: create user with duplicate UID
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: create user with duplicate UID  (Read 780 times)
0 Members and 1 Guest are viewing this topic.
sravanth.svk
Linux Noob !
*
Offline Offline

Posts: 13


View Profile
« on: April 15, 2006, 08:55:46 AM »

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
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2187


View Profile
« Reply #1 on: April 15, 2006, 01:03:07 PM »

Well.. syntax for useradd is as follow :
Code:
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..
Code:
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.
Logged
sravanth.svk
Linux Noob !
*
Offline Offline

Posts: 13


View Profile
« Reply #2 on: April 17, 2006, 06:50:23 AM »

thank u for ur ans.
u said ther r other ways even to make a duplicate user
can u even tell them
Logged
gadekishore
Linux Noob !
*
Offline Offline

Posts: 13


View Profile
« Reply #3 on: April 17, 2006, 07:37:53 AM »

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
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2187


View Profile
« Reply #4 on: April 17, 2006, 07:40:55 AM »

Quote from: "sravanth.svk"
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 .
Logged
sravanth.svk
Linux Noob !
*
Offline Offline

Posts: 13


View Profile
« Reply #5 on: April 18, 2006, 09:57:34 AM »

thanks
 Smiley
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Create a link on Desktop General Networking Support in Linux mliu 1 657 Last post July 21, 2004, 04:33:32 AM
by Ricky
How to make an oradinary user as a root user Miscellaneous pankaj4664 1 670 Last post November 24, 2005, 04:32:03 AM
by cyberjun
how to create DNS in Fedora 7 Linux Servers Support ashishraj 3 354 Last post June 27, 2007, 08:26:07 AM
by gauravbajaj
Duplicate adress (mac adress) detected ! General Networking Support in Linux pichel 2 353 Last post February 26, 2008, 07:14:24 PM
by pichel
remove duplicate lines in file Linux Development & Programming jack7974 0 245 Last post April 25, 2008, 12:09:28 AM
by jack7974
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 10, 2008, 02:48:44 PM

Login with username, password and session length
Navigation
Recent Discussions
[October 09, 2008, 05:17:47 PM]

[October 08, 2008, 04:32:08 AM]

[October 07, 2008, 05:16:33 AM]

[October 06, 2008, 03:09:51 AM]

[October 04, 2008, 03:33:03 AM]

[October 03, 2008, 06:21:18 AM]

[October 03, 2008, 05:31:19 AM]

[October 03, 2008, 05:28:14 AM]

[October 03, 2008, 05:27:13 AM]

[September 27, 2008, 12:09:47 PM]
Members
Total Members: 6098
Latest: kholik
Stats
Total Posts: 8202
Total Topics: 2223
Online Today: 12
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 9
Total: 9
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc