rwx/sh/alias/chown.sh

16 lines
253 B
Bash
Raw Normal View History

2024-11-16 13:04:50 +00:00
# change owner to root
2024-11-18 15:17:43 +00:00
cor() { sh_a__change_owner_root "${@}"; }
sh_a__change_owner_root() {
2024-11-16 13:04:50 +00:00
chown \
"0:0" \
"${@}"
}
2023-05-09 20:02:34 +00:00
2024-11-16 13:04:50 +00:00
# change owner to user
2024-11-18 15:17:43 +00:00
cou() { sh_a__change_owner_user "${@}"; }
sh_a__change_owner_user() {
2024-11-16 13:04:50 +00:00
chown \
"1000:1000" \
"${@}"
}