|
|
#1 |
|
Big D
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
![]() |
NTFS Security Settings
Hi,
I have Windows XP installed, i usually log in as the user "danial" but i have made some folder only accessible to "Administrator" only. Is there any way i can open those folder without logging out as logging in as "Administrator". Is there something similar to the Windows 2000 system, where you can Shift+Right click and run an executeable as "Administrator" by providing admin password. Thanks in advance. Danial
__________________
[VBF RSS Feed] There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side. If I have been helpful, Please Rate my Post. Thanks. This post was powered by :
Last edited by Danial; Dec 13th, 2003 at 01:11 PM. |
|
|
|
|
|
#2 |
|
Elite Member ®
Join Date: Aug 02
Location: RUH
Posts: 8,036
![]() ![]() |
Grant the other user write or read permission on that folder only . This is the only solution I can think of right now .
__________________
|
|
|
|
|
|
#3 | |
|
Big D
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
![]() |
Quote:
Anyone got any ideas ?
__________________
[VBF RSS Feed] There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side. If I have been helpful, Please Rate my Post. Thanks. This post was powered by :
|
|
|
|
|
|
|
#4 |
|
Elite Member ®
Join Date: Aug 02
Location: RUH
Posts: 8,036
![]() ![]() |
OK , what about using any 3 party tool ?
__________________
|
|
|
|
|
|
#5 | |
|
Big D
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
![]() |
Quote:
Thanks.
__________________
[VBF RSS Feed] There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side. If I have been helpful, Please Rate my Post. Thanks. This post was powered by :
|
|
|
|
|
|
|
#6 |
|
Elite Member ®
Join Date: Aug 02
Location: RUH
Posts: 8,036
![]() ![]() |
All it does is protecting the file or the folder with a password regardless of the logged in user . You wanna have a look at some ?
__________________
|
|
|
|
|
|
#7 |
|
Lively Member
Join Date: Apr 03
Location: Certified Microsoft Certifier of Certifications Office
Posts: 114
![]() |
...
runas [options...] program | or runas /? at the cmd. |
|
|
|
|
|
#8 | |
|
Big D
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
![]() |
Quote:
Papacorn, i think you have probably solved my problem, i am just trying out the command, and will probably write a simple vb tool which adds a "Open As.." menu to the windows Context Menu. I will let u know if it works. Thanks a lot papa !! Danial
__________________
[VBF RSS Feed] There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side. If I have been helpful, Please Rate my Post. Thanks. This post was powered by :
|
|
|
|
|
|
|
#9 |
|
Frenzied Member
Join Date: Aug 02
Location: Australia
Posts: 1,718
![]() ![]() |
Runas only works for executables, not files or folders. There is no way of opening a file if you do not have permission to it. If the user is an administrator and you want to frequently use it, add Administrators then both can. Having Administrator only gives you no access unless you logon as administrator. To find out what permissions you have under Windows XP, goto the security tab, click advanced and effective permissions. Click select and type in a username and click ok. The permissions that they person has will be displayed.
__________________
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified) |
|
|
|
|
|
#10 | |
|
Big D
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
![]() |
It does....
Quote:
RUNAS [ [/noprofile | /profile] [/env] [/netonly] ] /user:<UserName> program RUNAS [ [/noprofile | /profile] [/env] [/netonly] ] /smartcard [/user:<UserName>] program /noprofile specifies that the user's profile should not be loaded. This causes the application to load more quickly, but can cause some applications to malfunction. /profile specifies that the user's profile should be loaded. This is the default. /env to use current environment instead of user's. /netonly use if the credentials specified are for remote access only. /savecred to use credentials previously saved by the user. This option is not available on Windows XP Home Edition and will be ignored. /smartcard use if the credentials are to be supplied from a smartcard. /user <UserName> should be in form USER@DOMAIN or DOMAIN\USER program command line for EXE. See below for examples Examples: > runas /noprofile /user:mymachine\administrator cmd > runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc" > runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\"" It does work for files indeed, i havent been able to make it work for folders yet.
__________________
[VBF RSS Feed] There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side. If I have been helpful, Please Rate my Post. Thanks. This post was powered by :
|
|
|
|
|
|
|
#11 |
|
Frenzied Member
Join Date: Aug 02
Location: Australia
Posts: 1,718
![]() ![]() |
Oh, well so you can, learn something new every day
, Still useless if you don't know the file name.
__________________
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified) |
|
|
|
|
|
#12 |
|
Frenzied Member
Join Date: Aug 02
Location: Australia
Posts: 1,718
![]() ![]() |
Just though of something, try:
runas /env /user:user@domain.microsoft.com "explorer.exe C:\" That might work.
__________________
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified) |
|
|
|
|
|
#13 |
|
PowerPoster
Join Date: Dec 01
Location: Melbourne, Australia
Posts: 2,765
![]() |
Give the Daniel account Administrative rights, or, move the folder into a one of the Shared Documents Folders.
__________________
Don't Rate my posts. |
|
|
|
|
|
#14 |
|
^:^...ANGEL...^:^
Join Date: Mar 02
Location: Melbourne, AUSTRALIA
Posts: 2,626
![]() |
XP has got a nice feature called quick user switch. You can switch to Administrator while still logged on as daniel.
Will do the trick.
__________________
■ CodeLake ■ Monitor Testing Utility ■ Database Utility ■ Nirav Patel ■ GUJJU ■ String Functions ■ Choose the right Microsoft database |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|