* Default User in Selinux
@ 2017-11-29 11:49 Aman Sharma
2017-11-29 13:56 ` Stephen Smalley
0 siblings, 1 reply; 4+ messages in thread
From: Aman Sharma @ 2017-11-29 11:49 UTC (permalink / raw)
To: SELinux
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
Hi All,
During System boot up, I am running some semanage commands to change the
User to sysadm_u. But in Cent OS 7.3 , Below error message is coming
i.e. *ValueError:
Login mapping for __default__ is not defined.*
/usr/sbin/semanage login -m -S targeted -s user_u -r s0 __default__
ValueError: Login mapping for __default__ is not defined
But the same command is working fine in Cent OS 6.8.
Please let me know why this error message is coming for Cent OS 7.
--
Thanks
Aman
Cell: +91 9990296404 | Email ID : amansh.sharma5@gmail.com
[-- Attachment #2: Type: text/html, Size: 1640 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Default User in Selinux
2017-11-29 11:49 Default User in Selinux Aman Sharma
@ 2017-11-29 13:56 ` Stephen Smalley
2017-11-29 14:20 ` Stephen Smalley
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2017-11-29 13:56 UTC (permalink / raw)
To: Aman Sharma, SELinux
On Wed, 2017-11-29 at 17:19 +0530, Aman Sharma wrote:
> Hi All,
>
> During System boot up, I am running some semanage commands to change
> the User to sysadm_u. But in Cent OS 7.3 , Below error message is
> coming i.e. ValueError: Login mapping for __default__ is not
> defined.
>
> /usr/sbin/semanage login -m -S targeted -s user_u -r s0
> __default__
> ValueError: Login mapping for __default__ is not defined
>
> But the same command is working fine in Cent OS 6.8.
>
> Please let me know why this error message is coming for Cent OS 7.
That suggests something is very wrong with your seusers configuration,
or maybe you have too many underscores before or after default (should
be two _ before and after).
You can delete all local customizations to your seusers configuration
via semanage login -D. This will revert to the stock configuration in
your policy package. Likewise for semanage user -D.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Default User in Selinux
2017-11-29 13:56 ` Stephen Smalley
@ 2017-11-29 14:20 ` Stephen Smalley
2017-11-29 14:44 ` Aman Sharma
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2017-11-29 14:20 UTC (permalink / raw)
To: Aman Sharma, SELinux
On Wed, 2017-11-29 at 08:56 -0500, Stephen Smalley wrote:
> On Wed, 2017-11-29 at 17:19 +0530, Aman Sharma wrote:
> > Hi All,
> >
> > During System boot up, I am running some semanage commands to
> > change
> > the User to sysadm_u. But in Cent OS 7.3 , Below error message is
> > coming i.e. ValueError: Login mapping for __default__ is not
> > defined.
> >
> > /usr/sbin/semanage login -m -S targeted -s user_u -r s0
> > __default__
> > ValueError: Login mapping for __default__ is not defined
> >
> > But the same command is working fine in Cent OS 6.8.
> >
> > Please let me know why this error message is coming for Cent OS 7.
>
> That suggests something is very wrong with your seusers
> configuration,
> or maybe you have too many underscores before or after default
> (should
> be two _ before and after).
BTW, the command above works fine for me on CentOS 7.4 (don't have 7.3
handy).
>
> You can delete all local customizations to your seusers configuration
> via semanage login -D. This will revert to the stock configuration
> in
> your policy package. Likewise for semanage user -D.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Default User in Selinux
2017-11-29 14:20 ` Stephen Smalley
@ 2017-11-29 14:44 ` Aman Sharma
0 siblings, 0 replies; 4+ messages in thread
From: Aman Sharma @ 2017-11-29 14:44 UTC (permalink / raw)
To: Stephen Smalley; +Cc: SELinux
[-- Attachment #1: Type: text/plain, Size: 1570 bytes --]
Hi Stephen,
During boot up,this error message is coming i.e. command is not working but
after the system boot up, this command is working fine.
Means facing the issue during boot up.
Please let me know your comments on this.
Thanks
Aman
On Wed, Nov 29, 2017 at 7:50 PM, Stephen Smalley <sds@tycho.nsa.gov> wrote:
> On Wed, 2017-11-29 at 08:56 -0500, Stephen Smalley wrote:
> > On Wed, 2017-11-29 at 17:19 +0530, Aman Sharma wrote:
> > > Hi All,
> > >
> > > During System boot up, I am running some semanage commands to
> > > change
> > > the User to sysadm_u. But in Cent OS 7.3 , Below error message is
> > > coming i.e. ValueError: Login mapping for __default__ is not
> > > defined.
> > >
> > > /usr/sbin/semanage login -m -S targeted -s user_u -r s0
> > > __default__
> > > ValueError: Login mapping for __default__ is not defined
> > >
> > > But the same command is working fine in Cent OS 6.8.
> > >
> > > Please let me know why this error message is coming for Cent OS 7.
> >
> > That suggests something is very wrong with your seusers
> > configuration,
> > or maybe you have too many underscores before or after default
> > (should
> > be two _ before and after).
>
> BTW, the command above works fine for me on CentOS 7.4 (don't have 7.3
> handy).
>
> >
> > You can delete all local customizations to your seusers configuration
> > via semanage login -D. This will revert to the stock configuration
> > in
> > your policy package. Likewise for semanage user -D.
>
--
Thanks
Aman
Cell: +91 9990296404 | Email ID : amansh.sharma5@gmail.com
[-- Attachment #2: Type: text/html, Size: 2571 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-29 14:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-29 11:49 Default User in Selinux Aman Sharma
2017-11-29 13:56 ` Stephen Smalley
2017-11-29 14:20 ` Stephen Smalley
2017-11-29 14:44 ` Aman Sharma
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.