You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 is indeed a bit edge-casey, and there is a workaround or two, like you say, but it still seems reasonable to change ./install to not use /dev/stdout.
As reported here:
#74
There is an edge case where running in a `su -l` shell will cause file
permissions to prevent access to `/dev/stdout`, as explained here:
https://unix.stackexchange.com/a/38580/140622
I don't expect many to people to try running this script in an `su -l`
shell, but it's easy enough to avoid the issue, so let's do that.
Expected Behavior
install
script runs fine in a shell which is obtained viasu -l non-root-user
Actual Behavior
An error is thrown as follows:
Steps to Reproduce the Problem
temp
)su -l temp
./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.The text was updated successfully, but these errors were encountered: