* id -Z causing some problem
@ 2005-07-14 6:36 Preeti Malakar
2005-07-14 7:22 ` Tobias Nijweide
0 siblings, 1 reply; 2+ messages in thread
From: Preeti Malakar @ 2005-07-14 6:36 UTC (permalink / raw)
To: SELinux
Sir,
When i am the root and issuing the command id -Z <username> why am i
getting the following message? but SELinux is enabled
[root@pryber /]# id preeti
uid=500(preeti) gid=500(preeti) groups=500(preeti)
[root@pryber /]# id -Z preeti
id: cannot display context when selinux not enabled or when displaying the id
of a different user
[root@pryber /]# cat /selinux/enforce
1
regards
--
PREETI MALAKAR
M.TECH 2nd YR CSE
IIT GUWAHATI
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: id -Z causing some problem
2005-07-14 6:36 id -Z causing some problem Preeti Malakar
@ 2005-07-14 7:22 ` Tobias Nijweide
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Nijweide @ 2005-07-14 7:22 UTC (permalink / raw)
To: SELinux
On Thu, 2005-07-14 at 12:06 +0530, Preeti Malakar wrote:
> When i am the root and issuing the command id -Z <username> why am i
> getting the following message? but SELinux is enabled
>
> [root@pryber /]# id preeti
> uid=500(preeti) gid=500(preeti) groups=500(preeti)
> [root@pryber /]# id -Z preeti
> id: cannot display context when selinux not enabled or when displaying the id
> of a different user
> [root@pryber /]# cat /selinux/enforce
> 1
I'm not much of an SELinux expert yet, but I think you'll find your
question is answered in the second part of sthe error msg:
'or when displaying the id of a different user'.
Does 'id -Z' instead of 'id -Z preeti' work?
Because there is no real tie between unix (/etc/passwd) users and
SELinux users, and even if there were the role/domain are dependent
on context, it's not evem theoretically possible for the system
to give an unambiguous answer.
Regards,
Tobias Nijweide
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-14 7:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-14 6:36 id -Z causing some problem Preeti Malakar
2005-07-14 7:22 ` Tobias Nijweide
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.