-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong shell #116
Comments
From the man page:
This is the same as in upstream doas and sudo does the same. |
I know what Because if it is supposed to drop to the admin user's shell then it is not working as it should since running If it is supposed to drop to the root's shell which is |
The shell from SHELL env or the shell of the executing user in /etc/passwd, just like sudo. Lines 314 to 322 in b96106b
|
The
Its just executing the shell, I don't see how it would stop bash from reading |
From what you are saying, it should drop to The only thing I have in |
It will always use the shell from The configuration can just change the default value for the The |
Its really hard to follow which shell is which and what you expect to happen.
With
With
With
|
I tested the above scenarios and they all check out, and as a conclusion, this is the workaround |
What is it supposed to do? doas sets the environment variables to the default values, similar to
sudo does pass through the executing users SHELL environment variable if its executed with the But I don't currently see a good reason for doing that and I don't really want to divert from upstream doas, so if there is a good reason someone or myself should first get a patch into the upstream doas to change that behavior.
I don't really understand what you mean by that. |
|
Hello,
When invoking the command
doas -s
and entering the user's password, the root login drops into the wrong shell (not bash). Usingsu
produces the desired effect. This started happening after I switched tozsh
for the wheel user not root. I already checked/etc/passwd
and confirmed that both users have the correct shells assigned.What's strange is once I'm root, I run
echo $SHELL
and the output is/bin/bash
. However, if I runbash
I get the desired effect (custom colors and configs). Are there any config files or troubleshooting steps I need to look into?doas version: 6.8.2
Gentoo 17.1 -STABLE
kernel 6.1.19
The text was updated successfully, but these errors were encountered: