You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Wong Kam Lai <kl...@onk.cintec.cuhk.edu.hk> on 2003/04/14 09:04:38 UTC
Detect a group
Hi,
I have problem in detecting whether the node is a group or a user.
For example, I have a group called 'CNC' and a user called 'anson',
therefore, they have the following specified path and I can get the roles
respectively:
Name Path Roles
CNC : /users/CNC nobody
anson: /users/anson nobody , user
root : /users/root nobody , root
I want to ask how can I know CNC is actually a group? and .. why all
accounts has the role 'nobody'? Thanks a lot ..
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Detect a group
Posted by Wong Kam Lai <kl...@onk.cintec.cuhk.edu.hk>.
> Hi,
>
> I have problem in detecting whether the node is a group or a user.
> For example, I have a group called 'CNC' and a user called 'anson',
> therefore, they have the following specified path and I can get the roles
> respectively:
>
> Name Path Roles
> CNC : /users/CNC nobody
> anson: /users/anson nobody , user
> root : /users/root nobody , root
>
> I want to ask how can I know CNC is actually a group? and .. why all
> accounts has the role 'nobody'? Thanks a lot ..
>
I still can't solve this problem .. I want to know this because I need
to delete the PERMISSIONS table which the subject path, in case it is a
group, is presented as '+/users/CNC' while a user is presented as
'/users/anson'. I need to detect whether the given name 'CNC' is a group
or user and add a '+' at the beginning of the string..Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org