[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Getting usernames from a Novell server (ncp)



Troels Arvin <rhl@www.studmed.ku.dk> writes:

> At 09:54 22-02-99 -0600, "Scott Nelson" <sbnelson@thermeon.com> wrote:
> >> nwbpvalues -S NetwareServerName -U VeryPriviligedNetwareUserLogin
> >> -o LOGINID -t 1 -p IDENTIFICATION -P PriviligedPassword
> 
> >Careful! The passwords would be visible to others simply by using the ps
> >command!
> 
> Good point. I hadn't tought of that.
> 
> Note my follow-up letter of January 1:
> A normal user can obtain the user names and full names. So there is no need
> to use a supervisor account for this.
> 
> >I don't know these commands, but can you eliminate the passwords from the
> >command line and pass them via standard input?
> There are several solutions, as I see it.
> 
> One is:
> As far as I remember, the nw* utilites will accept an environment variable
> specifying password or a file where the password resides. See the relevant
> man-pages for info.

Well, at least under linux you can do 'ps -ewwwwww' to see the environment.
ps -ewwwwwwwwwwwwwwwwwwww 453

  PID TTY STAT  TIME COMMAND
  453  p0 S    0:00 bash USERNAME= ENV=/usr/people/wmperry/.bashrc HISTSIZE=5000 HOSTNAME=kramer SOCKS5_SERVER=slow.bp.aventail.com LOGNAME=wmperry HISTFILESIZE=1000 MAIL=/var/spool/mail/wmperry PAGER=more TERM=xterm HOSTTYPE=i386 PATH=/usr/local/egcs/bin:/usr/local/bin:/opt/kde/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/aventail/bin:/opt/kde/bin:/usr/bin/mh:/opt/wp/wpbin:/usr/people/wmperry/bin KDEDIR=/opt/kde HOME=/usr/people/wmperry SHELL=/bin/bash MAILCAPS=/usr/people/wmperry/.mailcap USER=wmperry ENSCRIPT=-2rGh QTDIR=/usr/lib/qt EXINIT=set wm=8 DISPLAY=kramer.bp.aventail.com:0.0 OSTYPE=Linux OPENWINHOME=/usr/openwin SHLVL=0 EDITOR=gnuclient CVSROOT=:pserver:wmperry@cvs.in.aventail.com:/usr/aventail/src/cvsroot WRASTER_COLOR_RESOLUTION0=4 WINDOWID=37748749 TERMCAP=xterm|vs100|xterm terminal emulator (X11R6 Window System):am:km:mi:ms:xn:xo:co#80:it#8:li#25:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=!
!
^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3k:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\EOB:ke=\E[?1l\E>:kh=\E[@:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m: 

-bp



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []