CentOS 7/CloudLinux 7 user's paths

Operating System & Version
CloudLinux 7
cPanel & WHM Version
11.94.0

mlopez

Well-Known Member
Dec 17, 2020
54
7
8
Maldonado - Uruguay
cPanel Access Level
Root Administrator
Twitter
Hello,

I was trying to update environment variable $PATH in user's .bashrc file to include /usr/local/bin/ and I found it was already present. The thing is this directory doesn't contain all the files (binaries) root user does, even if they have the read and exec permissions set. For example:
Code:
rwxr-xr-x 1 root root 6.0M Mar 26 20:32 wp*
Questions:
  1. Is there a way to allow users to read/execute files in /usr/bin/ (or /user/local/bin, etc.) directories?
  2. Is there a way to set a skeleton for 'home' directory containing customized configurations files (.bashrc, etc.) directories and binaries?
Best regards,

Mauricio
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,496
1,009
313
cPanel Access Level
Root Administrator
Hey there! Here is what I see listed in the PATH for a normal cPanel user on a CentOS 7 system:

Code:
/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin:/opt/cpanel/composer/bin
For question 1, I would expect that to already exist and work properly with the details provided in my example. For example, that is the default location of Vim, and that is available for all users.

For question 2, our skeleton directory tools (Skeleton Directory | cPanel & WHM Documentation) only effect public_html and public_ftp, but we do still follow the standards set in the /etc/skel directory, so you could adjust those to suit your needs.