You are not logged in.
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
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.
Offline
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...
Offline
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.
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
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
before using archlinux i shared common directory for ubunut and debian and there was no problem
Offline
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
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
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
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.
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.
Sharing all of your personal files (documents, pictures, music...) between operating systems is no problem.
Offline
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 thisdrwx------ 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!
Last edited by drcouzelis (2014-01-03 19:14:56)
Offline
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.
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.
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
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 thisdrwx------ 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!
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
#/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
#/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
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
Offline
I agree with falconindy:
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).
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
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
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.
Offline
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
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
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... ) ?
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) asmount /dev/sda6 /mnt/home
.
now i can share home partition between ubuntu and archlinux
for ubuntu/home/kiran
for archlinux
/home/kiru
Offline
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
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!)
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
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