> I successfully got the su command to run, but vncserver calls a program
> Xvnc , which is at /usr/local/bin, which startup says "Xvnc is not in my
> PATH".  This leads to question WHERE is the most basic PATH set?  There
> seem to be so many, rc.sysinit, profile, csh.login, I have reset all of
> them and I still I get the error.  Where is the root PATH?

Michael, the most basic answer to your question is that although the path
may be set and modified by any number of programs during boot and the login
process; it is individualized for each user by their .profile, .login,
.bashrc, .cshrc (depending on which shell is their default (check their
passwd file entry for their default shell).

Perhaps the easiest way to fix your problem is with a very short shell
program that starts vncserver.  Mine looks like this:

PATH=$PATH:/usr/local/bin:/net/opt/perl/bin
cd /usr/local/bin
./vncserver

I use "su -l <username>" to assume the user's personality before I run the
shell program.  I do this by hand, but its trivial to add it to one of your
startup scripts as mentioned by another list member earlier.

Gerry

Reply via email to