View Single Post
preflex's Avatar
Posts: 172 | Thanked: 628 times | Joined on Apr 2010 @ Albuquerque, NM, USA
#77
Originally Posted by n950 View Post
How to put nemo owner of /home/nemo inside chroot?
How to know if nemo have uid 100000?
Important: don't have anything mounted inside your home directory in the chroot (like /home/nemo/config./pulse)

All of these should be run after you've chrooted in. Don't mess with these commands outside of the chroot. You'll break stuff.

you can use the "id" command to view your UID, GID, and groups.

Code:
[root@Sailfish /]# sudo -u nemo id
uid=100000(nemo) gid=100000(nemo) groups=100000(nemo)
If it doesn't match that, you'll certainly need to fix it.

Code:
usermod -u 100000 nemo
If the nemo group doesn't exist, create it, and add nemo to the group.
Code:
groupadd nemo
usermod -aG nemo nemo
and set the new GID
Code:
groupmod -g 100000 nemo
Then make sure nemo owns his home directory.
Code:
chown -R nemo:nemo /home/nemo
Then, you can exit, mount ~/.config/pulse, and chroot back in.
__________________
Leap before you look.

Last edited by preflex; 2017-02-16 at 22:38.
 

The Following 3 Users Say Thank You to preflex For This Useful Post: