System administrators please help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lucky482
    Confirmed User
    • Mar 2002
    • 252

    #1

    System administrators please help

    I have a php script installed and when it creates folders, the folders give me a 550 permission denied when I try to edit/delete that folder.
    What do I need to do to be able to delete these folders?
    Can anyone help?

    Thanks
  • who
    So Fucking Banned
    • Aug 2003
    • 19593

    #2
    you need change the ownership of the folders after they're created.

    Comment

    • lucky482
      Confirmed User
      • Mar 2002
      • 252

      #3
      Originally posted by who
      you need change the ownership of the folders after they're created.
      How do you do that?

      Comment

      • who
        So Fucking Banned
        • Aug 2003
        • 19593

        #4
        Originally posted by lucky482
        How do you do that?
        http://www.php.net/chown

        Comment

        • lucky482
          Confirmed User
          • Mar 2002
          • 252

          #5
          Originally posted by who
          O.K. so I have to have my programmer add chown code to the script which changes the ownership of the folders after it's created? Thanks I will talk to the programmer for that.

          But how can I delete these folders right now? Either through ftp or ssh.

          Comment

          • Masterchief
            Confirmed User
            • Jun 2006
            • 530

            #6
            Originally posted by who
            Probably wouldn't work since you would have to be nuts to allow sudo execution for nobody/www/etc

            Comment

            • Masterchief
              Confirmed User
              • Jun 2006
              • 530

              #7
              Originally posted by lucky482
              But how can I delete these folders right now? Either through ftp or ssh.
              have a script that's running under the web server's context chmod them 777

              Comment

              • lucky482
                Confirmed User
                • Mar 2002
                • 252

                #8
                Originally posted by Masterchief
                have a script that's running under the web server's context chmod them 777
                I tried chmod the folders to 777 in ftp manually but it's still not allowing me to delete the folders. Keeps giving me 550 permission denied.

                Comment

                • Masterchief
                  Confirmed User
                  • Jun 2006
                  • 530

                  #9
                  Originally posted by lucky482
                  I tried chmod the folders to 777 in ftp manually but it's still not allowing me to delete the folders. Keeps giving me 550 permission denied.
                  you need to write a script that does it and run it under the web server's context, then you'll be able to delete using ftp. alternatively if you have root just SSH/SFTP in and delete them manually.

                  Comment

                  • lucky482
                    Confirmed User
                    • Mar 2002
                    • 252

                    #10
                    ok thanks. I'll have the programmer write the script

                    Comment

                    Working...