summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-02-25 10:41:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-02-25 10:41:02 +0000
commit65ab17af2563458446fa32c83ccf80de9ad6c456 (patch)
tree2b38897832a74407aea25a31bff0d7ec303df782
parentf93cb68d10a3e82f8beba20406718dc49abefd23 (diff)
downloaddrakx-65ab17af2563458446fa32c83ccf80de9ad6c456.tar
drakx-65ab17af2563458446fa32c83ccf80de9ad6c456.tar.gz
drakx-65ab17af2563458446fa32c83ccf80de9ad6c456.tar.bz2
drakx-65ab17af2563458446fa32c83ccf80de9ad6c456.tar.xz
drakx-65ab17af2563458446fa32c83ccf80de9ad6c456.zip
(addUser): add users in group usb if SECURE_LEVEL <= 3
-rw-r--r--perl-install/install_steps.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 76bd0e08f..155900821 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -696,6 +696,8 @@ sub addUser {
$_->{uid} = $u; $uids{$u} = 1;
$_->{gid} = $g; $gids{$g} = 1;
+
+ push @{$_->{groups} ||= []}, 'usb' if $o->{security} <= 3;
}
any::write_passwd_user($p, $_, $o->{authentication}{md5}) foreach @$users;