Description
Expected Behavior
install
script runs fine in a shell which is obtained via su -l non-root-user
Actual Behavior
An error is thrown as follows:
./install: line 88: /dev/stdout: Permission denied
Steps to Reproduce the Problem
- create another user on your Mac (say
temp
) - from your terminal run
su -l temp
- run
./install
Details
This is not a huge problem, but I thought I'd log it in case anyone else has this issue. I'm building out my new dotfiles under a fresh, vanilla user on my Mac, but I'm editing and tweaking the repo from my existing account. I have a window where I am su
'ed in as that other user and this is how the problem was spotted.
This stackoverflow post explains the problem.
Happy for this to be closed without a fix as I can hot-switch to the other use and log in "properly" to it. This setup was more as a convenience.
Update
The workaround is much easier than fast-switching between 2 GUI desktops. Just ssh temp@localhost
once you've enabled sshd on your machine.