From 12bc25233cdf426153593680b086eacdfcf5f194 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 18 Nov 2024 16:17:43 +0100 Subject: [PATCH] chown --- sh/alias/chown.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sh/alias/chown.sh b/sh/alias/chown.sh index f7bbef9..6a7a156 100644 --- a/sh/alias/chown.sh +++ b/sh/alias/chown.sh @@ -1,12 +1,14 @@ # change owner to root -cor() { +cor() { sh_a__change_owner_root "${@}"; } +sh_a__change_owner_root() { chown \ "0:0" \ "${@}" } # change owner to user -cou() { +cou() { sh_a__change_owner_user "${@}"; } +sh_a__change_owner_user() { chown \ "1000:1000" \ "${@}"