Skip to content

Rocks sync users doesn't catch usermod errors #9

Description

@zootboy

I ran into a small issue when running "rocks sync users". The usermod command that it tries to execute fails if the user is logged in via ssh. This error is not caught, and the subsequent commands are executed as if it had succeeded.

for line in os.popen(cmd).readlines():

This resulted in a large number of duplicate entries in the /etc/auto.home file, as each failed sync attempt appended a new copy of the user's automount line.

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