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
Which version is the bug fixed?
I try Windows 10 Insider Preview 14986 (rs_prerelease).
The bug still exist.
But the error message changed.
The new error message looks like
$ sudo -u user ls
sudo: unable to resolve host DESKTOP-K82BHUJ
sudo: setresuid() [1000, 1000, 1000] -> [-1, 0, -1]: Operation not permitted
sudo: unable to set runas group vector: Operation not permitted
sudo: PERM_ROOT: setresuid(0, -1, 0): Operation not permitted
user is not in the sudoers file. This incident will be reported.
This is NOT fixed. On build 15063 sudo -u user ls returns
sudo: setresuid() [1000, 1000, 1000] -> [-1, 0, -1]: Operation not permitted
sudo: unable to set runas group vector: Operation not permitted
sudo: PERM_ROOT: setresuid(0, -1, 0): Operation not permitted
user is not in the sudoers file. This incident will be reported.
This prevents some scripts from running, impeding dev work.
Reacted by Nicholas Koh, Alexandre MOEVI, Evgeniy Pristash, Arsalan Ahmad, ember, Brian Sipple, Matthijs Meulenbrug, Stanislav Valasek, Felipe Andrés Rojos Almuna, x_ror and 8 more
Okay. Anyway, I've yet again wasted a couple of hours trying to get my RoR environment set up but looks like I still have to wait some more. Puma also fails with a weird `Read error: #<Errno::ENOPROTOOPT: Protocol not available - getsockopt(2)>` error. Bash for Windows is still not currently there yet for any dev work.
On 18-Apr-17 11:34:42 PM, Daniel Ingolfsson <[email protected]> wrote:
A workaround for me was to create the DB in the Windows environment, create the user and access it in Bash.
It ultimately defeats the purpose of using Bash, so obviously, this isn't a solution but while it's bugged, this should work.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub [#962 (comment)], or mute the thread [https://github.com/notifications/unsubscribe-auth/AB5qVwU0VFKeeBA3SskAEmJhi-YRZR6eks5rxQJCgaJpZM4JpdEs].
Arsalan Ahmad (@ArsalanDotMe) -- in your previous comment, you want sudo sudo -u postgres psql. (sudo is complaining that you didn't tell it what command to run :-) )
That said, it's definitely true that getting system services like PostgreSQL working within WSL is still a pain. Fortunately, it sounds like it's being worked on.
Arsalan Ahmad (@ArsalanDotMe) - Thanks for your post and patience with WSL. WSL is still a beta feature and while we have covered some ground in Creators Update, there is still more to go. And, your input here actually helps us getting there meaningfully. So, I wouldn't consider your two hours a complete waste :). Would you be willing to open a new issue for the RoR getsockopt failure (a strace would be super useful, as it will be able to exactly pinpoint the issue here). See our contributing.md for instructions.
We are trying to get "full" compatibility with Linux and as you can imagine, that's a huge surface area. Hopefully, that explains some of the time that we are taking here to cover the ground.
A workaround that I used is sudo su postgres to change to the postgres user in the console and then run the rest of the commands from there, this works on Insider build 15063
Thanks to everyone for the help. I got some time to take a look at this and the issue was our driver not correctly setting the "saved-set" UID or GID on set-user-ID and set-group-ID bit binaries. I have a fix for this and it will be available in a Windows Insider build soon.
Reacted by Jacob Bearce, Alaeddine Frad and Marek Lewandowski
Activity
[-]sudo doesn't work in some case[/-][+]sudo doesn't work when "-u" flag is assigned[/+]russalex commentedon Nov 16, 2016
This should be resolved in the Insider build. Looks like it was closed out with some of our other fixes.
Marking as fixed for insiders.
russalex commentedon Dec 5, 2016
Marked as fixed for some time. Closing it out.
kjelly commentedon Dec 10, 2016
Which version is the bug fixed?
I try Windows 10 Insider Preview 14986 (rs_prerelease).
The bug still exist.
But the error message changed.
The new error message looks like
GameKyuubi commentedon Apr 1, 2017
This is NOT fixed. On build 15063
sudo -u user lsreturnsThis prevents some scripts from running, impeding dev work.
benhillis commentedon Apr 1, 2017
Reopening because this is still broken.
dingolfsson commentedon Apr 13, 2017
Having the same issue trying to access postgres.
> $ sudo -u postgres psqlsudo: setresuid() [1000, 107, 1000] -> [-1, 0, -1]: Operation not permittedArsalanDotMe commentedon Apr 18, 2017
any workaround to configure postgres till this gets fixed?
GameKyuubi commentedon Apr 18, 2017
It sounds stupid but try
sudo sudo -uArsalanDotMe commentedon Apr 18, 2017
That doesn't seem to work
1 remaining item
ArsalanDotMe commentedon Apr 18, 2017
aseering commentedon Apr 19, 2017
Arsalan Ahmad (@ArsalanDotMe) -- in your previous comment, you want
sudo sudo -u postgres psql. (sudo is complaining that you didn't tell it what command to run :-) )That said, it's definitely true that getting system services like PostgreSQL working within WSL is still a pain. Fortunately, it sounds like it's being worked on.
benhillis commentedon Apr 19, 2017
Adam Seering (@aseering) - you're correct I've filed a bug and will be looking into this.
sunilmut commentedon Apr 20, 2017
Arsalan Ahmad (@ArsalanDotMe) - Thanks for your post and patience with WSL. WSL is still a beta feature and while we have covered some ground in Creators Update, there is still more to go. And, your input here actually helps us getting there meaningfully. So, I wouldn't consider your two hours a complete waste :). Would you be willing to open a new issue for the
RoR getsockoptfailure (a strace would be super useful, as it will be able to exactly pinpoint the issue here). See our contributing.md for instructions.We are trying to get "full" compatibility with Linux and as you can imagine, that's a huge surface area. Hopefully, that explains some of the time that we are taking here to cover the ground.
sebaslogen commentedon May 10, 2017
A workaround that I used is
sudo su postgresto change to the postgres user in the console and then run the rest of the commands from there, this works on Insider build 15063JohnPostlethwait commentedon Jun 28, 2017
Just ran into this myself. Thanks for the workarounds!
Both
sudo sudo -i -u postgresandsudo su postgressolutions were effective workarounds for me.That said, I am now hitting issues as seen in #61
benhillis commentedon Jul 10, 2017
Thanks to everyone for the help. I got some time to take a look at this and the issue was our driver not correctly setting the "saved-set" UID or GID on set-user-ID and set-group-ID bit binaries. I have a fix for this and it will be available in a Windows Insider build soon.
benhillis commentedon Jul 26, 2017
This is fixed in 16251.