Re: Strange directory permission.

From: Aaron Morris (aaronmorris@MINDSPRING.COM)
Date: Tue Nov 18 2003 - 20:54:18 EST


Othman, Asmah-Julaili SITI-ITDGP3-302 wrote:
> 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
>

Check and make sure you do not have any aliases or functions that are
overriding "pwd".

Another alternative is "echo $PWD".

Other than that, why does it matter?

--
Aaron W Morris <aaronmorris@mindspring.com> (decep)


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:21 EDT