1 |
unnilennium |
1.1 |
diff -up smeserver-lazy_admin_tools-1.1/root/usr/sbin/lat-users.patch1 smeserver-lazy_admin_tools-1.1/root/usr/sbin/lat-users |
2 |
|
|
--- smeserver-lazy_admin_tools-1.1/root/usr/sbin/lat-users.patch1 2014-07-29 15:51:01.000000000 -0400 |
3 |
|
|
+++ smeserver-lazy_admin_tools-1.1/root/usr/sbin/lat-users 2014-07-29 15:53:15.000000000 -0400 |
4 |
|
|
@@ -147,7 +147,7 @@ if ($Del) { |
5 |
|
|
if ((db_get(\%accounts, $username)) && (db_get_type(\%accounts, $username) eq "user")) { |
6 |
|
|
my $yn = 'yes'; |
7 |
|
|
my $userdir = `cat /etc/passwd|grep "^$username:"|cut -d":" -f6|tr -d '\n'`; |
8 |
|
|
- print "user folder: '$userdir'\n"; |
9 |
|
|
+ #print "user folder: '$userdir'\n"; |
10 |
|
|
if ( $userdir eq "/home/e-smith/files/users/$username" ) |
11 |
|
|
{ |
12 |
|
|
if (! $Frc) { |
13 |
|
|
@@ -160,7 +160,6 @@ if ($Del) { |
14 |
|
|
print "Deleting user account '$username'.\n"; |
15 |
|
|
db_delete(\%accounts, $username); |
16 |
|
|
system("/sbin/e-smith/signal-event", "user-delete", $username); |
17 |
|
|
- system("/usr/sbin/lat-groups -r -f -c='*|$username'"); |
18 |
|
|
} |
19 |
|
|
} |
20 |
|
|
else { print "'$username' is not a regular SME user with its home in /home/e-smith/files/users/, can not remove it\n\a";} |