All of lore.kernel.org
 help / color / mirror / Atom feed
* checking user status
@ 2009-08-16 18:53 Larry Ross
  2009-08-17 12:29 ` Stephen Smalley
  0 siblings, 1 reply; 20+ messages in thread
From: Larry Ross @ 2009-08-16 18:53 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]

Using the RHEL5.3 strict policy I am trying to allow a custom selinux user
permission to use the passwd and chage commands to get the status of a local
user.

With selinux in permissive it works as expected, with selinux in enforcing,
all I get are cryptic error messages.  I installed the enableaudit.pp base
policy module, still no denials.

Does anyone know what permissions I need to add or what I could be doing
wrong?  Is this even possible?

  Thank you,
  Larry

[secadm@newhost ~]$ sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          permissive
Policy version:                 21
Policy from config file:        strict

[secadm@newhost ~]$ sudo chage -l user
chage: Permission denied.
[secadm@newhost ~]$ sudo /usr/bin/passwd -S user
Only root can do that.

[secadm@newhost ~]$ sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          permissive
Policy version:                 21
Policy from config file:        strict

[secadm@newhost ~]$ sudo chage -l user
Last password change                                    : May 14, 2009
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7

[secadm@newhost ~]$ sudo /usr/bin/passwd -S user
user PS 2009-05-13 0 99999 7 -1 (Password set, unknown crypt variant.)
[secadm@newhost ~]$

[-- Attachment #2: Type: text/html, Size: 2029 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2009-08-19 17:14 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-16 18:53 checking user status Larry Ross
2009-08-17 12:29 ` Stephen Smalley
2009-08-17 12:42   ` Christopher J. PeBenito
2009-08-17 12:54     ` Stephen Smalley
2009-08-18 15:32     ` Daniel J Walsh
     [not found]   ` <81092d890908170747s305cf9f2uc734f5a3fefd4efc@mail.gmail.com>
2009-08-17 14:54     ` Larry Ross
2009-08-18 15:31       ` Daniel J Walsh
     [not found]     ` <1250521053.3629.117.camel@moss-pluto.epoch.ncsc.mil>
2009-08-17 14:55       ` Larry Ross
2009-08-17 20:38         ` Larry Ross
2009-08-18 12:19           ` Stephen Smalley
2009-08-18 12:39             ` Stephen Smalley
2009-08-18 17:15               ` Larry Ross
2009-08-18 18:10                 ` Daniel J Walsh
2009-08-18 18:57                   ` Larry
2009-08-19 14:34                   ` Stephen Smalley
2009-08-19 14:36                     ` Steve Grubb
2009-08-19 14:39                     ` Stephen Smalley
2009-08-19 17:14                       ` Stephen Smalley
2009-08-18 19:10                 ` Larry
2009-08-19 11:33                   ` Stephen Smalley

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.