Home > Archive > Unix Programming > July 2006 > unable to chmod as root
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
unable to chmod as root
|
|
| debaser 2006-07-31, 7:12 pm |
| anyone ever run into this problem?
I can chmod as root in other directories, just not this one.
# whoami
root
# chmod 775 /usr/sap/sapstore/back
chmod: can't change /usr/sap/sapstore/back: Not owner
# id /usr/sap/sapstore/back
Can't find user /usr/sap/sapstore/back
# ls -lo /usr/sap/sapstore/back
total 0
# ls -ld /usr/sap/sapstore/back
drwxrwxrwx 2 root sys 96 Jul 9 2001
/usr/sap/sapstore/back
| |
| Logan Shaw 2006-07-31, 7:12 pm |
| debaser wrote:
> anyone ever run into this problem?
>
> I can chmod as root in other directories, just not this one.
>
> # whoami
> root
> # chmod 775 /usr/sap/sapstore/back
> chmod: can't change /usr/sap/sapstore/back: Not owner
Maybe /usr/sap/sapstore/back is on an NFS filesystem and the
NFS server has the standard security mechanism in place where
root gets mapped to the user "nobody", thus preventing remote
root users from being able to do anything too dangerous, at
least theoretically.
> # id /usr/sap/sapstore/back
> Can't find user /usr/sap/sapstore/back
As you've found out, the "id" command doesn't operate on files,
so this doesn't work.
> # ls -ld /usr/sap/sapstore/back
> drwxrwxrwx 2 root sys 96 Jul 9 2001
> /usr/sap/sapstore/back
What does "df /usr/sap/sapstore/back" show? What about the
output of "mount"? What kind of filesystem is this directory
on?
- Logan
| |
| debaser 2006-07-31, 7:12 pm |
| >df /usr/sap/sapstore/back
/usr/sap/sapstore (psapccc:/usr/sap/sapstore): 4578432 blocks
610307 i-n
odes
yes this directory is mounted from server psapccc. so i guess that
means i need to change it there .... i'm new at this.. thanks for
your help...
Logan Shaw wrote:
> debaser wrote:
>
> Maybe /usr/sap/sapstore/back is on an NFS filesystem and the
> NFS server has the standard security mechanism in place where
> root gets mapped to the user "nobody", thus preventing remote
> root users from being able to do anything too dangerous, at
> least theoretically.
>
>
> As you've found out, the "id" command doesn't operate on files,
> so this doesn't work.
>
>
> What does "df /usr/sap/sapstore/back" show? What about the
> output of "mount"? What kind of filesystem is this directory
> on?
>
> - Logan
|
|
|
|
|