Scenario:
Step 1. I'm logging into AIX server using user id called user1
Step 2. I'm traversing to home directory of user2
Note: This user2's home directory has the permissions drwxr-s---
Step 3. I'm issuing command pwd there. I'm getting the expected output.
Step 4. I'm issuing the command /usr/bin/pwd here. But this time, I get an error saying "Permission denied".
Note: which pwd gives the output /usr/bin/pwd
Question:
Any pointers on why pwd is giving the present working directory name whereas /usr/bin/pwd is giving permission denied error?
Thanks.