Previously, I asked a question here that a user which is in the
sudoers file, want to run some
sudo commands on the nodes. The problem, is that with the
sudo command, it cannot access its home. Though it can access other folders.
So, on the frontend, we have
# cat /etc/exports /export 10.10.10.1(rw,async,no_root_squash) 10.10.10.0/255.255.255.0(rw,async)
Now, please see that
hduser uses ssh to login to the compute node. It can run
sudo command to list
/ but not its home.
[hduser@compute-0-0 /]$ ls /home/hduser/ bio hadoop-2.7.2 hadoop-2.7.2.tar.gz usr [hduser@compute-0-0 /]$ sudo ls bin etc lib media net root share sys var boot home lib64 misc opt sbin srv tmp dev install lost+found mnt proc selinux state usr [hduser@compute-0-0 /]$ sudo ls /home/hduser ls: cannot open directory /home/hduser: Permission denied
How can I fix that?