Skip to content

Permission denied when running the script #7

@Villiem

Description

@Villiem

When I typed sudo python encode.py
the script creates a folder as root, which can´t be accessed by a normal user.
The full explanation can be found here
https://stackoverflow.com/questions/24023202/how-do-i-avoid-creating-folders-as-root-when-running-a-python-script-under-sudo

The solution is simple, create the encoded folder before running the script, this also allows you to run the script without sudo.

I still think the script should be changed to be compatible with os.chown()

Thanks!

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