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:
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?
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?