Skip Navigation

User banner
Posts
30
Comments
1,256
Joined
2 yr. ago

Permanently Deleted

Jump
  • Copilot: "I'm sorry Dave, I'm afraid I can't do that"

  • These people have been stealing our pixels for so long. Have you seen how much China has been stealing? There memes are twice as large as ours. But everyone has been crying to me "Sir, but pixies aren't real." THEY ARE REAL!. My uncle has seen pixies. He was very smart, the smartest person I know perhaps. So from tomorrow, the pixel tariffs are being launched. Or pixies. I don't know, doesn't matter.

  • In capitalism, you get a bad crop

  • As per the article

    on my own network a whopping 66.6% of all traffic is blocked

    I stated it's actually 66.6% DNS requests being blocked, not the raw bandwidth utilization. Raw bandwidth savings (by not downloading the non-zero ads) would be much lesser.

    Can't we be nicer on the internet?

  • Correct. The payload of DNS requests is tiny compared to, say requesting a webpage. So there might not be a huge decrease of bandwidth usage reduction. However, having 66.6% less DNS requests is still a win. The router/gateway doesn't have to work that hard because of the dropped requests.

  • Firefox: "But I'm nothing without Google money"

    FOSS community: "If you're nothing without Google money, then you don't deserve it."

  • Issue resolved!

    It was swhkd. Thank you very much for your insight and extremely detailed response!

     
        
    $ ls -l $(which swhkd)
    -rwsr-xr-x 1 root root 2583192 Mar 10 17:16 /usr/bin/swhkd
    
      

    Since we know what's causing it, can you make a "guesstimate" of what it's doing? Why are other applications are getting infected by it? And why is a keybind manager affecting permissions?

    I will raise an issue on their github. The project is already looking for maintainers.

  • How do you open the shell inside sway? Keyboard binding from sway config? Launcher? Which terminal? Do any of the involved programs have setuid root bit set (looks like rws instead of x in ls -l output)?

    I think you may have just pointed me to the correct direction.

    My keybinds setup is a bit weird. I'm using swhkd instead of sway's built in keybinds. swhkd is a setuid binary (https://github.com/waycrate/swhkd?tab=readme-ov-file#running) which might be causing the issue. I'll quickly disable swhkd and check if the issue is resolved. Will keep you posted.

  •  
        
    $ which sway
    /usr/bin/sway
    
    $ sway --version
    sway version 1.9
    
    $ file $(which sway)
    /usr/bin/sway: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=70fe358f7e410f618ad8a9ce0e573ed6826b2e75, for GNU/Linux 3.2.0, stripped
    
    $ ls -l $(which sway)
    -rwxr-xr-x 1 root root 600352 Apr  1  2024 /usr/bin/sway
    
      

    id pre and post login

     
        
    uid=1000(xavier666) gid=1000(xavier666) groups=1000(xavier666),0(root)
    ---------------
    uid=1000(xavier666) gid=1000(xavier666) groups=1000(xavier666),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),120(lpadmin),132(lxd),133(sambashare)
    
      

    A funny thing; I think this has nothing to do with gdm. I have gdm disabled now and launching sway directly from the terminal and the issue still persists.

    The problem goes away (xavier666 becomes part of sudo like expected) when I type exec su - xavier666 for that terminal session only. If I open a new terminal, it problem reappears. I'll just in case check if zsh/omyzsh is doing something funny.

  • I found something interesting, thanks to my friend

    • I removed the fix mentioned above. Now user does not have sudo access inside sway
    • I ran the command exec su - xavier666. It asked for my user password and the command was accepted.
    • My groups output looks normal (xavier666 is now part of sudo) and my permissions are fine
    • However, the problem reappears after a reboot

    It is as if this user is an imposter with incorrect privileges 📮

  • I did it. The issue still lingers. Check my last comment for output.

  • Great suggestion. I tried this method just now.

    Unfortunately, I'm still getting the same bug.

    The main difference between the two sessions is the output of the groups command

    In pure tty

     
        
    $ groups
    xavier666 adm cdrom sudo dip plugdev lpadmin lxd sambashare
    
      

    The moment I enter into sway from inside the tty

     
        
    $ groups 
    xavier666 root
    
      
  • Now you know why your mom spent so much time with the Amiga

  • The output of the above command is nearly the same for me.

    Even though I have manually added myself to /etc/sudoers file, my groups output is very weird. It's just xavier666 root

    Kind of stumped here.

  • user-IDs (prefixed with ‘#’)

    And I thought it just meant a comment.

    Thanks for this, I had no idea.

  • For i3, the desktop file is like this (present in /usr/share/xsessions)

     
        
    [Desktop Entry]
    Name=i3
    Comment=improved dynamic tiling window manager
    Exec=i3
    TryExec=i3
    Type=Application
    X-LightDM-DesktopName=i3
    DesktopNames=i3
    Keywords=tiling;wm;windowmanager;window;manager;
    
      

    And sway (present in /usr/share/wayland-sessions)

     
        
    [Desktop Entry]
    Version=1.0
    Name=Sway
    Comment=An i3-compatible Wayland compositor
    Exec=/usr/bin/sway
    Type=Application
    DesktopNames=sway
    
      

    Gdm probably sums up all the DE from both the wayland and x11 sessions.

    There are some files & directories in /etc/gdm3 but I'm too lazy to go through all of them

     
        
    Init       PostSession  Prime     config-error-dialog.sh  greeter.dconf-defaults
    PostLogin  PreSession   PrimeOff  custom.conf             Xsession
    
      

    Thanks for your help.

  • It takes 7+ years to bring a new factory online. more to get all the kinks worked out and at full production

    Not to take away from your point but they also have to

    • make sure product is at par with the previous alternative in terms of quality
    • make sure your supply chain is willing to shift to your new product
    • have a healthy supply of workers OR
    • have good automation in their production line (automation supply should also be sourced from within the country)

    Once you have created this factory (which needs to be subsidized by the government in order to compete with the foreign product), we then apply targeted tariffs so that people can slowly shift to the homegrown product. Doing all this can takes decades of careful planning.

    Tariff is not an ON/OFF switch which Trump thinks

  • I won't give you any free stuff any more

    Gives free stuff next year

    Gigachad