-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Instead of running with sudo
, an option is to test if you can write to the destination file. If you can't, you could execute
sudo chown $(whoami):$(groups | cut -d' ' -f1) /Library/Caches/com.apple.desktop.admin.png
This will change the ownership of com.apple.desktop.admin.png
thus allowing the user to change the image without sudo
.
Metadata
Metadata
Assignees
Labels
No labels