Commit 00d33927 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

change to users home

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 54
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 42481caa
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# #
# $Source: /home/tforb/svnbuild/cvssource/CVS/thof/scr/adm/observer/observer.pl,v $ # $Source: /home/tforb/svnbuild/cvssource/CVS/thof/scr/adm/observer/observer.pl,v $
# $Id: observer.pl,v 1.2 2000-02-21 15:32:29 thof Exp $ # $Id: observer.pl,v 1.3 2000-02-22 11:15:49 thof Exp $
# #
# 17/01/00 by Thomas Forbriger (IfG Stuttgart) # 17/01/00 by Thomas Forbriger (IfG Stuttgart)
# #
...@@ -19,13 +19,14 @@ ...@@ -19,13 +19,14 @@
# 25/01/00 V1.2 changed reporting scheme # 25/01/00 V1.2 changed reporting scheme
# 21/02/00 V1.3 changed differences reporting scheme # 21/02/00 V1.3 changed differences reporting scheme
# (was not working in former version) # (was not working in former version)
# 22/02/00 V1.4 change to users home directory before calling /bin/su
# #
# ============================================================================ # ============================================================================
# #
# we aren't using Sys::Syslog as I did not managed to get any message through # we aren't using Sys::Syslog as I did not managed to get any message through
#use Sys::Syslog; #use Sys::Syslog;
$VERSION="OBSERVER V1.3 central service"; $VERSION="OBSERVER V1.4 central service";
# called program name # called program name
# ------------------- # -------------------
...@@ -224,12 +225,13 @@ foreach $client (keys(%OBSERVER_CLIENT)) { ...@@ -224,12 +225,13 @@ foreach $client (keys(%OBSERVER_CLIENT)) {
## for (@pwentries) { print "$_\n"; } ## for (@pwentries) { print "$_\n"; }
$CLIENTUID=$pwentries[2]; $CLIENTUID=$pwentries[2];
$CLIENTGID=$pwentries[3]; $CLIENTGID=$pwentries[3];
$CLIENTHOME=$pwentries[7];
## print "$CLIENTUID $CLIENTGID\n"; ## print "$CLIENTUID $CLIENTGID\n";
if ($CLIENTUID == 0) { if ($CLIENTUID == 0) {
NOTICELOG("$client has UID $CLIENTUID!"); NOTICELOG("$client has UID $CLIENTUID!");
$CALLCMD="$binBASH -c "; $CALLCMD="$binBASH -c ";
} else { } else {
$CALLCMD="$binSU $client -c "; $CALLCMD="cd $CLIENTHOME; $binSU $client -c ";
} }
# set directories # set directories
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment