Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 12 of 12

This is a discussion on File permissions in the Shared & Semi-Dedicated forum
Hi all, my question might be a little stupid but here it goes. I have 2 Wordpress blogs, one hosted here with Jag and one ...

  1. #1
    JPC Member
    Join Date
    Nov 2006
    Posts
    8

    File permissions

    Hi all,

    my question might be a little stupid but here it goes.

    I have 2 Wordpress blogs, one hosted here with Jag and one with another shared host.

    On my first blog, NOT hosted by Jag, changing file permissions using my FTP client works : they are only writable when I set them to writable.

    However, for the blog that is hosted here, I can't seem to make my files not-writable. My FTP client shows the permissions as if they were changed but in fact, permissions don't seem to change at all. I've tried changing the file permissions using the Cpanel file manager but still, nothing does it.

    So I guess my question is : is it possible that there is some setting on my account that automatically sets all file permissions to writable? I don't know much about this, any help would be appreciated! Oh, and if somebody knows of a good way to check file security (perhaps an online vulnerability checking utility), please do share!

    Thanks!

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    I change permissions all the time, via shell, so I highly doubt there is anything automatic taking place. It's probably an issue with your FTP client, but I dunno, since I don't use FTP...

    You might try WinSCP instead...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    Perhaps the difference is that here your web server is running under your userid instead of another user named "nobody"?
    Good luck

  4. #4
    JPC Member
    Join Date
    Nov 2006
    Posts
    8
    Thanks for replying.

    Via shell? Forgive my ignorance, but how do you do that?

    Thanks!

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by sputnik View Post
    Thanks for replying.

    Via shell? Forgive my ignorance, but how do you do that?
    Shell access, e.g. SSH.

    It comes *free* with all accounts here, AFAIK...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  6. #6
    草分け
    Join Date
    Aug 2006
    Location
    Bellthorpe
    Posts
    214
    SSH is indeed 'free', but you have to request support to enable access.

  7. #7
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    This is the reason for files being "writable":

    Quote Originally Posted by Ron View Post
    Perhaps the difference is that here your web server is running under your userid instead of another user named "nobody"?
    Thanks Ron

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  8. #8
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    In most hosting environments a version of PHP known as mod_php is compiled into the Apache web server. This version is always running and should theoretically be faster (in reality this is debatable), but the downside is that all scripts are run as the same user that Apache runs under, so there are some security issues.

    JPC recently changed to a PHP as CGI environment. The benefit here is that scripts run under your user, meaning that files they create are owned and writable by you. In this setup you don't have to worry about setting group or world permissions on your files and it is easier to ensure that no one else will be able to access your sensitive files.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  9. #9
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by masood View Post
    This is the reason for files being "writable":
    iiRONic, no?

    He doesn't have permission to change permissions...

    Is cPanel still a nobody', so to speak?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  10. #10
    JPC Member
    Join Date
    Nov 2006
    Posts
    8
    It's great to see so many people willing to help out. Thanks guys.

    However, I haven't yet solved my problem (perhaps I'll get acquainted with SSH soon...). I still can't restrict my files from being writable. I modify my files using my Wordpress dashboard built-in editor and fear others could do so as well online. Does anybody know of an easy way for me to see/test how easy it would be for somebody to hack my files?

    I'm also not quite sure that I get that :

    Quote Originally Posted by Ron View Post
    Perhaps the difference is that here your web server is running under your userid instead of another user named "nobody"?
    Would anyone care to elaborate?

    Thanks for your help guys. Gotta go. Will be back later this evening.

  11. #11
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    Quote Originally Posted by sputnik View Post
    I still can't restrict my files from being writable.
    No one can. They will remain writable in one way or another. If you can stop php from touching the file, ssh is still available. In your old hosting account, they are writable by anyone on your server (a security nightmare). Here they are writable only by you.

    If all you want is to stop wordpress from complaining that they are writable, you can ssh in your account and issue this command

    chmod 440 filename.php

    or

    chmod 444 filename.html

    where filename is the file you want to make read only. This can be done via ssh only. To make them editable again, you will need to do

    chmod 644 filename

    Please check this section of FAQ on ssh:

    http://www.jaguarpc.com/support/kbas...ion=list&cat=8

    Quote Originally Posted by sputnik View Post
    Does anybody know of an easy way for me to see/test how easy it would be for somebody to hack my files?
    Please go through this list:

    Tips on Web Security

    and you will be able to keep your account secure.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  12. #12
    JPC Member
    Join Date
    Nov 2006
    Posts
    8
    Thanks. Nice little security tutorial you got there, I'll make sure to follow your recommendations.

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
  •