rwx/sh/alias/chown.sh
2024-11-19 09:17:14 +01:00

15 lines
245 B
Bash

# change owner to root
cor() { sa__change_owner_root "${@}"; }
sa__change_owner_root() {
chown \
"0:0" \
"${@}"
}
# change owner to user
cou() { sa__change_owner_user "${@}"; }
sa__change_owner_user() {
chown \
"1000:1000" \
"${@}"
}