Red Hat Bugzilla – Bug 806759
useradd and userdel don't pass lsb-dist-test-4.1
Last modified: 2012-07-24 21:28:04 EDT
Created attachment 572684 [details]
Simple script to test this bug
Description of problem:
useradd and userdel failed to pass lsb-dist-test-4.1
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Request for comment
I also submit this bug to linuxfoundation. Pls check here:
We have two solutions to resolve this problem. One is to modify selinux, another is to fix useradd and userdel.
We can disable selinux, or just change useradd and userdel to permissive domain:
semanage permissive -a useradd_t
We can also move useradd and userdel to other place and rename them, then replace the two commands with two scripts. So, in the two scripts we can preprocess selinux context of directories and files, which are needed by useradd and userdel commands. After preprocessed, we then call renamed useradd and userdel to execute as usual.
Surely is ok if we can fix useradd and userdel directly.
Hi Peter, do you think it is ok that changing useradd and userdel to permissive domain? Please give me some advice, thanks a lot.