You are not logged in.

#1 2014-01-01 17:20:32

kiru
Member
Registered: 2013-12-29
Posts: 40

[SOLVED]cannot login to newly created user account

i created a new user named arch using following command

useradd -m -g users -G wheel -s /bin/bash arch

when i give the password and press enter login appeares again

i can login as root but cannot login as arch

i can change password of user using passwd

but cannot login

Please help

Last edited by kiru (2014-01-03 21:14:19)

Offline

#2 2014-01-01 17:46:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]cannot login to newly created user account

Have you tried to log in using 'su arch'?

Offline

#3 2014-01-01 18:03:57

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED]cannot login to newly created user account

Where are you logging in from? The TTY? GDM? Slim?

Offline

#4 2014-01-01 18:07:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED]cannot login to newly created user account

I suspect you're changing the root password.  Log in as root then su to the arch user like this and then run the passwd cmd:

# su - arch
$ passwd

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2014-01-02 04:42:45

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

when i type

#su - arch

output is like this
su: warning: cannot change directory to /home/arch: Permission denied
su: failed to execute /bin/bash: Permission denied

Offline

#6 2014-01-02 04:43:21

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

i am loging in from tty1

Offline

#7 2014-01-02 04:46:23

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

if i give the wrong password ,it says that password incorrect
when i type the correct password tty blinks and new login appears not error is displayed

Offline

#8 2014-01-02 07:12:12

Frefreak
Member
Registered: 2013-12-18
Posts: 24

Re: [SOLVED]cannot login to newly created user account

One time when I modified the $PATH in /etc/profile with incorrect syntax, I re-logined and encountered the same behavior as yours, and fixing that file solved this. Have you ever done something similar to that?

Offline

#9 2014-01-02 07:35:41

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

no

# /etc/profile

#Set our umask
umask 022

# Set our default path
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
export PATH

# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
    for profile in /etc/profile.d/*.sh; do
        test -r "$profile" && . "$profile"
    done
    unset profile
fi

# Source global bash config
if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then
    . /etc/bash.bashrc
fi

# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP

# Man is much better than us at figuring this out
unset MANPATH

Offline

#10 2014-01-02 12:41:53

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]cannot login to newly created user account

Is this btrfs? Did you install into a subvolume?

Offline

#11 2014-01-02 14:48:37

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED]cannot login to newly created user account

kiru wrote:

when i type

#su - arch

output is like this
su: warning: cannot change directory to /home/arch: Permission denied
su: failed to execute /bin/bash: Permission denied

Does the directory "/home/arch" exist?

What are the permissions on that directory?

Offline

#12 2014-01-02 20:50:24

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED]cannot login to newly created user account

Please show

grep arch /etc/shadow

Offline

#13 2014-01-03 03:47:09

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [SOLVED]cannot login to newly created user account

teateawhy wrote:

Please show

grep arch /etc/shadow

Actually, you probably shouldn't post the hash part (everything between the first and second colons).

Last edited by Stebalien (2014-01-03 03:47:19)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#14 2014-01-03 03:51:52

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]cannot login to newly created user account

I don't see why any of it needs posting. This is unlikely to be an account problem if the OP is even unable start a login session via su from root (i.e. no password needed).

Last edited by falconindy (2014-01-03 03:52:05)

Offline

#15 2014-01-03 10:45:18

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED]cannot login to newly created user account

Stebalien wrote:

Actually, you probably shouldn't post the hash part (everything between the first and second colons).

Yes, i should have given a warning, however i suspected, that there is a "!" instead of the hash.

falconindy wrote:

I don't see why any of it needs posting. This is unlikely to be an account problem if the OP is even unable start a login session via su from root (i.e. no password needed).

Right.

Offline

#16 2014-01-03 14:34:01

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

this is my  /etc/shadow file
kiru is my username

root:$6$DeATqJWE$31RNHN9EbCig9v4trcBMevOCkUuM.zR5FVPExrBpkkvd82kfCTN4MM0SjCUQ52e785MXEJUUb1Q6wKMmmAzBs.:16071::::::
bin:x:14871::::::
daemon:x:14871::::::
mail:x:14871::::::
ftp:x:14871::::::
http:x:14871::::::
uuidd:x:14871::::::
dbus:x:14871::::::
nobody:x:14871::::::
kiran:$6$jmy6pVsl$Bw3prC1s5uVKobxnbCs2AniXLqNPyLsnOp7XRGHa8SMH/Msr0X1K9M8GhWHItDdE0KUsXn94zW97hD2mUL6ds1:16071:0:99999:7:::
kiru:$6$jZgUdTT2$8gupleGhDaHZTAzzfnwMgSabqVk5P/V/lg.9GH4clt3AMiz52rce0dYZ4V8dAvGl/nHiKIi/Pi8cA2TCC2Uqo0:16072:0:99999:7:::

Last edited by kiru (2014-01-03 14:36:32)

Offline

#17 2014-01-03 14:40:47

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

falconindy wrote:

Is this btrfs? Did you install into a subvolume?

ext4

Offline

#18 2014-01-03 14:45:11

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

will editing fstab can cause problem in login issue
i made some changes in it

I'M STILL STUCK IN LOGIN
CAN I GO FORWARD ONE DAY
PLEASE HELP

Offline

#19 2014-01-03 14:48:23

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

falconindy wrote:

I don't see why any of it needs posting. This is unlikely to be an account problem if the OP is even unable start a login session via su from root (i.e. no password needed).

i cannot login from login prompt and via su from root

Offline

#20 2014-01-03 14:51:07

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

kiru wrote:

will editing fstab can cause problem in login issue
i made some changes in it

I'M STILL STUCK IN LOGIN
CAN I GO FORWARD ONE DAY
PLEASE HELP

this is my fstab file

#
# /etc/fstab: static file system information
#
# <file system>    <dir>    <type>    <options>    <dump>    <pass>

# /dev/sda6 LABEL=Arch
UUID=3267f473-c0d3-4917-a356-f8887cb2b872    /             ext4          rw,relatime,data=ordered    0 1

# /dev/sda8
UUID=8d9c8312-27c0-46b8-acb8-447fa0ca15aa    /home         ext4          rw,relatime,data=ordered    0 2

Offline

#21 2014-01-03 14:53:44

Andreaskem
Member
Registered: 2013-10-13
Posts: 67

Re: [SOLVED]cannot login to newly created user account

Your /etc/shadow doesn't show the user "arch".

Offline

#22 2014-01-03 14:57:39

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

Andreaskem wrote:

Your /etc/shadow doesn't show the user "arch".

i created another account named kiru

Offline

#23 2014-01-03 14:58:12

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

kiru wrote:
Andreaskem wrote:

Your /etc/shadow doesn't show the user "arch".

i created another account named kiru

kiran i another user account in ubuntu

Offline

#24 2014-01-03 15:02:28

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED]cannot login to newly created user account

kiru wrote:

kiran i another user account in ubuntu

Why is there an Ubuntu account in your Arch Linux configuration?

Also, you didn't answer my very important questions:

drcouzelis wrote:

Does the directory "/home/arch" exist?

What are the permissions on that directory?

Offline

#25 2014-01-03 15:05:13

kiru
Member
Registered: 2013-12-29
Posts: 40

Re: [SOLVED]cannot login to newly created user account

drcouzelis wrote:
kiru wrote:

kiran i another user account in ubuntu

Why is there an Ubuntu account in your Arch Linux configuration?

Also, you didn't answer my very important questions:

drcouzelis wrote:

Does the directory "/home/arch" exist?

What are the permissions on that directory?

drwx------  2  1001 users  4096 Jan  2 18:46 kiru

Offline

Board footer

Powered by FluxBB