I just solve my question just using this
Link and including this namespace
System.Security.Principal.
I just used below code to change permissions on the root folder (e.g. "G:\")
DirectorySecurity sec = Directory.GetAccessControl(path);
SecurityIdentifier everyone = new SecurityIdentifier(WellKnownSidType.WorldSid, null);
sec.AddAccessRule(new FileSystemAccessRule(everyone, FileSystemRights.Modify | FileSystemRights.Synchronize, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow));
Directory.SetAccessControl(path, sec);