How do you do....it? Thread, Use RUNAS to open a shared folder in Technical; For a long time I've had the bad habit of working as domain admin (yes I know...)
Now I've adopted ...
-
31st January 2006, 12:20 PM #1 Use RUNAS to open a shared folder
For a long time I've had the bad habit of working as domain admin (yes I know...)
Now I've adopted best practise and am using a normal user account and runas when needed. The only thing I haven't worked out is how to use runas to open a shared folder on a server. I've tried
runas /user:domain\administrator //server/share
but it doesn't work.
Any suggestions? I've read that it's possible to create a shortcut with other credentials, but that leaves the shortcut behind afterwards.
-
-
IDG Tech News
-
31st January 2006, 12:30 PM #2 Re: Use RUNAS to open a shared folder
Code:
runas /user:domain\administrator "explorer \\server\share"
-
-
31st January 2006, 12:38 PM #3 Re: Use RUNAS to open a shared folder
Thanks, Geoff
I've tried this, both at the run prompt, and again at a command prompt to see what was happening. I get this, but no window opens.
H:\>runas /user:uws\administrator "explorer \\wharfedale-pdc\apps"
Enter the password for uws\administrator:
Attempting to start explorer \\wharfedale-pdc\apps as user "uws\administrator" .
..
H:\>
I'm missing something somewhere. Help!
-
-
31st January 2006, 12:46 PM #4 Re: Use RUNAS to open a shared folder
Why not just \\server\share and put in your uid&pass when prompted ?
-
-
31st January 2006, 12:48 PM #5 Re: Use RUNAS to open a shared folder
More info.
If I try to create a shortcut to access it, the 'run with different credentials' option is greyed out, so I can't set it.
-
-
31st January 2006, 12:50 PM #6 Re: Use RUNAS to open a shared folder
@pooley
I don't get prompted, presumably because my account already has read access to the share. Explorer just opens the window without a prompt, as it should, but I don't have write access.
-
-
31st January 2006, 12:51 PM #7 Re: Use RUNAS to open a shared folder
-
-
31st January 2006, 01:12 PM #8 Re: Use RUNAS to open a shared folder
Here's something else weird. If I click on the 'command prompt' icon from the start menu and run as domain admin, I get:-
C:\windows\system32\cmd.exe
The directory name is invalid.
But if I run the command prompt with my normal account, it works fine.
I've checked the ntfs permissions, and domain admins (as members of local admins) have full access to cmd.exe.
Similar thing happens if I RUNAS the event viewer. Works with normal acct but not the domain admin. The only things it does work for are the server 2003 admin pack tools.
-
-
31st January 2006, 01:26 PM #9 Re: Use RUNAS to open a shared folder
The command prompt thing sounds like it is trying to start the prompt in an invalid location. Is it picking this shortcut from a redirected start menu? Perhaps you created the shortcut on a system where windows lived in c:\windows and you are trying to run it on a system where windows lives in c:\winnt ? The normal users command prompt will start in their home directory, so if this has been set they won't see the same problem.
-
-
31st January 2006, 02:08 PM #10 Re: Use RUNAS to open a shared folder
Are you wanting to use runas on an already open share? If so that you cannot do what you want to do. Its the same as you cannot use runas to run exe's on network drives since your already taking to the server using one set of credentials. Older versions of Windows NT allowed this but XP and 2003/2000 server do not. Microsoft altered the way access to shares works and your user sessions.
-
-
31st January 2006, 02:40 PM #11 Re: Use RUNAS to open a shared folder
Thanks, bob & quackers - I'll look into it later.
I've installed SUperior SU, and very good it is too.
-
-
31st January 2006, 03:05 PM #12 Re: Use RUNAS to open a shared folder
You may have to map a drive first to the share as a given user, and then just run explorer.exe and point it to the newly mounted network drive.
-
-
31st January 2006, 07:13 PM #13 Re: Use RUNAS to open a shared folder
I frequently use the local admin account, then map shares with my credentials. Is this good practice?
-
SHARE:
Similar Threads
-
Replies: 5
Last Post: 3rd January 2008, 03:08 PM
-
By fred54 in forum Windows
Replies: 3
Last Post: 12th December 2007, 09:52 AM
-
Replies: 2
Last Post: 30th May 2007, 01:09 PM
-
Replies: 15
Last Post: 12th October 2006, 09:37 PM
-
By Norphy in forum Windows
Replies: 6
Last Post: 23rd March 2006, 06:06 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules