Not allowed to execute when using terminal to install HMA-VPN
Hi guys!
This situation drives me crazy. I've installed a fresh copy of Linux Mint Cinnamon 19.3 and I want to have my VPN up and running but it fails miserably. I've installed the OS like anyone else and ended up with two accounts, one I named administrator and one that I use daily named yufi (yeah, that name came about in windows when I got tired of reinstalling it and hammered my keyboard randomly for a name, somehow I liked it and it got stuck ever since :-) Sorry, got off topic here ;-) My yufi account is an ordinary account with no permissions, as it should be. When I use the GUI to install some software I need to type my admin password and everything works as it should. Some software, such as HMA-VPN must be installed via the terminal and here is where my problems start. When following instructions how to install the VPN the terminal asks me for password for yufi, I don't understand why because it has no permissions to install anything, but I do as I'm asked, and it doesn't install it because I don't have the permission (go figure). In the GUI for other programs it asks me for my administrator password and that works. So I've been looking for answers about that and why but either I don't understand what I'm doing wrong or something is missing. This was also the reason to why I had to reinstall the OS again as my attempt to fix this made my computer hang and behave strange and now I dare not to try again without some expertise. I know this may not be much to work with but it's a start. Tell me what you need to know and I'll give it. See ya later then, I hope :-/ |
looks like you haven't heard about sudo. When you want to install something you need to use the root account. You can reach it either by entering its password (that works when you use GUI), but there is another way when you are using CLI. It is called sudo. You need to configure your user (yufi) to be able to execute sudo, otherwise it will not work.
Alternative solution: you will switch to root manually using su (not sudo) and afterward you can install your VPN software. |
Quote:
|
you can find a lot of tutorials/examples on the net, choose your preferred one. Here is an example: https://www.linux.com/tutorials/conf...nation-example
|
A standard install of Mint will require you to create at least one user before the installation will complete. That user will be the primary user and will have root/sudo privileges. Generally, no need to create a separate admin account but of course, you can. If the user yufi is the primary user, s/he should have sudo privileges and if that user does not, then either you changed something or it was not the primary user created during the install. Reading the link posted above should help and you can also take a look at the Ubuntu documentation on using sudo at the link below which would be the same for Mint.
https://help.ubuntu.com/community/RootSudo |
Quote:
# export EDITOR=emacs; visudo Next is this that should happen: This will open /etc/sudoers in the emacs editor. You can use any editor you like… ankit, jed, vim, whatever.Now that you have the /etc/sudoers file open, it’s time to configure sudo. Sounds easy peasy... below is the result right off the bat yufi@yufi-K53SM:~$ export EDITOR=emacs; visudo visudo: /etc/sudoers: Permission denied yufi@yufi-K53SM:~$ # export EDITOR=emacs; visudo yufi@yufi-K53SM:~$ I also tried the # in case that had a meaning, like I said, I'm apparently a f'ing noob at this. I feel like a retard right away, what am I missing here? I'd like to learn this in a normal pace and not when I actually need something done because that's when it goes south and ends up with a reinstall of the OS as nothing works. Thanks (best part in this is that I can have a good laugh about it later :-D |
Quote:
Anyone have some solutions? The above link didn't help me at all so... Thanks. |
An OEM install is not going to be the same as a normal installation. The Mint site at the link below explains the process. Based on that I'm not sure why you would want or need an admin account.
https://linuxmint-installation-guide...atest/oem.html |
Quote:
I did not ask for an oem distribution but that was what I found when I was looking for a Linux Mint to install on my computer. There was x86 and amd64 and nothing else besides a lot of languages and versions and what have you, I think. You know, I searched for a version I could burn on a DVD in order to install and since there was no clear hint on what exactly to download as there where a lot of different downloadable links and whatever....... Ok, this may be clear as clean water to you but for me, this is all confusing.... and you're not helping me. I mean, as awesome as Linux may be, there seem to be a resistance to give me accurate information on how to fix my problem. And I'm certain that this is easy as hell to fix, we're talking about Linux here, the awesome OS, so what's the problem?? It's like I'm in a car and I have never seen a car before, so I ask how do I start it, what next, gears? Ok, where is that, aha, the stick and you need to press down the left pedal in order to put the first gear in place.... etc! You get the picture. I need to get the VPN in place so I can go about my things myself! I have no interest in using admin permissions as they do in Windows, that is idiotic and completely against the idea when using Linux. The security is number one.... hence me wanting to install something as simple as a VPN... turns out, it was not that simple at all and you don't seem to see the issue I'm up against. So again, can someone give me something to work with? Please? Or at least, give me a link to a proper distribution I can download and install instead? |
Quote:
Code:
sudo usermod -a -G sudo yufi Or you can switch to a distro with a root password. Given that you're new to Linux, PCLinuxOS or MX Linux might work for that. |
Quote:
No, eventhough searching the internet has created the saying "google this and that" I use the Duck duck go as Google only returns crap. Thanks again, see you later then ;-) |
instead of reinstalling the os you need to learn how to use sudo. Reinstall will not solve this issue.
|
Quote:
Quote:
|
Quote:
So, after I face palmed myself a bunch of times, I now know that when it is installed, leave the f*ing thing be, it is awesome as it is. Like i said in my first comment I think, this is probably something I can laugh about later, turns out, the joke is all on me LOL :-D Well, thatś how you learn isn't it, trial and error. And you may have learned something too, a new unthinkable way to mess things up! I'm about to install the VPN now and I'm fairly confident that it will work this time and if not, I think I'm gonna shoot myself ;-) I'll return later with an update on my doings :-) |
Ok, I'm back again, at it for the... whatever! I lost count. Anyway, here goes:
I've been in contact with the HMA support and I still have issues, as usual ;-) and my last reply from them came about some minutes ago and I find it, as usual, a bit confusing. Read below, with comments from me I made now (*): ------------------------------ Again, you are not performing all proper steps. If your scripts are unzipped on Desktop, you shouldn't be running these commands from Downloads folder. (* Well I moved them first so that I know where they are, not good I guess) Please access folder where scripts are via Terminal, and with cd command. (* Now, I did that, unzipped them onto the Desktop and then I'm told to run the command "sudo ./hma-openvpn.sh" which I did and get "command not found") Also, re install doesn't mean that user permissions are fine (* Well I had to since I screwed it up earlier), and you need to create sudo user (* Ok, I need help with that because instructions I found didn't work, I don't really know what I'm doing and what is wrong.) If you remember, you have been declined for DNS changes. Please follow all recommendations precisely and you will be fine. (* Well, I think I do, at least I try :-/) There is no point that we are going back and forward with the same steps. (* I strongly agree on that :-D) --------------------------------- So that's the story of my current life. At least I've actually learned a little in this process but I need a some more assistance. So what do you say, am I f'd or is there still hope? :-o |
All times are GMT -5. The time now is 12:04 PM. |