Skip to content

rights problem on incoming directory #487

@matthieumarrast

Description

@matthieumarrast

Our system administrators created an ftp user with the mfdata incoming directory (/home/mfdata/var/in/incoming) as the HOME dir.

We face the below error on the switch plugin:

Traceback (most recent call last):
  File "/opt/metwork-mfdata-2.2/bin/before_start_step.switch.main", line 21, in <module>
    os.chmod(path, st.st_mode | stat.S_IWGRP)
PermissionError: [Errno 1] Operation not permitted: '/home/mfdata/var/in/incoming'

I don't know if they installed metwork/mfdata before or after creating the ftp user. After I suppose, otherwise the rights would not have been modified.
So it appears the rights of the incoming dir are not "mfdata:metwork":

root@server in$ ll
total 0
drwxrwxr-x+ 2 userftp users    6  7 août  12:40 incoming

While installing mfdata, is it possible to chown the incoming directory (and/or all the wached directories) to mfdata:metwork if it already exists !?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions