Problem with sudo, su with user created from chroot

dancaer69

New Member
Joined
Mar 10, 2020
Messages
14
Reaction score
6
Credits
109
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?
 


Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
2,922
Reaction score
1,467
Credits
16,313
Take your time and read this before you make changes.

Have a look here:

 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top