Add support for useradd --selinux-user''
This commit is contained in:
parent
d5eb69c18f
commit
3b9a07219d
@ -239,6 +239,7 @@ class Distro(object):
|
|||||||
"shell": '--shell',
|
"shell": '--shell',
|
||||||
"expiredate": '--expiredate',
|
"expiredate": '--expiredate',
|
||||||
"inactive": '--inactive',
|
"inactive": '--inactive',
|
||||||
|
"selinux_user": '--selinux-user',
|
||||||
}
|
}
|
||||||
|
|
||||||
adduser_opts_flags = {
|
adduser_opts_flags = {
|
||||||
|
@ -12,6 +12,7 @@ users:
|
|||||||
gecos: Foo B. Bar
|
gecos: Foo B. Bar
|
||||||
primary-group: foobar
|
primary-group: foobar
|
||||||
groups: users
|
groups: users
|
||||||
|
selinux-user: staff_u
|
||||||
expiredate: 2012-09-01
|
expiredate: 2012-09-01
|
||||||
ssh-import-id: foobar
|
ssh-import-id: foobar
|
||||||
lock-passwd: false
|
lock-passwd: false
|
||||||
@ -38,6 +39,9 @@ users:
|
|||||||
# primary-group: define the primary group. Defaults to a new group created
|
# primary-group: define the primary group. Defaults to a new group created
|
||||||
# named after the user.
|
# named after the user.
|
||||||
# groups: Optional. Additional groups to add the user to. Defaults to none
|
# groups: Optional. Additional groups to add the user to. Defaults to none
|
||||||
|
# selinux-user: Optional. The SELinux user for the user's login, such as
|
||||||
|
# "staff_u". When this is omitted the system will select the default
|
||||||
|
# SELinux user.
|
||||||
# lock-passwd: Defaults to true. Lock the password to disable password login
|
# lock-passwd: Defaults to true. Lock the password to disable password login
|
||||||
# inactive: Create the user as inactive
|
# inactive: Create the user as inactive
|
||||||
# passwd: The hash -- not the password itself -- of the password you want
|
# passwd: The hash -- not the password itself -- of the password you want
|
||||||
|
Loading…
x
Reference in New Issue
Block a user