----- On 15 Mai 19, at 19:52, Alain O' Miniussi [email protected] wrote:

> Hi,
> 
> I am trying to make sense of the following session:
> 
> 
> [alainm@gemini ~]$ sacctmgr list account name=child1
>   Account                Descr                  Org
> ---------- -------------------- --------------------
>    child1               child1              parent1
> [alainm@gemini ~]$ sacctmgr list account name=parent2
>   Account                Descr                  Org
> ---------- -------------------- --------------------
>   parent2              parent2              parent2
> [alainm@gemini ~]$ sudo sacctmgr modify account name=child1 set parent=parent2
> Nothing modified
> [alainm@gemini ~]$ sacctmgr list account name=child1
>   Account                Descr                  Org
> ---------- -------------------- --------------------
>    child1               child1              parent1
> [alainm@gemini ~]$ sudo sacctmgr modify --immediate account name=child1 set
> Organization=parent2
> Modified accounts...
>  child1
> [alainm@gemini ~]$
> [alainm@gemini ~]$ sacctmgr list account name=child1
>   Account                Descr                  Org
> ---------- -------------------- --------------------
>    child1               child1              parent2
> [alainm@gemini ~]$
> 
> So, why does "parent" becomes Organization ? And when the sacctmgr 
> documentation
> says:
>> [accounts] may be arranged in a hierarchical fashion, for example accounts
>> chemistry and physics may be children of the account science.  The
>> hierarchy may have an arbitrary depth.
> 
> Is the hierarchy defined by the account \in organization relationship ?
> 
> Also, should "nothing modified" be always considered an error message 
> indicating
> the command did not make sense ?

Also, the relation remains after I remove the parent accounts (which is 
authorized).

[alainm@gemini ~]$ sacctmgr list account name=parent2
   Account                Descr                  Org 
---------- -------------------- -------------------- 
[alainm@gemini ~]$ sacctmgr list account name=child1
   Account                Descr                  Org 
---------- -------------------- -------------------- 
    child1               child1              parent2 
[alainm@gemini ~]$ 

Is that expected ?

> Thanks for any input.
> 
> Alain

Reply via email to