Skip to contentSkip to conversation

passwd, sysadm_t access shadow_t:file

DISCUSSION Ask Holme 2 participants 2 messages Feb 19, 2003 SELinux security module

lore
Share & tools
lore

Ask Holme

author
#0 lore raw

Hey

I just discovered that i can't use the passwd program an my debian -- the i get errors stating that the sysadm_t domain can't read/write/lock the shadow file (shadow_t:file). However i fell that it's perfectly okay that the sysadm can't do that, since only the passwd program should could, a quick hack would be to edit the domain/programs/passwd.te file and allow the sysadm_t domain access to the file however i would like to just allow the passwd_t domain, but would i need a recode of passwd for that ?

Signature · 10 lines
Regards

Ask Holme aka kVanQue
Half-time student - Fulltime geek
PGP/GPG keyid 58CE6FE4 - fetch it today, from your local keyserver

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 8 lines · Ask Holme

I just discovered that i can't use the passwd program an my debian -- the i get errors stating that the sysadm_t domain can't read/write/lock the shadow file (shadow_t:file). However i fell that it's perfectly okay that the sysadm can't do that, since only the passwd program should could, a quick hack would be to edit the domain/programs/passwd.te file and allow the sysadm_t domain access to the file however i would like to just allow the passwd_t domain, but would i need a recode of passwd for that ?

If you want to change your own password as a user then use "spasswd". If you as administrator (sysadm_t) want to change someone else's password then use "sadminpassword".

If you change the policy to allow the administrator to write to or replace the shadow file then it will probably be replaced by type etc_t and therefore SE Linux won't prevent unauthorised access to it (you will be relying on Unix permissions alone). This is probably not what you want.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.