⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wpw_w32_security_95.html

📁 VC programing
💻 HTML
字号:
<HTML>
<HR><A NAME=WIN32_security_su>
Return to <a href="wpw_w32_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: "su" like program for WinNT</H4><PRE>
>>If you wanted an example of the NT Security APIs and a functioning
>>UNIX-like su (temporarily substitute user without logging out and in),
>>you will find the following example quite useful. This source plus
>>a binary (.EXE) have been uploaded to SimTel/nt as well.

What is the source and binary files called?

Regards,
Swee
<HR>
Don Anderson (danderso@ucsd.edu) wrote:
: I find one place where "su" doesn't work as I would have expected. If I
: use it to launch "control", I seem to have my old identity. I can't do
: things like change the startup behavior of services (and perhaps I can't
: install and remove them - haven't tried that..). Is is possible that
: "su" is not picking up some capability with respect to services that
: administrators would pick up at a regular login?

But if you open the System icon, it does give you your su'd identity name 
for the environmental variable settings.

--
Derrick Whittle
nin@felix.cc.gatech.edu
vaps4dw@prism.gatech.edu
gt3056a@prism.gatech.edu
<HR>
In article <hsc.155.000EFE33@eng.cam.ac.uk>, hsc@eng.cam.ac.uk says...
>
>>>If you wanted an example of the NT Security APIs and a functioning
>>>UNIX-like su (temporarily substitute user without logging out and in),
>>>you will find the following example quite useful. This source plus
>>>a binary (.EXE) have been uploaded to SimTel/nt as well.
>
>What is the source and binary files called?

SimTel/nt/admin/su.zip contains both. Also,
ftp://ftp.shore.net/members/wihl/su.zip

-David
-- 
--------------------------------------------------
Join the New England NT Users Group!
http://www.shore.net/~wihl/nentug.html
--------------------------------------------------
<HR>
Derrick Whittle (nin@cc.gatech.edu) wrote:
: Don Anderson (danderso@ucsd.edu) wrote:
: : I find one place where "su" doesn't work as I would have expected. If I
: : use it to launch "control", I seem to have my old identity. I can't do
: : things like change the startup behavior of services (and perhaps I can't
: : install and remove them - haven't tried that..). Is is possible that
: : "su" is not picking up some capability with respect to services that
: : administrators would pick up at a regular login?
:
: But if you open the System icon, it does give you your su'd identity name 
: for the environmental variable settings.
:
On my system there appears to be some odd behaviour. In a sense, if I
"su Administrator WINFILE", I was able to use the Administrator's previlege
in the WINFILE. But the appearance of the WINFILE is no where near the
settings I have for Administrator (i.e. the size of fonts, customized tool
bar etc.)
* Seems like the default appearance is used instead.

I apparently had big problem when "su Administrator CONTROL". I was
attempting to add some printer. I can't remember the exact details now.
But I tried clicking the Print Manager icon in CONTROL PANEL and diddle
around then my system starts to trash the disk and slows dramatically.
Memory usage soared to 90%+. Logout and login did not cure the problem
and I had to reboot the machine to get rid of the problem.
* May be CONTROL PANEL stuff is too "well meshed" with the current user
  environment. And having dual personality here confused the system
  beyond all recognition.
  # I am just guessing here and do not claim to know anything about how
    CONTROL PANEL stuff works.

Anyway, it may be a problem with my system which is NT 3.51 (build 1057)
upgraded over NT 3.51 beta (build 944) upgraded over NT 3.5 (build 807).
May be I need to do a clean installation to get "su" to work properly?

Just some thought.


--
Regards,         -------------------------------------------------------------
Peter Lim.                                         Snail-mail:
___o``\___  ___   E-mail:  plim@hpsgwk.sgp.hp.com  Hewlett-Packard Singapore,
V````\  @  /  /   Tel:     (065)-662-4496          ICS Operation (ADC),
     /.-- /hp/    Telnet:        520-4496          2 Corporation Road,
>--_//   /__/     Fax:     (065)-262-0290          Corporation Place #05-01/08,
   `'                                              Singapore   2261.
------------------------------------------------------------------------------
#include <standard_disclaimer.hpp>
</PRE> 

</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -