[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Inconsistent default behavior?
From: |
Hui Gary Zhang |
Subject: |
Inconsistent default behavior? |
Date: |
Thu, 22 Nov 2001 20:39:57 -0500 |
I seems to observe some inconsistency when sh-utils hand the default,
meaning without an argument for 'id', 'logname', 'groups'.
After I("huiz") su and become root, here is the outputs from those
commands
>bash-2.05a# id
>uid=0(root) gid=0(root) groups=0(root)
>bash-2.05a# groups
>root
>bash-2.05a# logname
>huiz
It's clear that 'id' and 'groups' understand that I am currently root.
But 'logname' reports who I am before su. It doesn't seem to be obvious
to me why it should behave this way.
---Gary
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Inconsistent default behavior?,
Hui Gary Zhang <=