Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
QuestionHyperlinks to access outlook items Pin
asasov5-May-08 1:49
asasov5-May-08 1:49 
AnswerRe: Hyperlinks to access outlook items Pin
Anthony Mushrow5-May-08 2:19
professionalAnthony Mushrow5-May-08 2:19 
GeneralRe: Hyperlinks to access outlook items Pin
asasov5-May-08 2:31
asasov5-May-08 2:31 
GeneralRe: Hyperlinks to access outlook items Pin
Anthony Mushrow5-May-08 2:37
professionalAnthony Mushrow5-May-08 2:37 
GeneralRe: Hyperlinks to access outlook items Pin
asasov5-May-08 2:40
asasov5-May-08 2:40 
QuestionAsynCallback Pin
AlexPizzano5-May-08 1:28
AlexPizzano5-May-08 1:28 
QuestionHow to access the rights and authorised users of a shared folder (in C# web based application)? Pin
Deepali Dhingra5-May-08 0:48
professionalDeepali Dhingra5-May-08 0:48 
AnswerRe: How to access the rights and authorised users of a shared folder (in C# web based application)? Pin
Peter Josefsson Sweden5-May-08 3:01
Peter Josefsson Sweden5-May-08 3:01 
This is because there are two levels of permissions in play when you share a folder:

1. The permissions on the *folder* in the file system (NTFS). Accessible via the "Security" tab in the properties dialog box for the folder. These permissions are in effect even when you access the folder locally (not only via networking). The permissions are stored in the file system, and are what you get when you query the file system (NTFS).

2. The permissions on the *share* (accessible via the "Permissions" button on the "Sharing" tab). These apply only when accessing the share via the file server component (lanmanserver - which started its life as a port of OS/2 LAN Manager, hence the name) in the system. These permissions (along with the share name and other settings) are stored in the registry (HKLM, System, CurrentControlSet, Services, lanmanserver, Shares).

In order to access a file via a file share, you need the appropriate permissions on BOTH.

Most likely you are querying the file system, so you get the file system permissions. I suspect you have to use another API (or framework namespace) to find the share permissions (never done it myself).

Before Windows Server 2003 best practice (and default) was to grant everyone full control to the share and then control permissions in the file system. Most people still do that (as those permissions will be enforced even if users use other protocols/services to get at the files). The default configuration in WS2003 is to only grant everyone read-only access to new shares, though.

Confusing? Yes, but that's unavoidable. The file server has to be able to secure stuff residing on insecure file systems (such as FAT), and therefore needs an additional layer of security. When you use NTFS, however, there's not much point in using that layer - and as noted, most people tend to use "everyone, full control" at share level and then control access with the NTFS permissions.

HTH

--
Peter

GeneralRe: How to access the rights and authorised users of a shared folder (in C# web based application)? Pin
Deepali Dhingra6-May-08 19:27
professionalDeepali Dhingra6-May-08 19:27 
GeneralRe: How to access the rights and authorised users of a shared folder (in C# web based application)? Pin
Peter Josefsson Sweden6-May-08 22:04
Peter Josefsson Sweden6-May-08 22:04 
QuestionWhile editing a cell that is newly created in GridView throws Index out of range error Pin
vytheese4-May-08 23:19
professionalvytheese4-May-08 23:19 
AnswerRe: While editing a cell that is newly created in GridView throws Index out of range error Pin
Luc Pattyn4-May-08 23:33
sitebuilderLuc Pattyn4-May-08 23:33 
GeneralRe: While editing a cell that is newly created in GridView throws Index out of range error Pin
vytheese5-May-08 0:13
professionalvytheese5-May-08 0:13 
QuestionProblem with Modal Form Pin
MehmetFurkan4-May-08 22:21
MehmetFurkan4-May-08 22:21 
AnswerRe: Problem with Modal Form Pin
Anindya Chatterjee4-May-08 22:39
Anindya Chatterjee4-May-08 22:39 
AnswerRe: Problem with Modal Form Pin
Luc Pattyn4-May-08 23:14
sitebuilderLuc Pattyn4-May-08 23:14 
QuestionException : RowNotInTableException was unhandled by user code Pin
cocoonwls4-May-08 22:04
cocoonwls4-May-08 22:04 
QuestionHow to intercept Rapidshare file download in WebBrowser control? Pin
Anindya Chatterjee4-May-08 21:39
Anindya Chatterjee4-May-08 21:39 
AnswerRe: How to intercept Rapidshare file download in WebBrowser control? Pin
Vikram A Punathambekar4-May-08 23:14
Vikram A Punathambekar4-May-08 23:14 
GeneralRe: How to intercept Rapidshare file download in WebBrowser control? Pin
Anindya Chatterjee4-May-08 23:36
Anindya Chatterjee4-May-08 23:36 
GeneralRe: How to intercept Rapidshare file download in WebBrowser control? Pin
Vikram A Punathambekar5-May-08 0:07
Vikram A Punathambekar5-May-08 0:07 
QuestionThis application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
Member 39190494-May-08 21:05
Member 39190494-May-08 21:05 
AnswerRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
Christian Graus4-May-08 21:10
protectorChristian Graus4-May-08 21:10 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
Member 39190494-May-08 21:33
Member 39190494-May-08 21:33 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
Christian Graus4-May-08 22:55
protectorChristian Graus4-May-08 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.