Thread: Grant read/write/modify permissions to everyone

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445

    Grant read/write/modify permissions to everyone

    I'm having trouble locating information on how to grant read/write/modify permissions to the special 'everyone' object on a folder, with the permissions inherited by the child objects. I have googled it extensively, and the only information I can find is using C# or C++/CLI. I'm looking for a native Win32 solution to this problem.

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Is this what you're looking for?

    http://www.devx.com/cplus/Article/16711/1954

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    That's a really good start. thanks.

  4. #4
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    SetNamedSecurityInfo is what you're looking for, theres links to some example usages at the bottom.

    Bear in mind that granting such permissions to the Everyone group can potentially allow the Guest and anonymous logon accounts equivalent access depending on the computer/domain security policy so you might want to guard against that by denying access for those. Another way would be to grant the access to the Authenticated Users group instead of everyone, although I can't remember whether that includes the Guest account so have a google to make sure if you go down that path.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Grant Smith, aka Denthor of Asphyxia
    By dhruba.bandopad in forum C++ Programming
    Replies: 3
    Last Post: 10-03-2006, 08:07 AM
  2. displaying file permissions
    By bobthebullet990 in forum C Programming
    Replies: 5
    Last Post: 11-26-2005, 07:04 AM
  3. C File permissions
    By vipers in forum C Programming
    Replies: 1
    Last Post: 04-24-2004, 12:00 PM
  4. Linux, forms, dirs, permissions, cgi-bin, and C
    By ronin in forum C Programming
    Replies: 0
    Last Post: 12-19-2003, 06:10 PM