tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: gwertz () BISYS-Plans ! com
To: tru64-unix-managers
Subject: 4.0f su curiosity
Date: Thu, 13 Apr 2000 19:50:40 +0000	[thread overview]
Message-ID: <96079343919469.tru64-unix-managers.marc@archive.invalid> (raw)

I have a script called test.ksh which contains...

#!/usr/bin/ksh

user_name=wystar
wystar_dir=/bwystar/wystar/ver4_10
dir_name=bin_pro

su - $user_name -c "echo $user_name ; echo `whoami` ; echo $PWD ; cd
$wystar_dir/$dir_name ; echo $PWD"


...the output of which is...

wystar
root
/home/_watson
/home/_watson

...Notice that the echo's work, but not the cd.  Also notice that while it
is doing the commands, it is not really su'ing to the user.

Any ideas?

                 reply	other threads:[~2000-04-13 19:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox