[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[HTCondor-users] run all jobs as nobody?



Hi everyone,

is there an easy way to tell a worker node to run all jobs as nobody?
Will putting something like
 FS (.*) nobody
in the mapfile do the trick?

I'm playing with condor in a docker container and am getting

> Traceback (most recent call last):
>   File "/usr/lib64/python2.7/site.py", line 556, in <module>
>     main()
>   File "/usr/lib64/python2.7/site.py", line 538, in main
>     known_paths = addusersitepackages(known_paths)
>   File "/usr/lib64/python2.7/site.py", line 266, in addusersitepackages
>     user_site = getusersitepackages()
>   File "/usr/lib64/python2.7/site.py", line 241, in getusersitepackages
>     user_base = getuserbase() # this will also set USER_BASE
>   File "/usr/lib64/python2.7/site.py", line 231, in getuserbase
>     USER_BASE = get_config_var('userbase')
>   File "/usr/lib64/python2.7/sysconfig.py", line 516, in get_config_var
>     return get_config_vars().get(name)
>   File "/usr/lib64/python2.7/sysconfig.py", line 473, in get_config_vars
>     _CONFIG_VARS['userbase'] = _getuserbase()
>   File "/usr/lib64/python2.7/sysconfig.py", line 187, in _getuserbase
>     return env_base if env_base else joinuser("~", ".local")
>   File "/usr/lib64/python2.7/sysconfig.py", line 173, in joinuser
>     return os.path.expanduser(os.path.join(*args))
>   File "/usr/lib64/python2.7/posixpath.py", line 269, in expanduser
>     userhome = pwd.getpwuid(os.getuid()).pw_dir
> KeyError: 'getpwuid(): uid not found: 1352'

from python. (That's with `python -s`, if there's a way around this
idiocy on python side, I'd love to hear about it.)

TIA
-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature