sparek-3

Well-Known Member
Aug 10, 2002
2,039
229
368
cPanel Access Level
Root Administrator
What ownership/permissions is /home/cpanelsolr suppose to have?

When I start cpanel-dovecot-solr I get an error:

cat: /home/cpanelsolr/etc/solrpasswd: No such file or directory
mkdir: cannot create directory `/home/cpanelsolr/etc': Permission denied
/home/cpanelsolr/bin/solr: line 1563: /home/cpanelsolr/etc/solrpasswd: No such file or directory
cat: /home/cpanelsolr/etc/solrpasswd: No such file or directory


Investigating this finds:

# ls -ald /home/cpanelsolr
drwxr-xr-x 9 root root 4096 Jan 18 12:31 /home/cpanelsolr/


Should this directory be owned by cpanelsolr? This would seem to be an issue, but perhaps there's a reason for this. Thoughts?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
It should definitely be owned by cpanelsolr but it should be 750 perms:

Code:
stat /home/cpanelsolr/
  File: ‘/home/cpanelsolr/’
  Size: 4096          Blocks: 8          IO Block: 4096   directory
Device: fd01h/64769d    Inode: 2097156     Links: 10
Access: (0750/drwxr-x---)  Uid: (  986/cpanelsolr)   Gid: (  982/cpanelsolr)
Access: 2019-03-14 13:56:32.898475867 -0500
Modify: 2018-08-10 05:20:10.502688153 -0500
Change: 2018-08-10 05:20:10.502688153 -0500
 Birth: -
 
  • Like
Reactions: sparek-3