Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <199909222344.TAA00534@dagda.sunflower.com> From: "Doug Wyatt" To: cygwin AT sourceware DOT cygnus DOT com Date: Wed, 22 Sep 1999 18:43:42 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Trying to use NTReskit su.exe Reply-to: dwyatt AT sunflower DOT com X-mailer: Pegasus Mail for Win32 (v3.11) A short while back, it was suggested to me that running Cygwin32 from a username in the Administrators group was a bad idea. I created a new username and have been using it since then without any of the problems I had before. But it's a real pain to have to re-login periodically as an administrator-enabled user to accomplish numerous actions that require it. I tend to like to clutter up my Windows desktop with dozens of open windows, especially browsers open to various Web pages for reference. I've been trying to use the NTReskit su.exe from my admin login account to open up a bash shell under a NonAdm account. I created a shortcut: "c:\Program Files\NTReskit\su" NonAdm d:\cygnus\cygwin-b20\cygnus.bat . -v When I run it, it creates a cmd.exe window which prompts for the password and after that opens another cmd.exe window in which bash seems to be the command interpreter. There are a few problems, however. * There is an error in the verbose output in the first cmd.exe window: Password: User=NonAdm Domain=. ReferencedDomain=AMANDA CommandLine=d:\cygnus\cygwin-b20\cygnus.bat TextualSid=S-1-5-21-1587175470-489960911-355810188-1002 Set CLASSPATH=%QTJava% Set ComSpec=C:\WINNT\system32\cmd.exe Set MSINPUT=C:\Program Files\MS Hardware Set NTRESKIT=C:\Program Files\NTReskit Set NUMBER_OF_PROCESSORS=1 Set OS=Windows_NT Set Os2LibPath=C:\WINNT\system32\os2\dll; Set Path=c:\perl5\bin;C:\WINNT\system32;C:\WINNT;D:\cygnus\cygwin-b20\H-i586-cygwin32\bin;C:\Program Files\NTReskit Set PROCESSOR_ARCHITECTURE=x86 Set PROCESSOR_IDENTIFIER=x86 Family 6 Model 5 Stepping 1, GenuineIntel Set PROCESSOR_LEVEL=6 Set PROCESSOR_REVISION=0501 Set QTJAVA=D:\etc\jdk1.2.1\jre\lib\ext\QTJava.zip Set windir=C:\WINNT PrepareEnvironmentBlock error! (rc=5) Access is denied. LogonSid=S-1-5-5-0-2386380 CurrentWinsta+Desktop=WinSta0\Default TargetWinsta+Desktop=WinSta0\Default A search of the MSKB turns up no references to PrepareEnvironmentBlock; is this part of the Cygnus pkg? I did see something about a winenv() function in the Cygwin Developers list archive. Does anyone know why access is denied? * Creating new files does not give them NonAdm ownership. Chown doesn't change the ownership. Is there something like real and effective UID's in NT? * Highlighting gets turned on for all text after 'ls -laL'. Clear switches the 'bash' window to reverse video, a couple of ls -laL cmds switch it back to just the text being reverse video. Does anyone have any ideas or suggestions, before I switch back to logging on as NonAdm, and try using su.exe to perform the Admin functions instead? Regards, Doug cygcheck in the resulting shell is: 29$ cygcheck -v -s -r Cygnus Win95/NT Configuration Diagnostics Current System Time: Wed Sep 22 18:29:44 1999 WinNT Ver 4.0 build 1381 Service Pack 5 Path: /usr/local/bin /bin /usr/vim/vim54 /c/perl5/bin /c/WINNT/system32 /c/WINNT /cygnus/cygwin-b20/H-i586-cygwin32/bin /c/Program Files/NTReskit SysDir: C:\WINNT\System32 WinDir: C:\WINNT CYGWIN = `"tty notitle ntea"' HOME = `/c/user/daw' MAKE_MODE = `UNIX' PWD = `/c/user/daw' !C: = `C:\user\daw' CLASSPATH = `D:\etc\jdk1.2.1\jre\lib\ext\QTJava.zip' COMSPEC = `C:\WINNT\system32\cmd.exe' HOSTNAME = `Amanda' HOSTTYPE = `i586' LOGNAME = `daw' MACHTYPE = `i586-pc-cygwin32' MSINPUT = `C:\Program Files\MS Hardware' NTRESKIT = `C:\Program Files\NTReskit' NUMBER_OF_PROCESSORS = `1' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' OS = `Windows_NT' OSTYPE = `cygwin32' PATHEXT = `.COM;.EXE;.BAT;.CMD' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 5 Stepping 1, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0501' PROMPT = `$P$G' QTJAVA = `D:\etc\jdk1.2.1\jre\lib\ext\QTJava.zip' SHELL = `/bin/sh' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `C:\TEMP' TERM = `linux' TMP = `C:\TEMP' USERDOMAIN = `AMANDA' USERNAME = `NonAdm' WINDIR = `C:\WINNT' _ = `/bin/cygcheck' cyg0 = `/cygnus/cygwin-b20' cyg1 = `/cygnus/cygwin-b20/H-i586-cygwin32' cyg2 = `/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32' src1 = `/ksr/software' src = `//j/pc_software' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 (default) = `k:' unix = `/k' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01 (default) = `j:' unix = `/j' fbinary = 0x00000001 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02 (default) = `e:' unix = `/e' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03 (default) = `c:' unix = `/c' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04 (default) = `d:' unix = `/' fbinary = 0x00000000 fsilent = 0x00000000 a:\ fd N/A N/A c:\ hd FAT 2047Mb 94% CP UN IDE-0101 d:\ hd NTFS 4094Mb 86% CP CS UN PA FC IDE-0102 e:\ hd FAT 2047Mb 78% CP UN SCSI-0101 f:\ hd FAT 2039Mb 82% CP UN SCSI-0102 g:\ fd N/A N/A h:\ cd N/A N/A i:\ cd CDUDFRW 531Mb 56% CP UN dcd_990822a j:\ hd FAT 2039Mb 84% CP UN SCSI-0103 k:\ hd NTFS 2549Mb 61% CP CS UN PA FC SCSI-0104 d: / native text!=binary c: /c native text!=binary e: /e native text!=binary j: /j native text=binary k: /k native text!=binary Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\bash.exe Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cat.exe Found: c:\Program Files\NTReskit\cat.exe Warning: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cat.exe hides c:\Program Files\NTReskit\cat.exe Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cpp.exe Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\find.exe Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gcc.exe Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gdb.exe Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ld.exe Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ls.exe Found: c:\Program Files\NTReskit\ls.exe Warning: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ls.exe hides c:\Program Files\NTReskit\ls.exe Found: d:\usr\local\bin\make.exe Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\make.exe Warning: d:\usr\local\bin\make.exe hides d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\make.exe Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\sh.exe 371k 1998/12/01 d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=1998/12/1 2:25 5k 1998/12/01 d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 10k 1998/12/01 d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=1998/12/1 2:25 600k 1998/12/01 d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=1998/12/1 2:28 446k 1999/08/18 d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=1998/12/3 22:39 Use -h to see help about each section 30$ ========================================================== Doug Wyatt E-Mail: dwyatt AT sunflower DOT com Sys Admin Phone: 785-843-4099 Kohlman Systems Research, Inc. Fax: 785-843-6459 319 Perry St., Lawrence, KS 66044 USA -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com