semanage user
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.
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 -Rabat_r-P abatabat_u
semanage login -a -sabat_uabat
semanage user -rabat_u[ or is it -d? ]
semanage user -a -Rabat_r-P abatabat_uthe 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 abatabat_uit 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.
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 -Rabat_r-P abatabat_u
semanage login -a -sabat_uabat
semanage user -rabat_u[ or is it -d? ]
semanage user -a -Rabat_r-P abatabat_uthe last step failed. When I then did
semanage login -d abat (or was it -r? :) semanage user -a -R
abat_r-P abatabat_uit 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.