Skip to content

Changing File Permissions #105

@ax3l

Description

@ax3l

How can I change the permissions (chmod .. file) of a single file?

I see the perms attribute, but not sure how to do it.


While I need this currently for a single file, quite common shell commands I need at NERSC are:

find . -type d -exec chmod g+rxw {} \;
find . -type f -exec chmod g+rw {} \;

How can I do this via the SFAPI (without writing a whole job script)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions