this post was submitted on 13 Oct 2023
38 points (85.2% liked)

Linux

48331 readers
639 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

My user account doesnt have sudo despite being in sudoers. I cant run new commands i have to execute the binary. Grub takes very long to load with "welcome to grub" message. I just wanted a stable distro as arch broke and currupted my external ssd

you are viewing a single comment's thread
view the rest of the comments
[–] mariah@feddit.rocks 0 points 1 year ago (1 children)

I meant, for example, i have to run /usr/sbin/smartctl instead of just smartctl

[–] tal@lemmy.today 1 points 1 year ago* (last edited 1 year ago)

Okay. I have my config files set up to add /sbin and /usr/sbin to my PATH -- that's probably a config that dates back at least a decade -- but it looks like Debian defaults to not having /usr/sbin or /sbin in PATH for non-root users; you can see this in /etc/profile, where it's only adding /usr/local/sbin, /usr/sbin, and /sbin to root's PATH, but not to other users.

If you run su -l, then that'll give you a login shell as root, and that'll have those in the path.

You can also add them to a regular user's path. I don't know what the "right way" to modify PATH for a graphical desktop is these days, so I can't give much help there; with xdm starting Xorg, which is what I do, it's to put it in a ~/.xession file, something like:

export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games"

and for login bash shells, like for if you ssh into the system or log in on the console, in ~/.bash_profile, the same.

But GNOME under Wayland and all those new desktop environments probably have some way to modify PATH, something which they run at when you log in, and I don't know the appropriate place to stick those or which you use.