Skip to contentSkip to conversation

semanage user

DISCUSSION Serge E. Hallyn 2 participants 3 messages Sep 6, 2006 – Sep 8, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

It appears removing a user with semanage does not also remove it's associated logins. This is a problem because then re-adding the user fails. (I do not have the error handy as my test machines are all down atm)

I had done:
semanage user -a -R abat_r -P abat abat_u
semanage login -a -s abat_u abat
semanage user -r abat_u [ or is it -d? ]
semanage user -a -R abat_r -P abat abat_u

the last step failed. When I then did

semanage login -d abat (or was it -r? :) semanage user -a -R abat_r -P abat abat_u

it succeeded.

Not sure whether there is a good reason to leave the code like that, or whether semanage user -r should automatically imply semanage login -r.

thanks,
-serge

--
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 15 lines · Serge E. Hallyn

Hi,

It appears removing a user with semanage does not also remove it's associated logins. This is a problem because then re-adding the user fails. (I do not have the error handy as my test machines are all down atm)

I had done:
semanage user -a -R abat_r -P abat abat_u
semanage login -a -s abat_u abat
semanage user -r abat_u [ or is it -d? ]
semanage user -a -R abat_r -P abat abat_u

the last step failed. When I then did

Quoted 9 lines

semanage login -d abat (or was it -r? :) semanage user -a -R abat_r -P abat abat_u

it succeeded.

Not sure whether there is a good reason to leave the code like that, or whether semanage user -r should automatically imply semanage login -r.

Please create a bug on the newly working upstream bug tracker -
http://sourceforge.net/projects/selinux. You can assign it to me if you want.

Karl

--
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.

#2 lore raw
Quoted 21 lines · Karl MacMillan
Quoted 20 lines · Serge E. Hallyn

Hi,

It appears removing a user with semanage does not also remove it's associated logins. This is a problem because then re-adding the user fails. (I do not have the error handy as my test machines are all down atm)

I had done:
semanage user -a -R abat_r -P abat abat_u
semanage login -a -s abat_u abat
semanage user -r abat_u [ or is it -d? ]
semanage user -a -R abat_r -P abat abat_u

the last step failed. When I then did

semanage login -d abat (or was it -r? :) semanage user -a -R abat_r -P abat abat_u

it succeeded.

Quoted 8 lines
Quoted 4 lines

Not sure whether there is a good reason to leave the code like that, or whether semanage user -r should automatically imply semanage login -r.

Please create a bug on the newly working upstream bug tracker -
http://sourceforge.net/projects/selinux. You can assign it to me if you want.

Thanks, done.

-serge

--
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.