Saturday, January 8, 2011
Secure your web.config file
ScottGu has an excellent article on the latest ASP.NET Security vulnerability and a hacker could download your web.config file which may contain sensitive data. Solution is to include a simple "CustomError" section. Read more
NTFS Permission using Command Prompt and .NET Framework Class Library
To provide NTFS Permission to any file using the Command Prompt, here is the command
CACLS "C:\test.bat" /e /p EveryOne:f
The above command gives "Full" permission to the file "test.bat" for "EveryOne" user
For more info, visit http://technet.microsoft.com/en-us/library/bb490872.aspx
VB.NET code for the same,
Imports System.IO
Imports System.Security.AccessControl
Dim fSecurity As FileSecurity
fSecurity = File.GetAccessControl(fileName)
fSecurity.AddAccessRule(New FileSystemAccessRule("EveryOne", FileSystemRights.Write, AccessControlType.Allow))
File.SetAccessControl(fileName, fSecurity)
Subscribe to:
Comments (Atom)
Deploying ASP.NET MVC app on Ubuntu
.NET 10 MVC Deployment on Ubuntu with Nginx, systemd, PostgreSQL & Cloudflare Architecture: Browser → Cloudflare (Flexible SSL)...
-
Angular 21 @angular-architects/native-federation Shell + Remotes Auth + Roles Micro Frontends with Angular 21: A St...
-
Scott Guthrie has explained in detail regarding SQL Compact CE 4.0 embedded database in his article. Godaddy customer support idiots have...
-
.NET 10 MVC Deployment on Ubuntu with Nginx, systemd, PostgreSQL & Cloudflare Architecture: Browser → Cloudflare (Flexible SSL)...