title: Permission denied while running make install for util-linux
body: <p>I' am trying to install <a href="https://en.wikipedia.org/wiki/Util-linux" rel="nofollow noreferrer">util-linux</a> on a machine which I don't have root access. The commands I run:</p>
  
  <pre><code>cd util-linux-2.29
  ./configure --prefix=$( pwd ) --disable-use-tty-group
  make
  make install
  </code></pre>
  
  <p>I get the following error after running make install (I truncated the output):</p>
  
  <pre><code>chmod 4755 /athena/elementolab/scratch/chm2059/from_dat02/chm2059/lib/util-linux-2.29/bin/mount
  chmod 4755 /athena/elementolab/scratch/chm2059/from_dat02/chm2059/lib/util-linux-2.29/bin/umount
  make[4]: Leaving directory `/athena/elementolab/scratch/chm2059/from_dat02/chm2059/lib/util-linux-2.29'
  /usr/bin/mkdir -p '/usr/share/bash-completion/completions'
  /usr/bin/install -c -m 644 bash-completion/blkid bash-completion/cal bash-completion/col bash-completion/colcrt bash-completion/colrm bash-completion/column bash-completion/findmnt bash-completion/flock bash-completion/getopt bash-completion/hexdump bash-completion/ipcmk bash-completion/ipcrm bash-completion/ipcs bash-completion/isosize bash-completion/logger bash-completion/look bash-completion/lsipc bash-completion/lsns bash-completion/mcookie bash-completion/mkfs bash-completion/mkswap bash-completion/namei bash-completion/prlimit bash-completion/readprofile bash-completion/renice bash-completion/rev bash-completion/script bash-completion/scriptreplay bash-completion/setsid bash-completion/tailf bash-completion/whereis bash-completion/wipefs bash-completion/fsck bash-completion/mkfs.bfs bash-completion/fsck.minix bash-completion/mkfs.minix bash-completion/fsck.cramfs bash-completion/mkfs.cramfs bash-completion/addpart bash-completion/delpart '/usr/share/bash-completion/completions'
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/blkid’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/cal’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/col’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/colcrt’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/colrm’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/column’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/findmnt’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/flock’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/getopt’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/hexdump’: Permission denied
  /usr/bin/install: cannot create regular file ‘/usr/share/bash-completion/completions/ipcmk’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/ipcrm’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/ipcs’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/isosize’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/logger’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/look’: Permission denied
  /usr/bin/install: cannot create regular file ‘/usr/share/bash-completion/completions/lsipc’: Permission denied
  /usr/bin/install: cannot create regular file ‘/usr/share/bash-completion/completions/lsns’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/mcookie’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/mkfs’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/mkswap’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/namei’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/prlimit’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/readprofile’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/renice’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/rev’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/script’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/scriptreplay’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/setsid’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/tailf’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/whereis’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/wipefs’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/fsck’: Permission denied
  /usr/bin/install: cannot create regular file ‘/usr/share/bash-completion/completions/mkfs.bfs’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/fsck.minix’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/mkfs.minix’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/fsck.cramfs’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/mkfs.cramfs’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/addpart’: Permission denied
  /usr/bin/install: cannot remove ‘/usr/share/bash-completion/completions/delpart’: Permission denied
  </code></pre>
  
  <p>I' am not sure how to go about this. After running configure, it does confirm that prefix is set to what I set it to.</p>