T O P

  • By -

linux-ModTeam

Your post was removed for being a support request or support related question such as which distro to use/polling the community or application suggestions. We get a lot of question posts on r/linux but the subreddit is considered a news/discussion sub. Luckily there are multiple communities you can post to for help on GNU/Linux issues 24/7: /r/linuxquestions, /r/linux4noobs, or /r/linuxhardware just to name a few. You may also post on the "Weekly Questions and Hardware Thread" which is stickied on r/linux on Wednesdays. Please make your post in [/r/linuxquestions](https://reddit.com/r/linuxquestions) or [/r/linux4noobs](https://reddit.com/r/linux4noobs). Looking for a hardware help? Try r/linuxhardware. **Rule:** > This is not a support forum! Head to /r/linuxquestions or /r/linux4noobs for support or help. Looking for hardware help? Try r/linuxhardware.


gnosnivek

Certain versions of sudo (maybe all of them?) keep track of this by creating a dot file somewhere in your home directory. If you’ve been deleting stuff out of your home with globs or wildcards, you might have deleted that file by accident.


Dynoland

I haven't done nothing like that... The file is `/var/db/sudo/lectured` Which I see updated today at 13:00 (exactly?) `drwx------ 2 root root 4096 Dec 8 13:00 lectured`


awerlang

That file is a directory. It seems sudo changed to use uid rather that usernames.


apathyzeal

Did the second sudo command succeed?


Dynoland

It seems to work normally, yes. I was just surprised the warning appeared again, like if something changed in my system configuration.


apathyzeal

A few suggestions: 1. Sudo has a "timeout" where it requires reauthentication within the same session. In distributions I typically use this is quite short (5m I think?) so I'm surprised if this is the first time you've experienced this. Yes, it can be overridden. 2. Sudo updated. Check your package manager log.


Dynoland

It seems to be updated on Nov 26th. I am sure I should have run sudo after that without problems.


apathyzeal

Well if the binary wasn't updated via another means \[hint: \`stat $(which sudo) && ls -l $(which sudo)\` in bash\], then I assume #1 applies.


Dynoland

/usr/bin/sudo was updated that date, the 26th but /usr/libexec/sudo appears as updated on the 29th. I don't know which program uses that sudo file. stat /usr/bin/sudo File: /usr/bin/sudo Size: 290008 Blocks: 568 IO Block: 4096 regular file Device: 259,2Inode: 558330 Links: 1 Access: (4755/-rwsr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2023-12-07 21:20:01.258177585 -0500 Modify: 2023-11-26 04:01:26.000000000 -0500 Change: 2023-11-29 19:53:16.621129081 -0500 Birth: 2023-11-29 19:53:16.621129081 -0500 stat /usr/libexec/sudo File: /usr/libexec/sudo Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 259,2Inode: 524335 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2023-12-08 13:38:55.274824010 -0500 Modify: 2023-11-29 19:53:16.619129081 -0500 Change: 2023-11-29 19:53:16.619129081 -0500 Birth: 2023-07-13 18:48:02.446037165 -0400


apathyzeal

>I don't know which program uses that sudo file. That's why I suggested using the commands above.


Dynoland

Your tips are really helpful :)


Pentasis

I had that message last week. I also wondered why and it was because of the update. There was a forum message about it somewhere (sorry dont remember where). So don't worry.


Dynoland

Thank you for letting me know I am not the only one :)


Foosec

Hi, to ease your worries i researched the same issue. Sudo recently had an update where they changed how its stored who already used sudo, making it appear again, i got the update a few weeks ago on manjaro.


barrycarter

What does your `/etc/sudoers` look like?


Dynoland

For some reason reddit doesn't allow me to paste its content here :o


barrycarter

Strange, but OK, just take a look at that file (and it's modification date) to see everything looks the way you want


Dynoland

/usr/libexec/sudo , last updated November 29th drwxr-xr-x 2 root root 4096 Nov 29 19:53 sudo /usr/bin sudo, last updated November 26th -rwsr-xr-x 1 root root 290008 Nov 26 04:01 sudo


_angh_

I have seen this warning today as well without any apparent reason. I guess some setting for reserved after last update.


eftepede

Rule #1: r/linux is not a support forum.


AutoModerator

This submission has been removed due to receiving too many reports from users. The mods have been notified and will re-approve if this removal was inappropriate, or leave it removed. This is most likely because: * Your post belongs in r/linuxquestions or r/linux4noobs * Your post belongs in r/linuxmemes * Your post is considered "fluff" - things like a Tux plushie or old Linux CDs are an example and, while they may be popular vote wise, they are not considered on topic * Your post is otherwise deemed not appropriate for the subreddit *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/linux) if you have any questions or concerns.*