Problem with sudo, su with user created from chroot

dancaer69

New Member
Joined
Mar 10, 2020
Messages
15
Reaction score
10
Credits
116
I installed AOSC OS from arch linux via chroot and using arch-chroot script to chroot to AOSC. I'm using a separate partition for /home which I mounted and I added the user from chrootg environment, but I forgot to add the partition in fstab. So when I booted to AOSC and login because that the partition wasn't mounted the system used /home directory from root(/) partition. I added the partition and rebooted to use the home partition, and I login without issue, but I cannot use sudo or su and I get the error:
Code:
sudo: effective uid is not 0, is /bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
I also found that the user doesn't have uid and gid 1000 as usually happens, but the gid is 1001 instead and the 1000 gid is assigned to group users. Any idea how to fix this?
 


Take your time and read this before you make changes.

Have a look here:

 

Members online


Top