[Dev] Query regarding Alternative way to change the group ownership -Regarding

Kévin THIERRY kevin.thierry at open.eurogiciel.org
Wed Feb 19 15:53:28 GMT 2014


Hi,

Both solutions are valid.

Kévin

On 02/19/2014 04:24 PM, RAJENDRA NAIK VADTHE wrote:
> Hi,
> I have a query regarding the group ownership.
> Example 1
> ======
> package/example.call.spec:chown -R 5000:5000 /usr/apps/%{name}/data
> As we are going to get the user id only at run time but not going to get the user id anymore during compile time, we are using
> chgrp as in solution 1.Is solution 2 also feasible?
> Solution 1:
> =======
> chgrp -R  %{TZ_SYS_USER_GROUP}  /usr/apps/%{name}/data
>
> Solution 2:
> ======
> As chown can also be used to change the group as well,can we use like
> chown -R  :%{TZ_SYS_USER_GROUP} /usr/apps/%{name}/data
>
> Could you please confirm whether we should never use chown at all?
>
> Thanks & Regards,
> Rajendra.
> _______________________________________________
> Dev mailing list
> Dev at lists.tizen.org
> https://lists.tizen.org/listinfo/dev



More information about the Dev mailing list