File: pmix_client_otheruser.sh

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 201,684 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (19 lines) | stat: -rwxr-xr-x 529 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

OTHERUSER=dummy

# To test sec:native we run client as a different user e.g.
#
#  ./pmix_test -e ./pmix_client_otheruser.sh
#
# Prerequisites:
# - ensure directories leading up to source tree are o+x
# - add dummy user and set OTHERUSER to its name
# - give yourself passwordless sudo capability to that user
#
# The test should fail with message similar to
#   PMIX ERROR: INVALID-CREDENTIAL in file
#       ../src/server/pmix_server_listener.c at line 524
#

sudo --user $OTHERUSER --preserve-env ./pmix_client $*