r/linuxquestions • u/[deleted] • Jan 02 '21
Resolved Finally Became a Linux User!
I have been Trying to Get into the Linux Scene for quite a while an I made the Jump Yesterday.
There were some problems along the way but this community has helped me get past them.
I'd like to especially thank these Redditors for their kind Support.
I'm extremely Grateful for your help. Thank You :)
Here Are My Thoughts About Linux (Mint + XFCE)
Pros ----------
It's Waay faster than Windows.
Installations are quite pleasant and aren't cumbersome like windows.
Most of the Software I need is already available. (JDK, Python, GCC).
Faster Compile Times in Java/Haskell, Go, C/C++ and Rust
Automatically Detects Dependencies so if you don't have some prerequisites of an application fulfilled, it resolves it.
Cons ----------
I have to enter my password for everything, I mean EVERYTHING.
8
u/gagahpangeran Jan 02 '21
You have type password to launch application too?
9
Jan 02 '21
No Not That. It asks for Password when
Login (Obv)
Change Some settings
Install Something
Download Something
Try to Access some folders.
And Much More.
10
u/gagahpangeran Jan 02 '21
I never use linux mint but from my experience using ubuntu and opensuse tumbleweed, I only need enter password for action that needs sudo (e.g. install package, modify file outside home folder, create partition).
If you need to enter password when accessing your own home folder, maybe there's something wrong with your home folder permission.
2
Jan 02 '21
There's not anything wrong and my installation does work in the way it is supposed to but I personally would like Full Control without having to Enter the Password every time I access anything other than /home. Ti's nothing but personal opinion, since only I use My Computer. Although if I were using a Shared PC. This feature is a Life saver.
9
u/gagahpangeran Jan 02 '21
This is common practice for security reason, you'll get used to it.
And last, welcome to linux! Hope you enjoy!
7
4
u/MoobyTheGoldenSock Jan 02 '21
You typically don’t need to go messing around with system files and when you do, the password is there to remind you that it’s not yours.
Sometimes you do want to take ownership of a file. For example, you decide to start a project in /opt. Here you would create your new folder (sudo mkdir project) and then take ownership of it (sudo chown -R mooby project). You could then give yourself full permissions to tinker with it (sudo chmod -R 755 project).
Now project is your folder and you have full permission (read, write, execute) to do what you want with it.
I recommend reading up on the chmod and chown commands as you’ll need them if you do a lot of work outside the home directory.
1
Jan 02 '21
Huh,
chmodandchownseem quite interesting I'll definitely look more into them.11
u/adamski234 Jan 02 '21
Just in case you thought about it, changing permissions for all the files is a horrible idea and will make your system unbootable
5
Jan 02 '21
So I've been told. I'll definitely try to understand these commands as deeply as I can before I do anything with them.
3
Jan 02 '21
So I've been told. I'll definitely try to understand these commands as deeply as I can before I do anything with them.
6
u/gregorthebigmac Jan 02 '21
As /u/adamski234 mentioned, don't go changing the owner and/or group of system files, it will break things. Sometimes you will encounter the need to change owner/group of files, and those are definitely handy commands, but if something belongs to root, there's a 99% chance it's that way for a reason.
5
Jan 02 '21
Indeed, That's why I said
Look more into them
Read and Understand them First and use them Only if Needed.
4
u/gregorthebigmac Jan 02 '21
Fair enough. I just wanted to really emphasize that, because we get a lot of noobs who hear something and then go do it, and then we see a post a day or two later asking why it broke. It wasn't me assuming you're stupid, it was just for extra emphasis :)
6
u/vikarjramun Jan 02 '21
If you really want to skip password prompts, you should configure
sudo(and possibly polkit) to skip password prompts.Run
sudo visudoand enter your password. You will be dropped into an editor with a copy of thesudoconfig file open. Chances are it will be Nano, so be aware of how to edit using Nano.Add the line
_codename ALL=(ALL:ALL) NOPASSWD: ALLReplace
_codenamewith your actual username. Save and exit the file, then reboot. This should remove most of the password prompts you see.Some prompts may be created by Systemd's PolicyKit framework instead of sudo, so follow the instructions from the arch wiki to disable polkit for you. Replace the
wheelgroup with thesudogroup because that is how Ubuntu/Mint does it.4
u/MitchellMarquez42 Jan 02 '21
An addendum: Most distros (other than Mint/ubuntu) use vi as the default text editor for visudo (hence the name, vi-sudo). To prevent this, instead of
sudo visudodosudo suto get a root shell. From there, typingexport EDITOR=nanobefore your visudo command ensures that you actually do get a nano editor rather than vi.Additionally, you could probably even do
export EDITOR=mousepador some other graphical text editor-- but nano is simple and easy, and being able to use it later on when you break your desktop and have to live in a pure terminal for a while is a lifesaver.5
1
u/pistoladeluxe Jan 03 '21
This is what I do personally. You need a password to log in and that's enough for me. And if if I need to do something that requires root access, my system will politely tell me I don't have access and that I need to use sudo. And of course, only use sudo when you need to.
28
u/Mordynak Jan 02 '21
It's a security feature. Think of it like windows UAC. Prompting you any time you try to install something. Or when something or someone else tries to install something.... for you.
3
u/bss03 Jan 02 '21
Think of it like windows UAC.
Yeah, I don't think it's actually any more frequent than the current UAC settings on Win 7.
I know some people disable UAC or simply run as administrator / SYSTEM, but I honestly wouldn't choose to do that, any more than I would choose to run everything as root on Linux.
4
3
u/stpaulgym Jan 02 '21
Take a look at ElemntaryOS then. It doesn't prompt passwords when installing.
2
u/pikecat Jan 03 '21
Another way to do multiple system tasks at once it to open a terminal, login as root there, do your tasks and then log out. Now you have entered the password once for a bunch of actions.
Some people are against this, but a a Gentoo user, I spent alot of time in a root terminal. It's fine.
2
u/pandjipras Jan 03 '21
if you hard to type long password just make password 1 word, like "1" boom, its gonna be easy.
5
u/osugisakae Jan 02 '21
First, welcome!
Second, as others have already said, the password prompt is your friend. Also, aside from maybe editing a system-wide config file (for a server, for example), you don't need to be doing anything outside of your home folder.
However, for those times when you do need to make a lot of system-wide changes (maybe installing and setting up a new server that has significant configuration needs), you can open a terminal and do:
sudo su -
This will basically log you into that terminal as root and EVERYTHING you do in that terminal will be done as root. You should NOT do this lightly and you should be very, very, very careful.
BUT, if you are careful, and you are sure no one evil is going to target your physical machine, it can be an effective way to have root access for a few hours without worrying about sudo timing out.
Actually, I hesitate to suggest this, because it can be controversial (in my experience), especially for newbies because it makes it very easy to mess up your machine.
3
Jan 02 '21
Hm, I'll stay away from
sudo su -for now. And now I am starting to realize that the Password Prompt is For The User's Safety. It is going to take a while to get used to it but I think that's for good.
41
u/AlpineGuy Jan 02 '21
After some time on Linux, whenever I use a Windows machine, I get surprised / frightened by the stuff it lets me do without a password.
20
u/couchwarmer Jan 02 '21
Your Windows account must have admin privileges. First thing I do is create an admin account and downgrade my own. Windows setup could require the user to create a separate admin account, but the masses would never put up with it.
8
u/TalesOfSymposia Jan 02 '21
Also, I remember one of the common complaints about Vista was that for regular accounts the UAC was too aggressive in its default setup and had to be adjusted so that it would be bearable. You gotta consider how the average Windows user uses their PC.
5
19
u/Rasbeer Jan 02 '21
I dont think that con is actually a con but if you really wanted, you could turn those password prompts off.
4
u/R4ttlesnake Jan 03 '21
this^
I'm pretty sure there's a way to allow sudo for users or groups of users without password
whether that's a good idea or not - we'll leave that to the reader's discretion
12
Jan 02 '21
Re: Con.
You can turn off administrator prompts, in `sudo`, by `visudo /etc/sudoers` and uncommenting a line that says `%wheel ALL (ALL) `, but I'd strongly advise against that.
The whole point of Linux having a stronger security model than Windows is that you shouldn't let the OS decide when to run programs, and some tasks like installing software should have your full attention. A half-measure would be a biometric scanner, like a fingerprint reader (re: r/linuxhardware, can have a few suggestions), but I would just get used to admin prompts, it's extra work that you stop noticing after a while and it will pay off in the long term.
8
u/aaronryder773 Jan 02 '21
Entering password for installing apps, entering root folders and whatnot, is a good thing. Give it some time you will get used to it. I prefer it this way.
7
u/Linux4ever_Leo Jan 02 '21
Having to enter your password for admin tasks is a security feature. Security is one of Linux's hallmark features.
6
2
4
3
Jan 02 '21
I'm really digging Linux too as a new user. I'm on Kubuntu myself. But my major problem is lack of proper software and proper software support. I don't care much about Office, but I'm worried that the Linux Teams client is barely functional. I need that for my activities. I guess I should look into running it through Wine.
3
2
u/auiotour Jan 02 '21
I use both Teams on Windows and Linux, frankly I haven't noticed a difference.
What features are you missing. I haven't looked into it too much.
2
u/osugisakae Jan 02 '21
This is really something for another thread, but what do you mean "lack of proper software and proper software support"?
My issue when I have to use MS Windows or MacOSX is the lack of an official repository with everything I need.
3
Jan 02 '21
For example, in case of Teams client for Linux, it lacks several features that were available in Windows. Also Photoshop and AutoCAD are not available on Linux and the free equivalents really lag behind. But anyway I'm enjoying my time with Linux. I love the level of customizability and freedom that it offers me.
1
u/osugisakae Jan 03 '21
Teams
Shocker - software from MS lacks features on Linux. In related news, it is really annoying that I can't download MS source code to check (and compile) for myself.
Photoshop and AutoCAD
User issues - if you are a professional user of Photoshop or AutoCAD, then the OS isn't the issue, your software requirements are the issue. (Also, how do they run in Wine? Isn't Adobe mostly an online service now?) If you are not a professional user of those tools, then the FLOSS versions are more than good enough.
1
u/uilspieel Jan 03 '21
I use the teams browser app on Chrome in both Win and Linux, because frankly I could not get the client working in Windows.
3
u/couchwarmer Jan 02 '21
A lot of the speed gain is not having anti-malware and OEM bloatware installed on the typical system purchased from a store.
3
Jan 02 '21
> I have to enter my password for everything, I mean EVERYTHING.
welcome to linux young lad
2
Jan 02 '21
You will really won't even notice it after a while tbh. If you are in a personal PC and you 100% sure that no one is gonna sit and mess your system, you can make it not asking for your password when using sudo and I think give you access to use anything even without sudo.
BUT this is a VERY bad idea for many reasons. For security reasons and in case you do a typo mistake or anything similar. Again I recommend not to do but it's your choice, just know that it exists
2
u/drLobes Jan 02 '21
You can always auto-mount on boot other partitions or folders so you won't have to type the password to access them.
2
u/khalidpro2 Jan 02 '21
For password you can remove the need to type the password by editing the sudoers file, but I don't recommend doing that because It is very unsecure
2
u/waltercool Jan 02 '21
Asking for password for amy system change is a feature.
You don't want to realize unwanted apps are taking system changes, common behavior at Windows.
Even OSX ask you the password for everything, as its good security measure.
2
u/The_camperdave Jan 02 '21
I have to enter my password for everything, I mean EVERYTHING.
Deep down, at its core, Linux is Unix - an OS for mainframes. That means multiple users accessing the machine from multiple terminals. You can add a second keyboard, mouse, video card and monitor and have two people log into two different desktops. You could attach a modem and have a third person dial up and connect that way. A dozen more could connect via ssh over the internet. Linux can handle that security-wise out of the box. It can do this because functions and settings that affect multiple people are secured behind passwords.
Yes, it gets inconvenient at times, but it gives you a much more stable system.
2
u/ReddishSandy Jan 03 '21
I'd been wondering lately about the wisdom of disabling passwords for sudo. I'm setting up an HTPC with Retropie, which wants you to do just that. I have zero concerns about unauthorized physical access to this machine, but I intend to leave an SSH server running on it, and I really don't know how big a security risk this is.
2
Jan 03 '21
Assuming your talking about having to enter your password every time with sudo, you can edit the /etc/sudoers file to change the rules about when you have to enter your password.
Don't know any of it off of the top of my head, but it's good to be able to learn how to learn, especially with linux, so I'll just leave you with that.
2
u/Phydoux Jan 03 '21
I have to enter my password for everything, I mean EVERYTHING.
You know where you are? You're in the jungle baby! :)
I prefer having to enter a password especially because I leave my computer on a lot. Think of it as a necessary safety measure. Some have told you how to disable it and have also advised against it. That's like dangling a steak in front of your dog and telling him/her NO! while their moths are watering.
So, don't do it! You'll get used to the password.
2
u/Ripnicyv Jan 03 '21
Cons ----------
I have to enter my password for everything, I mean EVERYTHING.
it improves your WPM typing
2
Jan 03 '21 edited Mar 05 '26
[removed] — view removed comment
1
Jan 03 '21
Yes, but I'm probably going to stay away from messing with anything in any directory other than /home as well as the
.bashrcfile for now, except when I need to add something to the $PATH. That brings me to another question (if you don't mind) - Is there any way I can link a separatePATHSfile to my .bashrc so that I can edit that file when I need to add something to the path instead of directly editing the.bashrc?
84
u/prthorsenjr Jan 02 '21
Another way to look at this is, Do you really want to do what you think you want to do?
Meaning, the asking for a password allows you time to make sure you're doing the right thing.
As others have said, you'll get used to it and in due time appreciate that it's there.