Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-698

Linux.pm delete_user may fail to detect network mounted home directory and to clean sudoers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.4
    • vcld (backend)
    • None

    Description

      delete_user tries to detect if the user's home directory is mounted on a network share by calling df and then checking if the output contains 'dev'. This can cause incorrect results under a few cirmcumstances. For example, if the user's name contains 'dev'.

      There are also cases where lines for the user may fail to be removed from sudoers. Example, if there's a tab after the username.

      Attachments

        Activity

          People

            arkurth Andrew Kurth
            arkurth Andrew Kurth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: