Re: Which user env. variable tell me that it is in s u - mode ?

2009-03-04 Thread Hubert Kleinmanns
Mario, I fear, I misunderstood your question (or you misunderstood my answer ;-) ) echo $SHLVL returns always 1 after a su - ..., but another value after a su ... (without th dash). I thought, this was what you would like to see. There are several mechanism, to distinguish between the primary

Re: Which user env. variable tell me that it is in su - mode ?

2009-03-04 Thread John Summerfield
Ivan Warren wrote: John Summerfield wrote: In contrast, the tty command returns an actual device name when possible. Talking about tty.. (labeit in a slightly different context for the word 'tty' !) There is one big diff between a login a 'su -' : You don't gain ownership of /dev/tty on

Re: Which user env. variable tell me that it is in s u - mode ?

2009-03-04 Thread John Summerfield
Hubert Kleinmanns wrote: Mario, I fear, I misunderstood your question (or you misunderstood my answer ;-) ) Marco didn't explain what problem he's trying to solve, so we all have to guess. echo $SHLVL returns always 1 after a su - ..., but another value after a su ... (without th dash). I

Re: Which user env. variable tell me that it is in su - mode ?

2009-03-04 Thread Ivan Warren
John Summerfield wrote: I'm looking at CentOS5 on a PC. I'm running inside X (xorg). Oh, just in case it matters, I'm running KDE. Who knows, it could be different in GNOME. 08:42 [sum...@bobtail ~]$ \ls -l $(tty) crw--- 1 summer tty 136, 17 Mar 4 20:24 /dev/pts/17 20:24 [sum...@bobtail

Re: Which user env. variable tell me that it is in s u - mode ?

2009-03-04 Thread Marco Bosisio
First of all thanks to the community for interest and several proposed solutions. The suggestion received from Hubert based on cmd 'logname' could be an easy way to solve my problem. For example in case I logged on with userid it32673 and I'm in 'su -' , the contents of

Re: Which user env. variable tell me that it is in s u - mode ?

2009-03-04 Thread John Summerfield
Marco Bosisio wrote: First of all thanks to the community for interest and several proposed solutions. The suggestion received from Hubert based on cmd 'logname' could be an easy way to solve my problem. 22:51 [sum...@bobtail ~]$ logname logname: no login name 22:51

Re: Which user env. variable tell me that it is in su - mode ?

2009-03-04 Thread John Summerfield
Ivan Warren wrote: John Summerfield wrote: I'm looking at CentOS5 on a PC. I'm running inside X (xorg). Oh, just in case it matters, I'm running KDE. Who knows, it could be different in GNOME. 08:42 [sum...@bobtail ~]$ \ls -l $(tty) crw--- 1 summer tty 136, 17 Mar 4 20:24 /dev/pts/17

Re: Which user env. variable tell me that it is in s u - mode ?

2009-03-04 Thread Hubert Kleinmanns
echo $SHLVL returns always 1 after a su - ..., but another value after a su ... (without th dash). I thought, this was what you would like to see. There are several mechanism, to distinguish between the primary login shell and a su ... shell: I for one don't see why that might

Re: Which user env. variable tell me that it is in s u - mode ?

2009-03-04 Thread John Summerfield
Hubert Kleinmanns wrote: echo $SHLVL returns always 1 after a su - ..., but another value after a su ... (without th dash). I thought, this was what you would like to see. There are several mechanism, to distinguish between the primary login shell and a su ... shell: I for one don't see why

ypserv on zLinux (s390x)

2009-03-04 Thread Ayer, Paul W
Good Morning all, We are trying to install and get working ypserv on zLinux for the first time. It seems that a post install scritp keeps failing with the install. Does anyone have ypserv installed on a RedHat 4.6 s390x system? Here is what we see; rpm -Uih ypserv-2.13-19.s390x.rpm

Re: ypserv on zLinux (s390x)

2009-03-04 Thread Jack Woehr
Ayer, Paul W wrote: service ypserv does not support chkconfig chkconfig is the rubric for installing startup scripts in the init.d hierarchy. Apparently the post-install in the rpm failed to set up the services for boot startup, noticed it and threw an exit code. Probably the tools are