ClearFoundation Tracker - ClearOS
View Issue Details
0013591ClearOSsystem-base - Base Systempublic2017-03-08 10:472017-03-09 21:56
bchambers 
bchambers 
normalmajorhave not tried
closedfixed 
7.3.1 
7.3.17.3.1 
0013591: addsudo hits false positive on checks
The script checks for presence of existing script...however it is possible to get a false postive match from this :
i
LINE=`grep "^Cmnd_Alias CC" /etc/sudoers 2>/dev/null`
CHECK=`echo $LINE, | grep $1,`
if [ -z "$CHECK" ]; then

Consider:

/usr/sbin/addsudo /usr/sbin/httpd app-flexshare-core

When sudoers file already has this entry:

/usr/clearos/sandbox/usr/sbin/httpd,

In this case, the sudoer entry is not added, and Flexshares are broken because SU on scripts/configs cannot be read.

No tags attached.
Issue History
2017-03-08 10:47bchambersNew Issue
2017-03-08 11:04bchambersCategoryapp-base - Base System => clearos-base - Base System
2017-03-08 11:27bchambersNote Added: 0004991
2017-03-08 11:27bchambersAssigned To => bchambers
2017-03-08 11:27bchambersStatusnew => assigned
2017-03-09 11:51user2Target Version7.3.1 Updates => 7.3.1
2017-03-09 11:51user2Statusassigned => resolved
2017-03-09 11:51user2Fixed in Version => 7.3.1
2017-03-09 11:51user2Resolutionopen => fixed
2017-03-09 20:14user2Note Added: 0005021
2017-03-09 21:56user2Statusresolved => closed
2018-03-30 11:36user2Categoryclearos-base - Base System => system-base - Base System

Notes
(0004991)
bchambers   
2017-03-08 11:27   
Suggested fix:

https://github.com/clearos/clearos-base/commit/21c70164ae8df1584efe0119e5537e795e337011 [^]

Added to master but not pushed to build sys
(0005021)
user2   
2017-03-09 20:14   
Verified and pushing to repos.