aRTconn-addPermission          package:aRT          R Documentation

_A_d_d_s _p_e_r_m_i_s_s_i_o_n _t_o _a _u_s_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     Function to grant some permissions in a DBMS for a user. The
     aRTconn user must have permissions for doing this operation (Only
     root can do that).

_U_s_a_g_e:

     ## S4 method for signature 'aRTconn':
     addPermission(object, user, pass, remote, host, privilege, db)

_A_r_g_u_m_e_n_t_s:

  object: Object of class 'aRTconn'.

    user: The username that will reveive the privileges.

    pass: The password for acessing the DBMS. Empty string if none (the
          default). Note that the default Windows installation requires
          a password, otherwise it will print the error 'Cant find any
          matching row in the user table'.

  remote: A boolean value, representing whether the DBMS will enable
          this connection from external hosts. Note that the DBMS must
          have external connections enabled.

    host: The external host to be acessed. If 'remote' is true and
          'host' is empty string then the access is allowed from any
          host.

privilege: Defines DBMS privileges. It must be one of '"all"', 
          '"select"',  '"create"',  '"alter"' or  '"update"'. Execute
          'addPermission' repeatedly to combine two (or more)
          privileges.

      db: The target database. If it is empty string the user will have
          permissions to access all databases.

_A_u_t_h_o_r(_s):

     Pedro Ribeiro de Andrade

_S_e_e _A_l_s_o:

     'aRTconn-class' shows the description of this class.

