pwd vs /bin/pwd

Weird issue I found on CentOS5 vs on CentOS4

If Im in a directory as a non-root user and type pwd it works fine, but if i do /usr/pwd i an error

[user@server1 ~]$ /bin/pwd
/bin/pwd: cannot open directory `..': Permission denied

[user@server1 ~]$ pwd
/home/user

On CentOS4

[user@server1 ~]$ /bin/pwd
/chroot/home/user
[user@server1 ~]$ pwd
/home/user

I’m guessing this has to do with the jailed shell b/c on C4 it shows the full path when you use /bin/pwd vs pwd
Anyway around this?

Actually I think i screwed up permission on the /chroot/home directory

It was a non root owner and chmod to “drwxr-s–x” instead of “drwx–x--x”

I fixed the user and perms on the /chroot/home folder and still have the same exact thing happening

any ideas?

I’ve tried using regular /bin/bash and also using the jailed shell and both are the same except jail shell gives errors logging in that it can’t find the user or group name even though its in the /chroot/etc/passwd|group