You are not logged in.

#26 2014-01-03 15:06:43

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

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

kiru wrote:
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

i use common /home directory for arch and ubunutu

Offline

#27 2014-01-03 17:00:55

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

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

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

i use common /home directory for arch and ubunutu

The owner of the "/home/kiru" directory is user number "1001". That's probably the user ID of your username in Ubuntu.

If you just want to fix the ownership of that directory in Arch Linux, then use the "chown" command to recursively change the ownership to "kiru:users".

If you want to use this home directory for both Ubuntu and Arch Linux (which I think is a very bad idea), then I think you need to change the user ID of "kiru" in the "/etc/passwd" file to match the user ID in Ubuntu.

...I think fixing the ownership of the "/etc/kiru" by using either of the two methods above will allow you to log in. smile

Offline

#28 2014-01-03 18:35:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

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

kiru wrote:
kiru wrote:
drcouzelis wrote:

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

i use common /home directory for arch and ubunutu


You might have mentioned that at the beginning of the thread...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#29 2014-01-03 18:53:07

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

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

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

i use common /home directory for arch and ubunutu

The owner of the "/home/kiru" directory is user number "1001". That's probably the user ID of your username in Ubuntu.

If you just want to fix the ownership of that directory in Arch Linux, then use the "chown" command to recursively change the ownership to "kiru:users".

If you want to use this home directory for both Ubuntu and Arch Linux (which I think is a very bad idea), then I think you need to change the user ID of "kiru" in the "/etc/passwd" file to match the user ID in Ubuntu.

...I think fixing the ownership of the "/etc/kiru" by using either of the two methods above will allow you to log in. smile

the ownership info that i pasted was taken while using ubuntu so it was shown as 1001
in arch linux it is shown as kiru itself

as you mentioned i changed ownership result is same

are you sure the problem is with home directory

Offline

#30 2014-01-03 18:54:12

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

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

jasonwryan wrote:
kiru wrote:
kiru wrote:

i use common /home directory for arch and ubunutu


You might have mentioned that at the beginning of the thread...

the owner of /home/kiru was kiru itself

are you sure the problem is with home directory

Offline

#31 2014-01-03 18:56:08

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

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

before using archlinux i shared common directory for ubunut and debian and there was no problem

Offline

#32 2014-01-03 18:57:04

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

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

GAAAAAAAH! No, I have no idea what the problem is because you keep changing between the "arch" user and the "kiru" user and Ubuntu and Arch Linux!

If you want further help, answer all of our questions again from Arch Linux.

Offline

#33 2014-01-03 19:04:36

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

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

drcouzelis wrote:

GAAAAAAAH! No, I have no idea what the problem is because you keep changing between the "arch" user and the "kiru" user and Ubuntu and Arch Linux!

If you want further help, answer all of our questions again from Arch Linux.

since i cannot login login to arch linux i am browsing from ubuntu so each time i have to restart my laptop, please forgive me

Offline

#34 2014-01-03 19:09:21

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

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

i have two os in my laptop one ubuntu and one is archlinux
i share common home folder /home
my username in archlinux : kiru
file permission of /home/kiru is like this

drwx------  2  kiru users  4096 Jan  4 19:36 kiru

Offline

#35 2014-01-03 19:12:10

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

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

kiru wrote:

since i cannot login login to arch linux i am browsing from ubuntu so each time i have to restart my laptop, please forgive me

I forgive you. smile

The reason (in my opinion) that sharing a home directory between Arch Linux and Ubuntu is a very bad idea is because different versions of software will be writing configuration files to the same directories. Maybe it will cause a problem and maybe it won't. I'd rather not have to guess. wink

Sharing all of your personal files (documents, pictures, music...) between operating systems is no problem.

Offline

#36 2014-01-03 19:13:59

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

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

kiru wrote:

i have two os in my laptop one ubuntu and one is archlinux
i share common home folder /home
my username in archlinux : kiru
file permission of /home/kiru is like this

drwx------  2  kiru users  4096 Jan  4 19:36 kiru

That looks good. Please show the "/etc/passwd" and "/etc/shadow" files from Arch Linux.

EDIT: You don't have to boot into Arch Linux to look at those files! wink

Last edited by drcouzelis (2014-01-03 19:14:56)

Offline

#37 2014-01-03 19:16:42

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

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

drcouzelis wrote:
kiru wrote:

since i cannot login login to arch linux i am browsing from ubuntu so each time i have to restart my laptop, please forgive me

I forgive you. smile

The reason (in my opinion) that sharing a home directory between Arch Linux and Ubuntu is a very bad idea is because different versions of software will be writing configuration files to the same directories. Maybe it will cause a problem and maybe it won't. I'd rather not have to guess. wink

Sharing all of your personal files (documents, pictures, music...) between operating systems is no problem.

cofiguration files resides in users file inside home directory they are not shared and the use of /home directory is to share it between os and while reinstallation,my guess

Offline

#38 2014-01-03 19:21:55

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

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

drcouzelis wrote:
kiru wrote:

i have two os in my laptop one ubuntu and one is archlinux
i share common home folder /home
my username in archlinux : kiru
file permission of /home/kiru is like this

drwx------  2  kiru users  4096 Jan  4 19:36 kiru

That looks good. Please show the "/etc/passwd" and "/etc/shadow" files from Arch Linux.

EDIT: You don't have to boot into Arch Linux to look at those files! wink

the reason the username was shown as 1001 was because the user kiru was unknown to ubuntu and i pasted the o/p of file permission from ubuntu

Offline

#39 2014-01-03 19:24:43

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

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

#/etc/passwd



root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
uuidd:x:68:68:uuidd:/:/sbin/nologin
dbus:x:81:81:dbus:/:/sbin/nologin
nobody:x:99:99:nobody:/:/bin/false
kiran:x:1000:1000::/home/kiran:/bin/bash
kiru:x:1001:100::/home/kiru:/bin/bash

Offline

#40 2014-01-03 19:25:16

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

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

#/etc/shadow

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$bp/D4P4Y$xLCh5wFkSjn5ce6apqg3iSy6Gp/aid96MrkydylMD1JjwCTR5afezh25mLDUvVcKasGXF9APy2a4W1bpbhus6/:16074:0:99999:7:::

Offline

#41 2014-01-03 19:28:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

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

Please stop bumping this thread: there is an edit button, learn how to use it.

Also, you have been asked to use code tags, please do so: https://wiki.archlinux.org/index.php/Fo … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#42 2014-01-03 19:29:40

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

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

I agree with falconindy:

falconindy wrote:

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).

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

Please post the output of this as "root" user from Arch Linux:

su - kiru

Offline

#43 2014-01-03 19:36:49

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

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

jasonwryan wrote:

Please stop bumping this thread: there is an edit button, learn how to use it.

Also, you have been asked to use code tags, please do so: https://wiki.archlinux.org/index.php/Fo … s_and_Code

should i start a new post , i think it would be a better one

Offline

#44 2014-01-03 19:41:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

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

kiru wrote:
jasonwryan wrote:

Please stop bumping this thread: there is an edit button, learn how to use it.

Also, you have been asked to use code tags, please do so: https://wiki.archlinux.org/index.php/Fo … s_and_Code

should i start a new post , i think it would be a better one

No. Just pay more attention to this thread.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#45 2014-01-03 19:46:46

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

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

drcouzelis wrote:

I agree with falconindy:

falconindy wrote:

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).

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

Please post the output of this as "root" user from Arch Linux:

su - kiru

same result

su: warning: cannot change directory to /home/kiru: Permission denied
su: failed to execute /bin/bash: Permission denied

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

Offline

#46 2014-01-03 19:51:01

xtraroot
Member
Registered: 2013-12-17
Posts: 59

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

Why are you sharing your home folder with an Ubuntu install and how did you do that (i.e. did you reserve an empty partition when you installed Ubuntu a while ago and then install Arch on that? Just seems weird that you'd have an empty partition to install Arch on... ) ?

Last edited by xtraroot (2014-01-03 19:51:40)

Offline

#47 2014-01-03 20:01:42

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

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

xtraroot wrote:

Why are you sharing your home folder with an Ubuntu install and how did you do that (i.e. did you reserve an empty partition when you installed Ubuntu a while ago and then install Arch on that? Just seems weird that you'd have an empty partition to install Arch on... ) ?

kiru wrote:

when i installed ubuntu i reserved a separate /home partition,
since i reinstall os many time /home is necessary.
when i installed arch linux i just mounted the same home partition (device /dev/sda6) as

mount /dev/sda6 /mnt/home

.
now i can share home partition between ubuntu and archlinux
for ubuntu

/home/kiran 

for archlinux

/home/kiru 

Offline

#48 2014-01-03 20:01:59

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

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

kiru wrote:
su: warning: cannot change directory to /home/kiru: Permission denied
su: failed to execute /bin/bash: Permission denied

OK, next question: Please show me the permissions of these 4 files and directories in Arch Linux:

/
/usr
/usr/bin
/usr/bin/bash

(The "-d" option of "ls" might help: for example, "ls -l -d /")

(EDIT: The way you are using "/home" for two different users makes sense to me. Sounds good!)

Last edited by drcouzelis (2014-01-03 20:07:34)

Offline

#49 2014-01-03 20:28:08

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

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

drcouzelis wrote:
kiru wrote:
su: warning: cannot change directory to /home/kiru: Permission denied
su: failed to execute /bin/bash: Permission denied

OK, next question: Please show me the permissions of these 4 files and directories in Arch Linux:

/
/usr
/usr/bin
/usr/bin/bash

(The "-d" option of "ls" might help: for example, "ls -l -d /")

(EDIT: The way you are using "/home" for two different users makes sense to me. Sounds good!)

kiru wrote:
drwx------ 19 999 999 4096 Jan  2 07:59 /
drwxr-xr-x 8 root root 4096 Jan  1 21:54 /usr
-rwxrwxrwx 1 root root 737952 Aug 25 12:06 /bin/bash
-rwxrwxrwx 1 root root 737952 Aug 25 12:06 /usr/bin/bash

Offline

#50 2014-01-03 20:33:09

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

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

kiru wrote:
drwx------ 19 999 999 4096 Jan  2 07:59 /

Yay! That looks like the problem!

Resetting the permissions and ownership should fix it:

# chown root:root /
# chmod 755 /

Offline

Board footer

Powered by FluxBB