Can users in a group access a file that is in another user’s home directory?

I have 3 users A,B and C inside a group ‘admin’. I have another user ‘D‘ in whose home directory, there is a project folder. I have made D as the owner of that folder and assigned ‘admin’ as the group using chgrp. Group and owners have all the permissions, but still A,B or C are unable to access the folder. I have two question :

Why is PATH reset in a sudo command?

After much frustrating head-brick-wall contact, I’ve discovered this: $ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/steve/bin $ sudo bash # echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin but $ sudo bash -c 'echo $PATH' /sbin:/bin:/usr/sbin:/usr/bin $ sudo bash -Ec 'echo $PATH' /sbin:/bin:/usr/sbin:/usr/bin I gather from another post that the sudo path is read from /etc/sudoers — but why? Does setting $PATH in /root/.profile … Read more