Browse Source

Add FTP user to OGP User Group for EHCP Integration

own3mall 9 years ago
parent
commit
9adb90e806
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ogp_agent.pl

+ 4 - 0
ogp_agent.pl

@@ -2480,6 +2480,10 @@ sub ftp_mgr
 			
 			chmod 0777, 'ehcp_ftp_log.txt';
 			
+			# In order to access the FTP files, the vsftpd user needs to be added to the ogp group
+			sudo_exec_without_decrypt("usermod -a -G '$gid' ftp"); 
+			sudo_exec_without_decrypt("usermod -a -G '$gid' vsftpd"); 
+			
 			if($action eq "list")
 			{
 				return "1;".encode_list(`php-cgi -f listAllUsers.php`);