Grant read/write/modify permissions to everyone

This is a discussion on Grant read/write/modify permissions to everyone within the Windows Programming forums, part of the Platform Specific Boards category; I'm having trouble locating information on how to grant read/write/modify permissions to the special 'everyone' object on a folder, with ...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    2,304

    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
    1,597
    Is this what you're looking for?

    http://www.devx.com/cplus/Article/16711/1954
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

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

  4. #4
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    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, 06: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, 05:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21