I just did something pretty simple. Given a user
user, I modified his user id, primary group's id, and added him to a new group in order to make my server use the same uid and gid as another server which shares files with this server over NFS. (I was told that I needed to do this in order to keep permissions from going insane on the shared files.)
What I did is the following:
groupadd -g 2000 mygroup groupmod -g 1500 user usermod -u 500 -g 1500 -G 1500,2000 user
This accomplished the following:
- The user's ID now matches the remote user's ID so NFS permissions will work.
- The user's primary group ID now matches the remote user's primary group ID.
- The user now belongs to group
mygroupwhich the remote user is also a part of.
Now, unfortunately, I can't
su -l user, as I get the following error:
grep: /var/cpanel/users/user: Permission denied
I don't think that I did anything wrong, as when I
id user, then everything looks fine:
uid=500(user) gid=1500(user) groups=1500(user),2000(mygroup)
What gives? Why am I getting this cPanel-ish error? What did I do wrong here/forget to do?
It seems that I'm able to get into the user's account, I just get that error every time I
su -l user.