Skip to content
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

Enabling io logs in /etc/sudoers with visudo limits administrative access and gives error: Cockpit-bridge: recvmsg(stdin) failed: Socket operation on non-socket #21257

Open
CherryManJack opened this issue Nov 12, 2024 · 3 comments

Comments

@CherryManJack
Copy link

I'm using a raspberry pi 5 running the latest Debian (bookworm 12) and running the latest version of cockpit.
When I activated sudo logging the cockpit UI doesn't let me manage the server with higher privileges.
This is the /etc/sudoers file content:
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Defaults log_input,log_output

Thanks for the help!

@jelly
Copy link
Member

jelly commented Nov 14, 2024

I can't reproduce this, is that really all you have in sudoers?

@jelly
Copy link
Member

jelly commented Nov 14, 2024

Ok, Firefox was invoking the debugger on an exception. Can reproduce seems unrelated to your sudoers?

Uncaught Error: Your session has been terminated.
    btrfs_start_monitor storaged.js:formatted:73283
    process_queue deferred.js:124
    schedule_process_queue deferred.js:137
    later_drain deferred.js:18
    setTimeout handler*later_invoke deferred.js:26
    schedule_process_queue deferred.js:137
    deferred_reject deferred.js:170
    reject deferred.js:205
    spawn cockpit.js:1459
    invoke_functions common.ts:64
    dispatchEvent event-mixin.js:58
    on_close channel.js:55
    on_control channel.js:67
    process_control_fn transport.ts:174
    dispatch_data transport.ts:222
    <anonymous> transport.ts:111
    ParentWebSocket parentwebsocket.ts:38
    ParentWebSocket parentwebsocket.ts:28
    Transport transport.ts:69
    ensure_transport transport.ts:309
    Channel channel.js:92
    channel cockpit.js:38
    DBusClient cockpit.js:1813
    dbus cockpit.js:2119
    Superuser storaged.js:formatted:33352
    <anonymous> storaged.js:formatted:33408
    <anonymous> storaged.js:formatted:74522
[storaged.js:formatted:73283:14](https://127.0.0.2:9091/cockpit/@localhost/storage/storaged.js:formatted)
    btrfs_start_monitor storaged.js:formatted:73283
    process_queue deferred.js:124
    schedule_process_queue deferred.js:137
    later_drain deferred.js:18
    (Async: setTimeout handler)
    later_invoke deferred.js:26
    schedule_process_queue deferred.js:137
    deferred_reject deferred.js:170
    reject deferred.js:205
    spawn cockpit.js:1459
    invoke_functions common.ts:64
    dispatchEvent event-mixin.js:58
    on_close channel.js:55
    on_control channel.js:67
    process_control_fn transport.ts:174
    dispatch_data transport.ts:222
    <anonymous> transport.ts:111
    ParentWebSocket parentwebsocket.ts:38
    (Async: EventListener.handleEvent)
    <anonymous> vimium-c.js:1
    ParentWebSocket parentwebsocket.ts:28
    Transport transport.ts:69
    ensure_transport transport.ts:309
    Channel channel.js:92
    channel cockpit.js:38
    DBusClient cockpit.js:1813
    dbus cockpit.js:2119
    Superuser storaged.js:formatted:33352
    <anonymous> storaged.js:formatted:33408
    <anonymous> storaged.js:formatted:74522
findmnt --poll exited with an error 
Object { problem: "terminated", exit_status: null, exit_signal: null, message: "Your session has been terminated.", toString: toString() }

@CherryManJack
Copy link
Author

Hi! Thank you for trying to help me, I'm using Google Chrome as the web browser to connect in case that helps and yes the sudoers file is the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants