LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2015, 02:25 PM   #1
Cocolate
Member
 
Registered: Jul 2013
Location: I live in an igloo
Distribution: Hoping to fix my Internets! xD
Posts: 107

Rep: Reputation: Disabled
New User Account from TTY


I need to create a new admin account from the TTY interface.

I used this command:

Code:
sudo useradd -m username
I then created a password

The account was created but I am not able to login. After the password is entered I am brought back to the login screen.

Anyone please help. I am stuck on this and I really need to fix it.

Im on ubuntu 13.10
 
Old 07-09-2015, 02:31 PM   #2
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,591
Blog Entries: 15

Rep: Reputation: Disabled
Try
Code:
sudo passwd usersname
afterwords.
 
Old 07-11-2015, 02:12 PM   #3
Archy1
Member
 
Registered: Jan 2014
Distribution: Debian
Posts: 94

Rep: Reputation: 2
Check "/etc/passwd" and see what login shell the new user is assigned. Make sure it's not "false" or "nologin" or something of that sort.
 
Old 07-11-2015, 06:12 PM   #4
Aia
Member
 
Registered: Jun 2006
Posts: 66

Rep: Reputation: 21
As superuser check the logs for clues
/var/log/auth.log would let you know of the failure to login.

example of a failure to login for user ubuntu:
Code:
Jul 11 16:06:05 orome sshd[1079]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
Jul 11 16:06:20 orome sshd[1079]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=<ip_address_here>  user=ubuntu
Jul 11 16:06:22 orome sshd[1079]: Failed password for ubuntu from <ip_address_here> port 24362 ssh2
The red number inside the [] identify all these three lines as part of the same session attempt. In this case the password was not correct.

Last edited by Aia; 07-11-2015 at 06:17 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSH - How can I only allow a key pair login for my user account not root account? shanekelly Linux - Security 5 01-25-2013 10:45 AM
Prevent user account from logging in but allow su to account DejaCpp Linux - General 4 07-26-2006 12:44 PM
User Account to Access Another Account benfaust Linux - General 2 06-28-2006 01:26 PM
system account or user account??? yenonn Linux - Newbie 6 05-10-2006 08:49 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration