summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-13 13:26:16 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-13 13:26:16 +0000
commitbbad44632306278cf59ae176043be1a6870686aa (patch)
treed661bd7a4342e1868d78d871628b1b4ae2166868
parent896afaaa226580024d1851f9b2e7be3f0e89bd01 (diff)
downloaddrakx-bbad44632306278cf59ae176043be1a6870686aa.tar
drakx-bbad44632306278cf59ae176043be1a6870686aa.tar.gz
drakx-bbad44632306278cf59ae176043be1a6870686aa.tar.bz2
drakx-bbad44632306278cf59ae176043be1a6870686aa.tar.xz
drakx-bbad44632306278cf59ae176043be1a6870686aa.zip
force uid/gid of created user to 501 as it was used when mounting key, addUser may choose 502 when key already holds user data
-rw-r--r--move/move.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/move/move.pm b/move/move.pm
index 89c0238ef..26ce6a6ce 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -204,6 +204,8 @@ sub install2::startMove {
any::ask_user_one($o, $o->{users} ||= [], $o->{security},
additional_msg => N("BLA BLA user for move, password for screensaver"), noaccept => 1, needauser => 1, noicons => 1);
}
+ #- force uid/gid to 501 as it was used when mounting key, addUser may choose 502 when key already holds user data
+ put_in_hash($o->{users}[0], { uid => 501, gid => 501 });
require install_steps;
install_steps::addUser($o);