From c6c9947dc60e283fb6746ac6b955f2f8f20524ef Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 9 Mar 2008 11:58:46 +0000 Subject: [PATCH] support rights setting for homedir --- lam/lib/lamdaemonOld.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/lib/lamdaemonOld.pl b/lam/lib/lamdaemonOld.pl index 089ce2df..1ee369c2 100755 --- a/lam/lib/lamdaemonOld.pl +++ b/lam/lib/lamdaemonOld.pl @@ -121,8 +121,9 @@ if ($< == 0 ) { # we are root system 'chown', '-hR', "$user[2]:$user[3]" , $user[7]; # Change owner to new user if (-e '/usr/sbin/useradd.local') { system '/usr/sbin/useradd.local', $user[0]; # run useradd-script - } } + system 'chmod', $vals[3], $user[7]; # Edit chmod rights + } else { $return = "ERROR,Lamdaemon,Homedirectory already exists.:$return"; }