rwx/sh/alias/chown.sh

16 lines
245 B
Bash
Raw Normal View History

2024-11-16 13:04:50 +00:00
# change owner to root
2024-11-19 08:17:14 +00:00
cor() { sa__change_owner_root "${@}"; }
sa__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-19 08:17:14 +00:00
cou() { sa__change_owner_user "${@}"; }
sa__change_owner_user() {
2024-11-16 13:04:50 +00:00
chown \
"1000:1000" \
"${@}"
}