[MCOL-1942] /var/log/mariadb folder is under root in a non-root user install Created: 2018-11-15  Updated: 2018-11-15  Resolved: 2018-11-15

Status: Closed
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: 1.2.1
Fix Version/s: Icebox

Type: Bug Priority: Minor
Reporter: Faisal Saeed (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: tests
Environment:

CentOS 7/RHEL 7


Issue Links:
Duplicate
duplicates MCOL-1944 /var/log/mariadb/columnstore ownershi... Closed

 Description   

After executing the syslogSetup.sh using root user the Columnstore log files are still under root, it the /var/log/mariadb folder and it subfolders/ files ownership should be changed to the non-root user that we pass to the syslogSetup.sh script and permission set to 750 insteadl of 777

/home/mcsadm/mariadb/columnstore/bin/syslogSetup.sh --installdir=/home/mcsadm/mariadb/columnstore --user=mcsadm install

[root@pm1-201 mcsadm]# cd /var/log
[root@pm1-201 log]# cd mariadb/
[root@pm1-201 mariadb]# ls -rlt
total 0
drwxrwxrwx 5 root root 155 Nov 15 12:12 columnstore
[root@pm1-201 mariadb]# cd columnstore/
[root@pm1-201 columnstore]# ls -rlt
total 128
drwxrwxrwx 2 root root      6 Nov 15 11:31 trace
drwxrwxrwx 2 root root      6 Nov 15 11:31 corefiles
drwxrwxrwx 2 root root      6 Nov 15 11:31 archive
-rwxrwxrwx 1 root root    294 Nov 15 12:10 mcsadmin.log
-rwxrwxrwx 1 root root   2471 Nov 15 12:10 alarm.log
-rwxrwxrwx 1 root root    423 Nov 15 12:10 warning.log
-rwxrwxrwx 1 root root    423 Nov 15 12:10 err.log
-rwxrwxrwx 1 root root   5783 Nov 15 12:11 info.log
-rwxrwxrwx 1 root root 102770 Nov 15 12:11 debug.log
[root@pm1-201 columnstore]#



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2018-11-15 ]

Closing as duplicate of MCOL-1944 which has a bit more detail.

Generated at Thu Feb 08 02:32:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.