File: pmix_client_otheruser.sh

package info (click to toggle)
openmpi 5.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 202,312 kB
  • sloc: ansic: 612,441; makefile: 42,495; sh: 11,230; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,154; python: 1,856; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (19 lines) | stat: -rwxr-xr-x 529 bytes parent folder | download | duplicates (10)
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 $*