From: Shawn Bierman (BiermanS@METHODISTHEALTH.ORG)
Date: Tue Nov 18 2003 - 10:16:17 EST
What does 'whence -v pwd' and 'whence -p pwd' return?
root@nf1n01en1:/sp2/nf1n01 > pwd
/sp2/nf1n01
root@nf1n01en1:/sp2/nf1n01 > /usr/bin/pwd
/sp2/nf1n01
root@nf1n01en1:/sp2/nf1n01 > /bin/pwd
/sp2/nf1n01
root@nf1n01en1:/sp2/nf1n01 > which pwd
/usr/bin/pwd
root@nf1n01en1:/sp2/nf1n01 > whence pwd
pwd
root@nf1n01en1:/sp2/nf1n01 > whence -v pwd
pwd is a shell builtin.
root@nf1n01en1:/sp2/nf1n01 > whence -p pwd
/usr/bin/pwd
-shawn
>>> Asmah-Julaili.Othman@SHELL.COM 11/18/03 3:06:59 AM >>>
Permission;
kltll2@localhost $ ls -ld /usr/bin/pwd
-r-xr-xr-x 1 bin bin 2046 Nov 04 11:25 /usr/bin/pwd
kltll2@localhost $ ls -l /bin/pwd
-r-xr-xr-x 1 bin bin 2046 Nov 04 11:25 /bin/pwd
-----Original Message-----
From: Holger.VanKoll@SWISSCOM.COM [mailto:Holger.VanKoll@SWISSCOM.COM]
Sent: 18 November 2003 16:19
To: aix-l@Princeton.EDU
Subject: Re: Strange directory permission.
post
ls -l /usr/bin/pwd
ls -l /bin/pwd
I assume the pbl are permissions on the binary
pwd is also a build-in
-----Original Message-----
From: Othman, Asmah-Julaili SITI-ITDGP3-302
[mailto:Asmah-Julaili.Othman@SHELL.COM]
Sent: Tuesday, November 18, 2003 3:35 AM
To: aix-l@Princeton.EDU
Subject: Strange directory permission.
Hi all,
I have a directory /local/bin with permission;
oracle@localhost $ ls -ld /local/bin
drwxr-xr-x 15 root sys 512 Nov 18 10:26 /local/bin
oracle@localhost $ ls -ld /local
drwxr-xr-x 22 root system 512 Nov 14 10:04 /local
The weird thing is, i can issue pwd command and it will return
/local/bin;
but when i issue /bin/pwd or /usr/bin/pwd; it will complains ;
oracle@localhost $ /usr/bin/pwd
pwd: The file access permissions do not allow the specified action.
oracle@localhost $ /bin/pwd
pwd: The file access permissions do not allow the specified action.
oracle@localhost $ pwd
/local/bin/oracle
oracle@localhost $ which pwd
/usr/bin/pwd
The question is, why i can't use full pathname command to check my
current directory?
oracle@localhost $ aclget /local
attributes:
base permissions
owner(root): rwx
group(system): r-x
others: r-x
extended permissions
disabled
oracle@localhost $ aclget /local/bin
attributes:
base permissions
owner(root): rwx
group(sys): r-x
others: r-x
extended permissions
disabled
oracle@localhost $ oslevel -r
5100-03
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:21 EDT