Changes

From SME Server
Jump to navigationJump to search
168 bytes added ,  00:55, 28 October 2013
Line 291: Line 291:     
*DB command to choose groups and users
 
*DB command to choose groups and users
Above we have seen how to write name of groups or users directly in the template, but in the real life it is not enough good :)
+
Above we have seen how to write name of groups or users directly in the template, but in the real life it is not enough good :)<br />
 +
 
 
The purpose is to choose users or groups by command line.
 
The purpose is to choose users or groups by command line.
   Line 297: Line 298:  
  echo "admin" >        root/etc/e-smith/db/configuration/defaults/phpvirtualbox/User
 
  echo "admin" >        root/etc/e-smith/db/configuration/defaults/phpvirtualbox/User
 
  echo "" >              root/etc/e-smith/db/configuration/defaults/phpvirtualbox/Group
 
  echo "" >              root/etc/e-smith/db/configuration/defaults/phpvirtualbox/Group
 +
Only the user admin is set by default
    
-You have to download a plugin of pwauth to authenticate unix group in SME Server 8 : http://code.google.com/p/pwauth/
 
-You have to download a plugin of pwauth to authenticate unix group in SME Server 8 : http://code.google.com/p/pwauth/
Line 319: Line 321:  
           $OUT .= "    GroupExternal ugroup\n";
 
           $OUT .= "    GroupExternal ugroup\n";
 
           $OUT .= "    AuthzUserAuthoritative off\n";
 
           $OUT .= "    AuthzUserAuthoritative off\n";
           $OUT .= "    require user $phpvirtualbox{'User'}\n";
+
           $OUT .= "    require user $foo{'User'}\n";
           $OUT .= "    require group $phpvirtualbox{'Group'}\n";
+
           $OUT .= "    require group $foo{'Group'}\n";
 
           $OUT .= "    Satisfy $satisfy\n";
 
           $OUT .= "    Satisfy $satisfy\n";
 
  }
 
  }
 +
 +
-change groups and usersby CL
 +
 +
config setprop foo User "admin toto"
 +
config setprop foo Group "famille virt"
 +
then
 +
signal-event console-save
    
====Upload_tmp_dir====
 
====Upload_tmp_dir====

Navigation menu