You are not logged in.
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
Have you tried to log in using 'su arch'?
Offline
Where are you logging in from? The TTY? GDM? Slim?
Offline
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 packages • Zsh and other configs
Offline
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
i am loging in from tty1
Offline
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
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
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
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
Please show
grep arch /etc/shadow
Offline
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)
Offline
Offline
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.
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
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
Is this btrfs? Did you install into a subvolume?
ext4
Offline
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
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
will editing fstab can cause problem in login issue
i made some changes in itI'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
Your /etc/shadow doesn't show the user "arch".
Offline
Your /etc/shadow doesn't show the user "arch".
i created another account named kiru
Offline
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
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:
Does the directory "/home/arch" exist?
What are the permissions on that directory?
Offline
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