Folder Permissions

This is a discussion on Folder Permissions within the C Programming forums, part of the General Programming Boards category; Hey guys, I am trying to change user permissions for a set of folders. I also need to add more ...

  1. #1
    Registered User MRIce's Avatar
    Join Date
    Jun 2012
    Posts
    6

    Question Folder Permissions

    Hey guys,

    I am trying to change user permissions for a set of folders. I also need to add more users and edit their permissions.

    Does anyone know how to do this or could point me to a good post?

    Thanks.

    Also I posted this twice, because I realized I'd posted it in the wrong section. How do you delete posts? I hit edit/delete, but couldn't find a delete button at all.

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,652
    That's likely going to depend on the OS. chmod() may be what you want., or maybe something in MSDN if it's Windows.

  3. #3
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    Posts
    435
    Why do you need to do this programmatically? Seems a bit of a dodgy thing to do, to have a program changing permissions on folders.

    Why not just use the supplied OS tools (e.g. subinacl, etc.)?

    - Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
    - A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
    - The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.

  4. #4
    Registered User MRIce's Avatar
    Join Date
    Jun 2012
    Posts
    6
    I have different permissions to set for 2700 different folders. I just want to avoid having to do a right click and change permission on every single one. Because of how the folders are set up, I can't get away with doing a bulk permission change. I'll look into Subinacl. I'm trying to do it in C is because I also want a knowledge base in C and I might as well learn as I go.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 03-29-2012, 03:55 PM
  2. Clean Windows Temp folder and the User Temp folder?
    By patrick22 in forum Windows Programming
    Replies: 11
    Last Post: 01-27-2008, 04:29 PM
  3. deleting a folder AND copying a folder
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 05-01-2004, 09:48 AM

Tags for this Thread


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