Re: admin user (and ditto group member) no longer has the corresponding permissions?!
Re: admin user (and ditto group member) no longer has the corresponding permissions?!
- Subject: Re: admin user (and ditto group member) no longer has the corresponding permissions?!
- From: René J.V. Bertin via X11-users <email@hidden>
- Date: Tue, 28 Jul 2020 14:31:08 +0200
>Sorry, what OS are you running?
10.9.5, sorry, I thought I had mentioned that.
```
%> cat /Applications/Utilities/XQuartz.app/Contents/MacOS/X11
#!/bin/bash
set "$(dirname "$0")"/X11.bin "${@}"
if [ -x ~/.x11run ]; then
exec ~/.x11run "${@}"
fi
case $(basename "${SHELL}") in
bash) exec -l "${SHELL}" --login -c 'exec "${@}"' - "${@}" ;;
ksh|sh|zsh) exec -l "${SHELL}" -c 'exec "${@}"' - "${@}" ;;
csh|tcsh) exec -l "${SHELL}" -c 'exec $argv:q' "${@}" ;;
es|rc) exec -l "${SHELL}" -l -c 'exec $*' "${@}" ;;
*) exec "${@}" ;;
esac
```
The script is indeed executed by bash, which then overlays itself by the user's
shell. Isn't /bin/sh a symlink or hardlink to /bin/bash on later OS versions,
and wouldn't any restrictions applied to bash apply to almost anything (because
afaik /bin/sh can hardly be avoided when spawning executables)?
Until now I've been testing with a temp. dir under /tmp, is that location
off-limits too under SIP (IOW, should I test again in $HOME or my personal
$TMPDIR)?!
R.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden