Click here to get back home

runas question

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
runas question djc 09-01-2006
---> Re: runas question Steven L Umbach09-01-2006
---> Re: runas question Joe Richards [M...09-01-2006
---> Re: runas question Roger Abell [MV...09-02-2006
Posted by djc on September 1, 2006, 1:55 pm
Please log in for more thread options
lets say I'm logged in as userA, I launch a command prompt using runas with
credentials of userB, then from that userB command prompt I launch an
applications such as notepad.exe.

Is notepad.exe still running in the security context of userB? So if I went
File > Open from notepad would I be able to access network resources, namely
folder shares, with userB's credentials?



Posted by Steven L Umbach on September 1, 2006, 3:38 pm
Please log in for more thread options
The way to find out would be to open Task Manager to see what user is shown
as using that process. If you can't see that as a regular user try using
runas while logged on as an administrator or try using Process Explorer from
SysInternals/Microsoft. From what I just tried it does show that for what
you asked that notepad does run as the user that the command windows was
opened for via runas. You can also open a command window as system by using
the AT command as in AT 12:00 /interactive cmd.exe where the time is a
minute or two in the future. Then commands you run in the command windows
will run as system.

Steve


> lets say I'm logged in as userA, I launch a command prompt using runas
> with credentials of userB, then from that userB command prompt I launch an
> applications such as notepad.exe.
>
> Is notepad.exe still running in the security context of userB? So if I
> went File > Open from notepad would I be able to access network resources,
> namely folder shares, with userB's credentials?
>



Posted by djc on September 1, 2006, 4:05 pm
Please log in for more thread options
thanks Steven. I appreciate it.

> The way to find out would be to open Task Manager to see what user is
> shown as using that process. If you can't see that as a regular user try
> using runas while logged on as an administrator or try using Process
> Explorer from SysInternals/Microsoft. From what I just tried it does show
> that for what you asked that notepad does run as the user that the command
> windows was opened for via runas. You can also open a command window as
> system by using the AT command as in AT 12:00 /interactive cmd.exe where
> the time is a minute or two in the future. Then commands you run in the
> command windows will run as system.
>
> Steve
>
>
>> lets say I'm logged in as userA, I launch a command prompt using runas
>> with credentials of userB, then from that userB command prompt I launch
>> an applications such as notepad.exe.
>>
>> Is notepad.exe still running in the security context of userB? So if I
>> went File > Open from notepad would I be able to access network
>> resources, namely folder shares, with userB's credentials?
>>
>
>



Posted by Joe Richards [MVP] on September 1, 2006, 6:16 pm
Please log in for more thread options
Your local creds depend on whether or not you asked for a network auth
or a local auth. The default for runas is local auth, you get network by
using /netonly. It is the opposite if you use cpau, you get a network
auth by default and a local auth only if you specify /lwp or /lwop.

When you do a network auth, the new process is spawned locally with the
current creds and any network access is with the new creds. When you do
a local auth, everything is done under the new creds.

As to your specific questions.

If a network auth, then notepad is running locally as UserA but when it
attaches to a remote resource as UserB.

If a local auth, it will be running as UserB and attach to remove
resources as UserB.

In neither case will local networked drive letters be available to it
for use.


--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm


djc wrote:
> lets say I'm logged in as userA, I launch a command prompt using runas with
> credentials of userB, then from that userB command prompt I launch an
> applications such as notepad.exe.
>
> Is notepad.exe still running in the security context of userB? So if I went
> File > Open from notepad would I be able to access network resources, namely
> folder shares, with userB's credentials?
>
>

Posted by djc on September 11, 2006, 10:41 am
Please log in for more thread options
thanks for the info. Its appreciated.

> Your local creds depend on whether or not you asked for a network auth or
> a local auth. The default for runas is local auth, you get network by
> using /netonly. It is the opposite if you use cpau, you get a network auth
> by default and a local auth only if you specify /lwp or /lwop.
>
> When you do a network auth, the new process is spawned locally with the
> current creds and any network access is with the new creds. When you do a
> local auth, everything is done under the new creds.
>
> As to your specific questions.
>
> If a network auth, then notepad is running locally as UserA but when it
> attaches to a remote resource as UserB.
>
> If a local auth, it will be running as UserB and attach to remove
> resources as UserB.
>
> In neither case will local networked drive letters be available to it for
> use.
>
>
> --
> Joe Richards Microsoft MVP Windows Server Directory Services
> Author of O'Reilly Active Directory Third Edition
> www.joeware.net
>
>
> ---O'Reilly Active Directory Third Edition now available---
>
> http://www.joeware.net/win/ad3e.htm
>
>
> djc wrote:
>> lets say I'm logged in as userA, I launch a command prompt using runas
>> with credentials of userB, then from that userB command prompt I launch
>> an applications such as notepad.exe.
>>
>> Is notepad.exe still running in the security context of userB? So if I
>> went File > Open from notepad would I be able to access network
>> resources, namely folder shares, with userB's credentials?



Similar ThreadsPosted
Inside Runas /netonly February 6, 2006, 9:31 pm
How does runas with /netonly option work? February 8, 2006, 8:12 am
Machine Cert Question - Web Request Question February 13, 2008, 1:11 pm
CA Question August 1, 2006, 11:16 am
ASR question. September 15, 2006, 8:13 pm
SCW question. November 7, 2006, 11:17 am
CA question November 30, 2007, 12:53 pm
EFS question October 10, 2008, 3:32 pm
eventcombMT question December 8, 2005, 11:34 am
.NET Identity question January 19, 2006, 7:59 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap