To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > General > General PC

Reply Post New Thread
 
Thread Tools Display Modes
Old Dec 13th, 2003, 07:50 AM   #1
Danial
Big D
 
Danial's Avatar
 
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
Danial will become famous soon enough (80+)
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 12:11 PM.
Danial is offline   Reply With Quote
Old Dec 13th, 2003, 11:46 AM   #2
Pirate
Elite Member ®
 
Join Date: Aug 02
Location: RUH
Posts: 8,065
Pirate has a spectacular aura about (125+)Pirate has a spectacular aura about (125+)
Grant the other user write or read permission on that folder only . This is the only solution I can think of right now .
__________________
Pirate is offline   Reply With Quote
Old Dec 13th, 2003, 11:51 AM   #3
Danial
Big D
 
Danial's Avatar
 
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
Danial will become famous soon enough (80+)
Quote:
Originally posted by Pirate
Grant the other user write or read permission on that folder only . This is the only solution I can think of right now .
I dont really want to grant any access right to any other users other then Administrator. I am looking for a way where the Administrator can access those folders regarldless of who is logged in. If it can be done through code i would interested in that too.

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 :
Danial is offline   Reply With Quote
Old Dec 13th, 2003, 11:54 AM   #4
Pirate
Elite Member ®
 
Join Date: Aug 02
Location: RUH
Posts: 8,065
Pirate has a spectacular aura about (125+)Pirate has a spectacular aura about (125+)
OK , what about using any 3 party tool ?
__________________
Pirate is offline   Reply With Quote
Old Dec 13th, 2003, 11:55 AM   #5
Danial
Big D
 
Danial's Avatar
 
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
Danial will become famous soon enough (80+)
Quote:
Originally posted by Pirate
OK , what about using any 3 party tool ?
Do know of any 3rd party tools that can provide me with this feature?

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 :
Danial is offline   Reply With Quote
Old Dec 13th, 2003, 11:59 AM   #6
Pirate
Elite Member ®
 
Join Date: Aug 02
Location: RUH
Posts: 8,065
Pirate has a spectacular aura about (125+)Pirate has a spectacular aura about (125+)
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 ?
__________________
Pirate is offline   Reply With Quote
Old Dec 13th, 2003, 11:59 AM   #7
papacorn
Lively Member
 
papacorn's Avatar
 
Join Date: Apr 03
Location: Certified Microsoft Certifier of Certifications Office
Posts: 114
papacorn is an unknown quantity at this point (<10)
...

runas [options...] program | or runas /? at the cmd.
papacorn is offline   Reply With Quote
Old Dec 13th, 2003, 12:09 PM   #8
Danial
Big D
 
Danial's Avatar
 
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
Danial will become famous soon enough (80+)
Quote:
Originally posted by papacorn
...

runas [options...] program | or runas /? at the cmd.
Pirate, thanks but no i am not after Folder Encryption.

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 :
Danial is offline   Reply With Quote
Old Dec 15th, 2003, 12:32 AM   #9
Ideas Man
Frenzied Member
 
Ideas Man's Avatar
 
Join Date: Aug 02
Location: Australia
Posts: 1,718
Ideas Man has a spectacular aura about (125+)Ideas Man has a spectacular aura about (125+)
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)
Ideas Man is offline   Reply With Quote
Old Dec 15th, 2003, 12:51 AM   #10
Danial
Big D
 
Danial's Avatar
 
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
Danial will become famous soon enough (80+)
It does....

Quote:
Originally posted by Ideas Man
Runas only works for executables, not files or folders.
RUNAS USAGE:

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 :
Danial is offline   Reply With Quote
Old Dec 15th, 2003, 03:33 AM   #11
Ideas Man
Frenzied Member
 
Ideas Man's Avatar
 
Join Date: Aug 02
Location: Australia
Posts: 1,718
Ideas Man has a spectacular aura about (125+)Ideas Man has a spectacular aura about (125+)
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)
Ideas Man is offline   Reply With Quote
Old Dec 15th, 2003, 04:04 AM   #12
Ideas Man
Frenzied Member
 
Ideas Man's Avatar
 
Join Date: Aug 02
Location: Australia
Posts: 1,718
Ideas Man has a spectacular aura about (125+)Ideas Man has a spectacular aura about (125+)
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)
Ideas Man is offline   Reply With Quote
Old Dec 15th, 2003, 04:58 AM   #13
Pc_Madness
PowerPoster
 
Pc_Madness's Avatar
 
Join Date: Dec 01
Location: Melbourne, Australia
Posts: 2,765
Pc_Madness is on a distinguished road (10+)
Give the Daniel account Administrative rights, or, move the folder into a one of the Shared Documents Folders.
__________________
Don't Rate my posts.
Pc_Madness is offline   Reply With Quote
Old Dec 19th, 2003, 06:17 AM   #14
wrack
^:^...ANGEL...^:^
 
wrack's Avatar
 
Join Date: Mar 02
Location: Melbourne, AUSTRALIA
Posts: 2,658
wrack is on a distinguished road (10+)
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.
wrack is offline   Reply With Quote
Reply

Go Back   VBForums > General > General PC


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:19 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.