Sudo for all my commands for me

Hello, Guys. I’m new here.
I just transfered to Manjaro from Windows. While I had used my Windows machine, I prefered to be admin in my computer. Like God, I mean. I never used password, and all applications was launching by administrator.
Can I get this in Manjaro?
I’m the only user and I believe I don’t make anything bad for my pc in this way. Am I right?

P.S.
The reason is I just sick of entering “sudo” and my password.

While possible,

IT’S NOT RECOMMENDED.

Linux, thus Manjaro, is not Windows, and doing so would be one of the quickest ways to paint a bullseye right on your a$$.

6 Likes

No. Just no… There is so much crap out there.

3 Likes

I believe you believe that but I dont think you are on the right way! @Mirdarthos is right! :grinning:

You can run these two commands in terminal to learn more about:

man sudoers
man sudo

Have fun with Linux.

3 Likes

Would be very possible if he does everything with sudo:partying_face:

2 Likes

For us or him?

1 Like

Typos happen a lot quicker than one might think.
If not yours, it’s certainly my experience.

One not unimportant question:
How often do you think you need sudo?
… actually not very often

And you can set the system up to allow certain commands as root but without a password
if typing the password once a blue moon is still too much. :wink:

No.

Windows was born single-user. Network was an afterthought.

Linux is born network and multi-user.

Everything is build around permissions - so what you are asking may be possible but you get weird issues when you mess with permissions on system files.

You cannot come back here and ask for help with issues as it will be impossible to fix.

You could just enable root login in the display manager configuration.

Then login with root - but you will soon regret this.

9 Likes

No, you’re wrong. Every process that you start runs with the privileges of your user account, and if you allow your user account to elevate its privileges without requiring authentication, then every process you run can do the same thing, including the web-hosted scripts running in your browser.

So don’t do that! Thou hast been warned!

2 Likes

which then spawn a socket to a c&c where the operators of the bot net will laugh their ass off and make lifetime jokes about the sucker logged in as root.

6 Likes

“Hey, look at that IP address! I know this guy!”
-─ “Whohoa, he switched to Linux! And he was so joyfully running Windows as administrator until just a few days ago! Okay, now we have to switch to the Linux version of our rootkit.”
(cynical laughter)

:laughing:

4 Likes

guys, thanks a lot for your advice. Especially by @linux-aarhus . It’s explains me smth.

Then I get another question. Can I run my apps from simple menu with root or create some shortcuts in menu like “run wireshark” and “run wireshark as root”.

And is it right if I change ownership of all files in my hard drives with files (ntfs) using

sudo chown -R echo /drive/hdd/*

that I could play them from vlc.

Normally, yes. You’ll have to prefix the commands they invoke with pkexec, though.

No. NTFS does not support POSIX file ownership and permissions, so they are emulated in the virtual filesystem layer of the kernel when the NTFS partition is mounted, and they apply to the whole filesystem. The cannot be altered and they cannot be set for individual files.

1 Like

The only time you should need superuser privileges is when you actually need to change something in your system, such as installing/updating packages.
Some applications may require specific yet limited access to parts of the system. But in such cases, they usually create a dedicated user/group, that only access those limited parts, thus not actually requiring superuser privileges. And in those cases, there is documentation on what you may need to do in order to use them.

The broad logic is: superuser privileges shall be acquired only when really necessary, and not as an easy workaround.

2 Likes

Thanks everyone.

1 Like

Yup.

:rofl: :rofl: :rofl:

Do not run Wireshark as root, it is insecure. Wireshark has implemented privilege separation, which means that the Wireshark GUI (or the tshark CLI) can run as a normal user while the dumpcap capture utility runs as root[1].

Wireshark - ArchWiki

3 Likes

Unix way is to login as root. sudo is regarded as system weakness, especially without password…

If that were true, why is the default user/login not root?
Also, if sudo is such a weakness, why is it required for so many administrative tasks?

1 Like