Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Check correct file system ownership and permission

Discussion in 'General Discussion' started by leonep, Nov 16, 2017.

  1. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    79
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    Hi guys,
    I have noticed 1 directory on my system with non-correct ownership. Now i want to check all server.Where i can get a correct list to compare with my server?
    ..and if someone have bash script for compare and print anomalies on screen i will send a bottle of wine !
    thanks ! have a nice day


    my system:
    Code:
    /etc/redhat-release:CentOS release 6.9 (Final)
    /usr/local/cpanel/version:11.68.0.13
    /var/cpanel/envtype:standard
    CPANEL=release
    Server version: Apache/2.4.29 (cPanel)
    Server built:   Nov  7 2017 03:54:43
    ea-php-cli Copyright 2017 cPanel, Inc.
    PHP 5.6.32 (cli) (built: Nov  7 2017 04:13:51)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
        with Suhosin v0.9.38, Copyright (c) 2007-2015, by SektionEins GmbH
    mysql  Ver 14.14 Distrib 5.5.58, for Linux (x86_64) using readline 5.1
    
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,722
    Likes Received:
    77
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    Where exactly you did see the wrong permission on your system? Is it in the /home or other location of the server?

    You can refer to the below script documentation that cPanel has provided and look for things you want to accomplish..

    WHM Scripts - Documentation - cPanel Documentation
     
  3. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    Hi,

    It may be easiest to spin up a fresh server to compare; however, if the file is managed by a package, you can verify if user/group ownership differs from the default with the 'rpm -V' command. For example:
    Code:
    # rpm -V -qf /etc/redhat-release
    .....UG..    /etc/centos-release
    
    We can see the User and Group differ from the default.

    Thanks,
     
  4. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    79
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    thanks i will check with fresh install !
     
Loading...

Share This Page