Linux - Reddit – Telegram
Linux - Reddit
776 subscribers
4.19K photos
207 videos
39.9K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
Visudo help with id command

Hello,

​

I am setting up a bash/html CGI that will allow me to generate graphs with GnuPlot under RedHat 7.6.


My tutor ask me to create a cgi noscript that will be able to return a sudo id (root) without a password.


Actually, if I add the id command in one of my cgi-noscript, the return is :


uid=48(apache) gid=48(apache) groups=48(apache) context=system_u:system_r:httpd_sys_noscript_t:s0



But I want this return :


uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023




So I going on the the visudo file and I add :


httpd ALL=(root) NOPASSWD: id


But it doesn't work. And I don't know if I have to put "httpd" or "apache"...
The objective is to learn how this file works.


Can you help me ?

https://redd.it/bpp14l
@r_linux
PSA: NoMachine works on Wayland

Just wanted to post here because I'm sure many people don't know this. I discovered by accident that NoMachine works on Wayland! Quickly tested this on Sway and Gnome with the latest NoMachine on Arch Linux.

EDIT: To clarify, incoming connections are what I'm talking about. That's the big news here

https://redd.it/bpqwfr
@r_linux
Weekend Fluff / Linux in the Wild Thread - May 17, 2019

Welcome to the weekend! This stickied thread is for you to post pictures of your ubuntu 2006 install disk, slackware floppies, on-topic memes or more.

When it's not the weekend, be sure to check out r/WildLinuxAppears or r/linuxmemes!

https://redd.it/bptxgg
@r_linux
HOWTO make Linux run blazing fast (again) on Intel CPUs (by disabling ALL the security precautions against Zombieload/Spectre/etc)
https://linuxreviews.org/HOWTO_make_Linux_run_blazing_fast_(again)_on_Intel_CPUs

https://redd.it/bpv3ft
@r_linux
Finally switched to Linux, decided to create a "clone" of Everything called Drill

Hi /r/linux, I am a Windows user since Windows 3.1 (1992).

First time posting in this subreddit and I hope I did everything right!

Some weeks ago I finally moved to Linux, I never had big requirements for a distro but there are two key points that really need to be satisfied for me:

1. Thumbnails in file picker(the 15+ years open issue with GNOME)
2. When I do something with the UI the most obvious action needs to take place(ex: a middle click on an icon in the taskbar should start a new instance)

After trying 90% of distros I finally found that Deepin has all these two requirements, the first one is fixed by providing a patched GTK and the second one because they just copied the Windows UI instead of hating it.

^(But sadly I mean the Deepin distro, not the DE, installing the DE without the full distro will not install the patched GTK.)

After few days I got everything working but I knew a big frustration would come up soon: file searching.You see on Windows there is this super cool software called [Everything](https://www.voidtools.com/) that dumps the NTFS partition file list and can scan almost instantaneously your files.File searching in Linux instead is broken: updatedb is old technology and it's sad a lot of GUI applications use it as backend like Catfish, AngrySearch and FSearch still use indexing and are slow too.

So I decided to write my own solution to it, using clever crawling instead of indexing:

* **Designed for desktop users**, no obscure Linux files and system files scans
* At least 1 thread per mount point
* no sudo/root required
* Try to avoid "black hole folders" using a regex based blocklist in which the crawler will never come out and never scan useful files (node\_modules,Windows,etc)
* Use priority lists to first scan important folders.
* Betting on the future: slowly being optimized for SSDs/M.2 or fast RAID arrays

​

​

[Drill](https://i.redd.it/ncp96akmkvy21.png)

So I decided to make Drill, a free software that does all of this written in D:[https://github.com/yatima1460/Drill](https://github.com/yatima1460/Drill)

​

Binaries on the cool website >[here](https://www.drill.santamorena.me/)<.

You can find AppImage, .deb and portable .zips.There are a lot of things I don't understand about Linux yet: like .rpm, if GTK supports drag and drop, if GTK is the best choice for the UI, what is systemd, how to get file associations for a right click menu, how to open files in Wayland (does xdg-open even work there?), and so on... I hope the community can help fix Drill to bring the Year of the Linux Desktop, also someone already made an [Arch AUR](https://aur.archlinux.org/packages/drill-search-git/) port!

Let me know if everything works, like the AppImage, it's already a miracle I got it working after switching to Linux less than a month ago.

Theoretically the Portable version should run everywhere where GTK is installed.

&#x200B;

**The Windows build is very broken but I don't really care for now**

&#x200B;

(I hope I added the correct flair)

(I hope I did everything right with the .deb file)

(Yes the right click still does not work, but double clicking to open the file searched works)

(But if you run it with sudo it should be able to open and crawl files created by root in non-blacklisted folders)

(The only real broken thing on Drill right now is icons, it seems some Linux GTK distributions don't have some "default" icons)

^(The funny thing is that it's faster than Everything when scanning network drives because Everything needs to index everything first, meanwhile my software just searches without full indexing.)

^(The CLI version is just a minimal build for it and to test the core library, right now I want to focus on the desktop user, also if you use the CLI version you would already know how to build from source and use it)

^(Yes the logo is a reference to Gurren Lagann, but it's also a drill that digs in your SSD)

^(If you have a D job, I would gladly work for you lol)

http
s://redd.it/bpztj9
@r_linux