10-23-2007
su: user x does not exist
somehow my user names and groups on one of our machines are changed to numbers 700, 701, etc.
thus, i can only ssh into this machine as root.
is there a way to migrate the user names and groups to this machine?
thanks!
10 More Discussions You Might Find Interesting
1. Solaris
When trying to change the password with the command "passwd" it returns that the user does not exist.
passwd <USER>
passwd: changing password for <USER>
passwd: <USER> does not exist
This is a Solaris 2.5.1 system. (7 Replies)
Discussion started by: ryamada
7 Replies
2. UNIX for Advanced & Expert Users
I'm kinda new to unix programming so bear with me...
I'm running a script prompting a user for an existing user and group and want to be able to validate if they valid.
Is there any code available?
Any help or push in the right direction would help.
Thank you, (2 Replies)
Discussion started by: thedon
2 Replies
3. Linux
Hi All,
I changed the root user home directory to /home/root for some testing purpose, afterwards the logged user name its showing "I have no name" instead of root and also when we want to su to root its giving root user doesnot exist, so I tried to add the root user then its giving root user... (3 Replies)
Discussion started by: sasidarvarma
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am trying authenticate ssh users login using third party server (radius) instead of local system authentication.
I have modified my /etc/pam.d/sshd with required server auth configuration and able to authenticate user using radius server and the user is able to ssh into this linux... (2 Replies)
Discussion started by: dhandapanik
2 Replies
5. Red Hat
I am trying to install openmotif22-2.2.3-18.src.rpm,
after I typed in " rpm -i openmotif22-2.2.3-18.src.rpm"
the following message comes out:
warning: user owen does not exist - using root
warning: group owen does not exist - using root
I am install openmotif under root account.
Do... (2 Replies)
Discussion started by: fishwater00
2 Replies
6. UNIX for Dummies Questions & Answers
Hi there, normally if I want to remove a user tht I have added to a specific group, i would do the following
this is what my group2 looks like
# grep group2 /etc/group
group2:x:7777:user2,user1,user4
user1 has been defined in a few groups
# id -nG user1
group1 group2 group3
So... (3 Replies)
Discussion started by: rethink
3 Replies
7. Solaris
Hii all,
i create the user
useradd -d /home/kk kk
passwd kk
when i tried to login to kk
i get a error user directory doesn't exist
then i tried
useradd kkk
passwd kkkwhen i tried to login to kkk
i get the same error user directory doesn't exist. (4 Replies)
Discussion started by: vipinkumarr89
4 Replies
8. Shell Programming and Scripting
Hi, I want to write a script to check whether an user ID is used in my server and then create that user.
If the user ID is not used, I will echo something like "OK, continue" and then continue to execute the script. Else, I will echo something like "Used, exit" and then exit the script.
As... (4 Replies)
Discussion started by: dirkaulo
4 Replies
9. Shell Programming and Scripting
What I'm trying to do is write a script in Perl to find a user and if that user exist it would print "User Exist, Pls Try Again". If The user doesn't exist I'm able to create a user with a password.
Any suggestions? (3 Replies)
Discussion started by: GoBoyGo
3 Replies
10. UNIX for Beginners Questions & Answers
I have built a website and I can access and edit the website'files on server via the root user. The current file and directory structures are not changeable. Now I am hiring a webpage designer to help me re-design some pages, I am going to let the designer edit the files directly on the server. So... (5 Replies)
Discussion started by: uwo-g-xw
5 Replies
ID(1) BSD General Commands Manual ID(1)
NAME
id -- return user identity
SYNOPSIS
id [user]
id -A
id -G [-n] [user]
id -M
id -P [user]
id -g [-nr] [user]
id -p [user]
id -u [-nr] [user]
DESCRIPTION
The id utility displays the user and group names and numeric IDs, of the calling process, to the standard output. If the real and effective
IDs are different, both are displayed, otherwise only the real ID is displayed.
If a user (login name or user ID) is specified, the user and group IDs of that user are displayed. In this case, the real and effective IDs
are assumed to be the same.
The options are as follows:
-A Display the process audit user ID and other process audit properties, which requires privilege.
-G Display the different group IDs (effective, real and supplementary) as white-space separated numbers, in no particular order.
-M Display the MAC label of the current process.
-P Display the id as a password file entry.
-a Ignored for compatibility with other id implementations.
-g Display the effective group ID as a number.
-n Display the name of the user or group ID for the -G, -g and -u options instead of the number. If any of the ID numbers cannot be
mapped into names, the number will be displayed as usual.
-p Make the output human-readable. If the user name returned by getlogin(2) is different from the login name referenced by the user ID,
the name returned by getlogin(2) is displayed, preceded by the keyword ``login''. The user ID as a name is displayed, preceded by
the keyword ``uid''. If the effective user ID is different from the real user ID, the real user ID is displayed as a name, preceded
by the keyword ``euid''. If the effective group ID is different from the real group ID, the real group ID is displayed as a name,
preceded by the keyword ``rgid''. The list of groups to which the user belongs is then displayed as names, preceded by the keyword
``groups''. Each display is on a separate line.
-r Display the real ID for the -g and -u options instead of the effective ID.
-u Display the effective user ID as a number.
EXIT STATUS
The id utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
who(1)
STANDARDS
The id function is expected to conform to IEEE Std 1003.2 (``POSIX.2'').
HISTORY
The historic groups(1) command is equivalent to ``id -Gn [user]''.
The historic whoami(1) command is equivalent to ``id -un''.
The id command appeared in 4.4BSD.
BSD
September 26, 2006 BSD