Can't change permissions

Discussion in 'Site & Server Administration' started by fryman, Jul 18, 2005.

  1. #1
    I have a bunch of pages on my site which I can't edit at all, if I try to save them with FP i get a message saying that it can't change permissions. I tried changing them with ftp and it says "operation not permitted", I tried using the filemanager from Cpanel and it won't let me either.

    WTF??? How can I do this? I need to put the coop's code on several pages and I can't because they aren't writable
     
    fryman, Jul 18, 2005 IP
  2. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #2
    try putty!
     
    Crazy_Rob, Jul 18, 2005 IP
  3. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #3
    ouch... too complicated for me :(
     
    fryman, Jul 18, 2005 IP
  4. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #4
    Never worked w/ unix before?
     
    Crazy_Rob, Jul 18, 2005 IP
  5. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #5
    All you have to do is CD to the folder you want to change and then 'CHMOD -R 777 *'
     
    Crazy_Rob, Jul 18, 2005 IP
  6. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #6
    Nope, have a server admin that does all that stuff for me, but if you say it can be done by putty I'll ask him to take a look.

    BTW, do you have any idea of why this happens? Damn frustrating not being able to change a permission via ftp
     
    fryman, Jul 18, 2005 IP
  7. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #7
    Nope, it happens on one of my sites and I have no idea why!
     
    Crazy_Rob, Jul 18, 2005 IP
  8. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #8
    This will give full access to everybody to the entire directory. Not a good idea. Good thing it's all upper case and it won't work anyway :D
     
    J.D., Jul 18, 2005 IP
  9. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #9
    I noticed that after I posted- ha!

    Yeah, 777 will give access to everyone. So what would he want- 774?
     
    Crazy_Rob, Jul 18, 2005 IP
  10. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #10
    OK, l am in putty now...

    the folder is called news, inside that folder there are about 100 htm pages which I need to change permission to edit them. How can I do it? I mean, how can I select those pages without having to edit one by one? Inside thefolder I also have some scripts and things I don't want to change permissions, so I can't just change them for the entire folder
     
    fryman, Jul 18, 2005 IP
  11. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #11
    I haven't had to do this stuff in years but I think you can wildcard an extension.

    i.e., *.htm
     
    Crazy_Rob, Jul 18, 2005 IP
  12. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #12
    You want the most restrictive permissions you can set and still do what you need to.

    644 will allow the owner of the file to read and write, users in the same group will be able to read, but not write or execute, and everyone else in the world will be able to read but not write or execute. This is normally the most secure setting that will still allow you to do what you need.
     
    tflight, Jul 18, 2005 IP
  13. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Can't say - it depends on the setup. That is, who's the owner, what's the Apache user etc. In general, the owner and the group can read and write, the others can only read. Sometimes Apache's set up to use the x-bit hack for SSI's, you'd need to allow execute for all/some files as well (you also need execute on directories to traverse them).

    The question I'd ask myself here is that if the permissions got screwed up, how'd they change in the first place (that is, if files were accessible before).

    J.D.
     
    J.D., Jul 18, 2005 IP
  14. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #14
    The pages are created by a script, it gets news from a rss feed and writes it into an html page.
    Anyway, after playing around with putty I got it to work.
     
    fryman, Jul 19, 2005 IP