Give permission to folder/file without giveing ownership

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    Give permission to folder/file without giveing ownership

    This is a totally n00b question but I'm saying good bye to Windows slowly and I've come across where I need to own a directory but I want to give write permission to Smarty (Apache user). Right now I change ownership back and forth. I don't want to give world permissions.

    Do i really HAVE to create a group with me and apache in it and give write permission to that group? Is there another way like windows to Select multiple users and give each their own different permissions?


    Thanks guys,



    Dan
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Have a look at chown and chmod commands. chown changes the file's owner while chmod change the permissions without changing the owner.

    Comment

    • ashitpro
      Recognized Expert Contributor
      • Aug 2007
      • 542

      #3
      There is no way here like windows,
      You can create a group(as you thought) and give the write permission to it.

      Regards,
      Ash

      Comment

      Working...