• shared /home partition, user kidnaped by other arch based distro


    (i’m sorry i dont know better title for this topic)
    Excuse me, I had been installing Apricity OS, I have Antergos before. When I installed Apricity, I used same /home partition as Antergos. It looks like this:

    sda8 = / Antergos
    sda9 = / Apricity
    sda5 = / /home untuk apricity dan antergos
    sda7 = swap

    I have 2 users in antergos. hopefuly both is a sudoers.

    In the apricity installation, I asked an name and username so I put name, username, and computer name same as in the antergos (main user) with same password and admin password.
    Now when I boot to antergos, the username I put in apricity installation can be seen but cannot logged into.
    (EDIT: It doesn’t show my password/user is wrong, It just feels like kicked back)
    And when I boot to apricity, only the user I put when installation shown.

    Is there a way to rescue my user back to antergos? Thank you.

    GPT, UEFI
    sda 8:0 0 931,5G 0 disk
    ├─sda4 8:4 0 49,5G 0 part
    ├─sda2 8:2 0 100M 0 part /boot/efi
    ├─sda9 8:9 0 58,8G 0 part / APRICITY
    ├─sda7 8:7 0 2,8G 0 part [SWAP]
    ├─sda5 8:5 0 500G 0 part /home
    ├─sda3 8:3 0 16M 0 part
    ├─sda1 8:1 0 450M 0 part
    ├─sda8 8:8 0 59,2G 0 part / ANTERGOS
    └─sda6 8:6 0 260G 0 part

    hmm, I was going to try apricity with antergos user setting, they got nice terminal look. But well,… my terminal was the same in antergos. I dunno why, dont mind this sentence.

    EDIT:
    Delete and remake user doesn’t solved it
    found out /home/user1 and all it’s files inside owned by user2.
    but #chown user1 /home/user1/* and #chown user1:user1 /home/user1/* doesn’t solve it.
    I made user3. /home/user3. But I can see my bookmark for user1 as user3 when opening nautilus. It’s read only though

  • @Pegasusearl

    This is most likely due to your Antergos and Apricity users having different uid, the number associated with the name, this can be checked in /etc/passwd. You should see a line similar to,

    test:x:1000:100::/home/test:/bin/bash
    

    where 1000 is the uid and 100 is the main gid.

    When using chown on a directory use -R to recurse the entire directory,

    chown -R user1 /home/user1/ 
    

    If you use a group with the same name as you user (like user1:user1), you will want to check the gid in /etc/group is the same on both Antergos and Apricity.

  • funny idea to choose the same username + the same home folder by the way…

    i would backup personal data and:

    you can change also the users home directory:

    simply logon as root and change it…

    boot to Antergos change to console input :

    Strg + Alt + F2
    

    create new homedir

    mkdir /home/newhome
    

    give all to your user…

    chown -R yourusername /home/newhome
    

    change your homedir

    usermod -d /home/newhome  username
    

    reboot

    #But no guarantee! ;)

    all your setting will be gone… but caus other distro change configs it is the better way…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    http://kamprad.net/howto-installing-antergos/
    https://forum.antergos.com/topic/1883/how-to-include-system-logs-when-asking-for-help

  • WAH!! thank you thank you thank you misters
    adding -R in chown solved my problem.

    chown -R user1 /home/user1
    chown -R user1:user1 /home/user1
    usermod -d /home/user1 user1
    

    now everything back to normal
    I was thought * means everything in that folder.
    ah and yes it had a different uid and gid, im not aware of that before, thank you again.

  • I wasn’t aware of Apricity. How does it compare with Antergos & Manjaro?

  • @Uzi said in shared /home partition, user kidnaped by other arch based distro:

    I wasn’t aware of Apricity. How does it compare with Antergos & Manjaro?

    I haven’t used manjaro.
    Well, I think apricity looks cool, especially the terminal.
    It has cool built in app like ice-ssb, freezedry and some (relatively) bloatware.

    It uses offline installation, and the installer is more responsive than cnchi.
    But I got freeze a lot. Booting and shutdown is slower compared to antergos (stuck at dhcpcd).

antergos6 home3 apricity2 partition16 Posts 6Views 501
Log in to reply