Skip to content

sudo permissions #5

@rubenvarela

Description

@rubenvarela

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions