SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2011
    Location
    Amsterdam, The Netherlands
    Posts
    167
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    What is the basic structure/set-up of a permissions management system?

    I created a custom CMS, with CKEditor and CKFind. Sweet and simple, even if I say so myself. And I know how to set the write permissions on the editable files for the client (owner), with FileZilla. But how do I create a system to let the (Linux & PHP) system identify the owner? That owner is to edit the files with CK~ in his browser, not with a code editor like we use. And he should neither have to use an FTP upload program.

    I've been googling for a couple of hours, but all I get is tutorials on the codes for the permissions (r-w-x, and the numeric codes). Nothing on the basic structure/set-up of a permissions/access management system for use 'from the outside', when the owner uses a browser.

    Does anyone know a good tutorial on that, or can anyone explain me the basics?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,260
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    Not the most helpful, but I think you'll have better luck searching for "role" eg.
    http://msdn.microsoft.com/en-us/libr...vs.100%29.aspx
    http://docs.oracle.com/cd/E27363_01/...management.htm

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2011
    Location
    Amsterdam, The Netherlands
    Posts
    167
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the response, Mittineague.

    I guess the title of my question suggests that I was looking for a (semi-)automated system to create and delete owner and (members of) groups with special privileges. For which you provided some useful links. However, I was just in the dark about the general system to let the server identify/authenticate those with w permissions. I don't mind creating such accounts entirely manually, because my clients are private persons and small to medium businesses at the most.

    Fortunately, that 'in the dark' has changed to 'in the twilight', because I later realized that apart from the traditional PHP & members database system, of which I wouldn't know how to upgrade that to a select w permissions system, there is such a thing as .htaccess-controlled access. And I found this tutorial, which already explains a number of matters.

    I also realized later that in practice, there is no difference between owner and (members of) said groups, because no one will get x permissions anyway. But I still have a few questions, because this whole security thing is quite new to me:

    1. Am I right in thinking that under normal circumstances one is only assumed to be the owner if one approaches directories and files with an FTP program?
    2. Is there a PHP access/permissions method for this purpose after all, and if so, how would that be constructed?
    3. Would it be advisable to have PHP temporarily change the permissions on a file, and set them back to read-only after the editing by the client is done? Would that even be a must-do?
    4. Would the security experts here have other suggestions, or maybe tips if I would use either .htaccess or PHP?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •