ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013591ClearOSsystem-base - Base Systempublic2017-03-08 10:472017-03-09 21:56
Reporterbchambers 
Assigned Tobchambers 
PrioritynormalSeveritymajorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version7.3.1 
Target Version7.3.1Fixed in Version7.3.1 
Summary0013591: addsudo hits false positive on checks
DescriptionThe 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.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004991)
bchambers (administrator)
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.

- Issue History
Date Modified Username Field Change
2017-03-08 10:47 bchambers New Issue
2017-03-08 11:04 bchambers Category app-base - Base System => clearos-base - Base System
2017-03-08 11:27 bchambers Note Added: 0004991
2017-03-08 11:27 bchambers Assigned To => bchambers
2017-03-08 11:27 bchambers Status new => assigned
2017-03-09 11:51 user2 Target Version 7.3.1 Updates => 7.3.1
2017-03-09 11:51 user2 Status assigned => resolved
2017-03-09 11:51 user2 Fixed in Version => 7.3.1
2017-03-09 11:51 user2 Resolution open => fixed
2017-03-09 20:14 user2 Note Added: 0005021
2017-03-09 21:56 user2 Status resolved => closed
2018-03-30 11:36 user2 Category clearos-base - Base System => system-base - Base System