Uploaded image for project: 'CernVM'
  1. CernVM
  2. CVM-2017

Existence of cvmfs group prevents rpm creation of cvmfs user

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Fixed
    • CernVM-FS 2.8.1
    • CernVM-FS 2.9
    • CVMFS
    • None
    • ANY

    Description

      Currently new fermicloud SL7 VMs are created with a cvmfs group but not a cvmfs user id.  Installing the cvmfs rpm fails to create a user id.  The command that the rpm runs fails with this error:

      # /usr/sbin/useradd -r -d /var/lib/cvmfs -s /sbin/nologin -c "CernVM-FS service account" cvmfs
      useradd: group cvmfs exists - if you want to add this user to that group, use -g.
      

      I think a fix for this is to use the code in the cvmfs-universal.spec %if 0%{?suse_version} code block by default for all rpm-based packages. That first checks for the group, creates it if not present, and adds '-g cvmfs' to the useradd command.

      Attachments

        Activity

          People

            jblomer Jakob Blomer
            dwd Dave Dykstra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: