Thanks, this works, but only with "sudo singularity". Otherwise I get:
DEBUG [U=1124,P=542] mount-util.c:42:check_mounted() : Opening /proc/mounts
DEBUG [U=1124,P=542] mount-util.c:48:check_mounted() : Iterating through /proc/mounts
DEBUG [U=1124,P=542] util/util.c:102:envar_path() : Checking environment variable is valid path: 'SINGULARITY_HOME'
VERBOSE [U=1124,P=542] util/util.c:50:envar() : Checking input from environment: 'SINGULARITY_HOME'
DEBUG [U=1124,P=542] util/util.c:52:envar() : Checking environment variable is defined: SINGULARITY_HOME
DEBUG [U=1124,P=542] util/util.c:58:envar() : Checking environment variable length (<= 4096): SINGULARITY_HOME
DEBUG [U=1124,P=542] util/util.c:64:envar() : Checking environment variable has allowed characters: SINGULARITY_HOME
VERBOSE [U=1124,P=542] util/util.c:87:envar() : Obtained input from environment 'SINGULARITY_HOME' = '/usr/people/pvh:/home/pvh'
DEBUG [U=1124,P=542] config_parser.c:62:singularity_config_rewind(): Rewinding configuration file
DEBUG [U=1124,P=542] config_parser.c:107:singularity_config_get_bool(): Called singularity_config_get_bool(user bind control, 1)
DEBUG [U=1124,P=542] config_parser.c:80:singularity_config_get_value(): Called singularity_config_get_value(user bind control)
VERBOSE [U=1124,P=542] config_parser.c:91:singularity_config_get_value(): Got config key user bind control (= 'yes')
DEBUG [U=1124,P=542] config_parser.c:113:singularity_config_get_bool(): Return singularity_config_get_bool(user bind control, 1) = 1
VERBOSE [U=1124,P=542] home.c:86:singularity_mount_home() : Set the home directory source (via envar) to: /usr/people/pvh:/home/pvh
DEBUG [U=1124,P=542] util/file.c:247:s_mkpath() : Creating directory: /tmp/.singularity-session-1124.2050.8814447/usr
DEBUG [U=1124,P=542] util/file.c:247:s_mkpath() : Creating directory: /tmp/.singularity-session-1124.2050.8814447/usr/people
DEBUG [U=1124,P=542] util/file.c:247:s_mkpath() : Creating directory: /tmp/.singularity-session-1124.2050.8814447/usr/people/pvh
DEBUG [U=1124,P=542] home.c:129:singularity_mount_home() : Checking permissions on home directory: /usr/people/pvh:/home/pvh
DEBUG [U=1124,P=542] util/file.c:180:is_owner() : Checking ownership on /usr/people/pvh:/home/pvh
ERROR [U=1124,P=542] home.c:131:singularity_mount_home() : Home directory ownership incorrect: /usr/people/pvh:/home/pvh
ABORT [U=1124,P=542] home.c:132:singularity_mount_home() : Retval = 255
That "Checking ownership on" message is an extra debug message I put in is_owner. It looks like it is checking ownership on the whole /usr/people/pvh:/home/pvh thing rather than /usr/people/pvh ? I might be reading this wrong though.
Peter