Results 1 to 3 of 3

Thread: Any user can run /scripts ??

  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    151
    cPanel/WHM Access Level

    Root Administrator

    Default Any user can run /scripts ??

    I just noticed that any user can execute files from /scripts folder, because they have attributes set to 0755/-rwxr-xr-x

    Why?

  2. #2
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    743

    Default

    They are set to 0755 so they can be executed but they are owned by root so root can execute them, nor just anyone.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  3. #3
    Member
    Join Date
    Jan 2006
    Posts
    151
    cPanel/WHM Access Level

    Root Administrator

    Default

    No, those files have attributes set to 0755, that last number 5 mean that "Everyone can Read/Execute" so everyone can read and execute those files. I even tried to run those files as regular user and of course I can... Luckly most of those scripts open some other files that regular users don't have permission to read so most of those scripts are not working because of that, but I don't know are there maybe some of them that will maybe work, so I am just wondering why they have "Everyone" attribute set to "Read/Execute"

Similar Threads

  1. run linux .sh scripts from anywhere ?
    By Valuehosted in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 07-25-2010, 10:33 AM
  2. Users can't run certain scripts
    By shacker23 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 06-12-2008, 08:38 PM
  3. How to run scripts?
    By SXR1337 in forum New User Questions
    Replies: 3
    Last Post: 05-05-2007, 10:13 AM
  4. some pl scripts only run with -w
    By bernieberg in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 04-09-2006, 12:33 PM
  5. Need to run own scripts as root
    By metal_cd in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 10-03-2005, 02:18 AM