Add User Problem


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Add User Problem
# 22  
Old 08-14-2008
Content of passwrd for "tt" user:
Code:
tt:x:1000:1011:,,,:/home/tt:/bin/bash

# 23  
Old 08-14-2008
Do you have console access? If so, what happens when you login at the console.

Joe

Quote:
Originally Posted by mjdousti
Didn't work and there was no info in /var/log/messages. I tried the SFTP and it also said:

"Server unexpectedly closed network connection."
# 24  
Old 08-14-2008
Yes, now I've only console access via SSH.
You can see what happened here:
https://www.unix.com/unix-advanced-ex...#post302224878
# 25  
Old 08-15-2008
You got some users that you can login with, you said.
So take your favourite editor and try to just yank & paste this line of that working user in /etc/passwd and edit the username and uid of the copied line to some fantasy value.
Set the password for this "new" user and try to connect.
You can just delete this line just when you made your test so nothing to worry about.
# 26  
Old 08-15-2008
I changed it to another working line:
Working:
Code:
someuser:x:30313:0::/home/someuser:/bin/sh

Not working:
Code:
tt:x:1000:1011:,,,:/home/tt:/bin/bash

The result line was:
Code:
tt:x:30313:0::/home/tt:/bin/sh

After that I could login with tt but the system recognize me az "someuser" not "tt". Which changes were extra?
# 27  
Old 08-15-2008
ssh running on the dest server... no issues here.. make sure the user "tt" is defined in the passwd and shadow file.. entries should be correct.

Last edited by incredible; 08-15-2008 at 07:03 AM.. Reason: wrong detail
# 28  
Old 08-15-2008
I wrote you should also take another UID than the one from the line you copied^^ Best would be one that isn't taken already.
It welcomes you as user "someuser" because the 1st entry it finds is the one with "someuser" having also the uid 30313.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

User add problem

I could not create the user name with the number infront of... useradd 8siva useradd: Invalid account name `8siva' (3 Replies)
Discussion started by: gsiva
3 Replies

2. UNIX for Advanced & Expert Users

adding new user problem?

I wan to add a new user. I have executed the following command. The user home directory is created. but password creation shows error. Note: I'm using LDAP Server for user authentication. adduser xxx Adding user `xxx' ... Adding new group `xxx' (1003) ... Adding new user `xxx' (1003) with... (2 Replies)
Discussion started by: ungalnanban
2 Replies

3. AIX

User creation problem

Hi, I am getting tired in creating several users in a day. Can anyone have a script to create several users in the same server, as well as, to create one user in several servers. where i have to put script and how to run the script. Waiting for your reply. Thanks in advance (5 Replies)
Discussion started by: udtyuvaraj
5 Replies

4. UNIX for Advanced & Expert Users

User login problem

Dear All, Plz help in unixware 7x only root user login & other user not login . message giving permission denied (3 Replies)
Discussion started by: sudhir69
3 Replies

5. Red Hat

sendmail user accounts problem

first of all I am Newbie to linux I confidured my sendmail -8.13 on RHEL5, but i have a problem regarding user accounts. How can I user access his account on remotely while all users exit on servers ? should i need to configure extra server to enable this .... And what is LDAP and can this... (1 Reply)
Discussion started by: sandy6573
1 Replies

6. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

7. Linux

USER login problem

Hi All I am facing a login issue actually on my local machine users are not suppose to login with there respective prompt on the machine. Access deneid login as: daya Sent username "daya" daya@10.10.0.3's password: Access denied daya@192.168.0.83's password: and even i am not suppose... (3 Replies)
Discussion started by: daya.pandit
3 Replies

8. HP-UX

create user problem

hello: before I am add user in Linux with " adduser" command . for example system(adduser zzf -p hello); and this command "-p" option is used to create "login password". now i do not find the "-p" option in " adduser " in hp unix os. and i should how to do ??? (3 Replies)
Discussion started by: phoenix_fei
3 Replies

9. UNIX for Dummies Questions & Answers

user creation problem

hello, Actually I want to create a user for our brower based custom application for the mail access from our mailserver(linux). I create user dummy and I granted all the privileages to dummy user and made dummy equivelent to root and if I tried to create a another user logging as dummy ... (1 Reply)
Discussion started by: jarkvarma
1 Replies

10. UNIX for Advanced & Expert Users

User Problem

On my small network some of my users are having trouble logging in. What's something that I can do to find out what's wrong? Are there any commands that I can run or files I can check? ,AP (4 Replies)
Discussion started by: Anthony
4 Replies
Login or Register to Ask a Question