ClearFoundation Tracker - ClearOS
View Issue Details
0007691ClearOSapp-samba-directory - Samba Directorypublic2016-03-14 10:162016-03-14 19:57
bchambers 
 
normalmajoralways
closedno change required 
7.2.0 
 
0007691: Samba Directory never sets initialized flag
On the users page, post install/configuration of the Samba Directory, the function:

$this->status->unhappy()

Kept coming back TRUE.

Looking at initialize function in Samba_Directory, I can't see where it failed, but wouldn't this line barf:

$file = new File(self::FILE_CONFIG);

 if ($file->exists())
            $file->move_to(self::PATH_BACKUP . '/smb-' . date('Y-M-d-H:i:s') . '.conf');

/etc/samba/smb.conf is 644 and owned by 'administrator'...this script is running as webconfig.

????
No tags attached.
Issue History
2016-03-14 10:16bchambersNew Issue
2016-03-14 10:18bchambersNote Added: 0002801
2016-03-14 19:57user2Note Added: 0002811
2016-03-14 19:57user2Statusnew => resolved
2016-03-14 19:57user2Resolutionopen => no change required
2016-03-14 19:57user2Assigned To => user2
2016-03-14 19:57user2Statusresolved => closed
2016-03-14 19:57user2Assigned Touser2 =>

Notes
(0002801)
bchambers   
2016-03-14 10:18   
Related??

Mar 14 11:52:04 localhost events: accounts - event occurred
Mar 14 11:52:04 localhost events: accounts - triggered hook: accounts
Mar 14 11:52:04 localhost engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (207): administrator is not in the sudoers file. This incident will be reported.
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/Folder.php (387): execute
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /var/clearos/events/accounts/accounts (96): get_listing
Mar 14 11:52:04 localhost engine: exception: error: /usr/clearos/apps/base/libraries/Folder.php (390): administrator is not in the sudoers file. This incident will be reported.
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /var/clearos/events/accounts/accounts (96): get_listing
Mar 14 11:52:04 localhost engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (207): administrator is not in the sudoers file. This incident will be reported.
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /usr/clearos/apps/samba_directory/libraries/User_Manager_Driver.php (219): execute
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /usr/clearos/apps/samba_directory/libraries/User_Manager_Driver.php (116): _get_details
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /var/clearos/events/accounts/accounts (111): get_list
Mar 14 12:01:40 localhost events: accounts_initialized - event occurred
(0002811)
user2   
2016-03-14 19:57   
Most of the "superuser" flags are automatically handled in the File class, so you no longer have to explicitly request superuser access. However, the note about the sudoers issue is a show stopper. That issue is getting tracked in 0007711