Page 1 of 1

sudoer

PostPosted: Jul 12th, '16, 15:46
by Kadmus
I need assistance. When I try to use my user password in the terminal, I am told I am not on the sudoer list.

Here is the command I enter:

"sudo grub-install /dev/sda5"

It asks for my sudo password and I enter my user password, and i subsequently informs me that I am not on the sudoer list. I haven tried entering my root password to no avail.

I also have MManjaro Linux installed and in its terminal I entered this:

"sudo pacman -S grub"
"sudo grub-install /dev/sda"
"sudo update-grub"


Subsequently, if I were to enter:

"sudo grub-install /dev/sda5" followed with:

"sudo update-grub"

I should then be able to boot into either Mageia or Manjaro Linux. Loooking around I found how to edit by hand the 'sudoer.d' folder, but I also discovered I do not have the authorization to do anything. I am back to quadrangle one. How do I get permission to edit the aforementioned file, so I mayenter those commands which will allow me to dual boot.

Re: sudoer

PostPosted: Jul 12th, '16, 18:23
by doktor5000
See https://wiki.mageia.org/en/Configuring_sudo
sudo is by default only configured in *buntu and its various derivates, apart from that I don't know other distros that configure sudo by default for regular users.

There are also various thread in the forum explaining this, which you would have found using the search function ...

Re: sudoer

PostPosted: Jul 12th, '16, 19:24
by gohlip
doktor5000 wrote:See https://wiki.mageia.org/en/Configuring_sudo
sudo is by default only configured in *buntu and its various derivates, apart from that I don't know other distros that configure sudo by default for regular users.

Plenty. Debian (+ derivatives) Arch, Manjaro, .....
Perhaps what Ubuntu does differently is using kdesudo where the graphical user is in 'sudo rights' and not 'root rights' which I personally find it 'fair'.

doktor5000 wrote:There are also various thread in the forum explaining this, which you would have found using the search function ...


Agree. But just to help you along, here's one.
viewtopic.php?f=15&t=10997#p63989

But back to your first post.
The typical "Mageia way" is to be root in a terminal.
Code: Select all
su -


Then proceed with your commands.
But just FYI, I prefer also the 'sudo' way.

[edit] - h... the grub commands in Mageia is "grub2-install" ... not "grub-install" unless you're using grub-legacy (recheck because it is Mageia's default until recently).
And in grub-legacy, these commands are not valid (to partition, for example).
And you will be better off using "--force" in grub install to partition.

Re: sudoer

PostPosted: Jul 12th, '16, 23:57
by doktor5000
gohlip wrote:
doktor5000 wrote:sudo is by default only configured in *buntu and its various derivates, apart from that I don't know other distros that configure sudo by default for regular users.

Plenty. Debian (+ derivatives) Arch, Manjaro, .....

AFAIR usually the only thing that's preconfigured is sudo permission for members of the wheel group, which you're not a member by default and which you have to add your user into first.

Or how do they know beforehand which user gets sudo permissions?

Re: sudoer

PostPosted: Jul 13th, '16, 05:30
by gohlip
There are a few places (depending on the distro) which they do that.
One is at the install itself where they ask if the 'user' can have sudo rights, then I suppose they add to the 'wheel' at that point.
Another point is when a user is added (at root) and also ask if that user can have sudo rights.
IIRC, Manjaro lets all users get sudo rights, if they key in the root password correctly; we can debate if that is 'fair', but that is besides the point.

Re: sudoer

PostPosted: Jul 13th, '16, 05:46
by Kadmus
I went to create a file and discovered I did not have the proper permission to' do such a task., Not only that but also I could not open the "/etc/sudoers.d" folder or the "/etc/sudoers" file.

I was not considered a high enough "muckity-muck" to do what was needed. My intent was to have Manjaro as the 'default bootloader'.It would appear such a task is not possible from within Mageia, eggo, I reinstalled Manjaro in its partition location of "/dev/sda2"

I for one found the info on 'sudoers' and what to do, a bit confusing, but maybe that is just me. Another reason I wanted Manjaro as the 'bootloader' was to avoid Manjaro getting 'the panic de kernel'. (Kernel Panic).

I was unsuccessful using the Terminal, but is there a way the 'commandline' can be used?

Re: sudoer

PostPosted: Jul 13th, '16, 05:54
by gohlip
I went to create a file and discovered I did not have the proper permission to' do such a task
You need to be root to do this.

Anyway, try the "su -" first and finish what you want to do in first post.
Won't let you be root also? Check your password then.

Re: sudoer

PostPosted: Jul 13th, '16, 05:57
by gohlip
I for one found the info on 'sudoers' and what to do, a bit confusing, but maybe that is just me. Another reason I wanted Manjaro as the 'bootloader' was to avoid Manjaro getting 'the panic de kernel'. (Kernel Panic).

Go to Manjaro forum.
There's a tutorial written by me on how to overcome this.
It will work whether or not Mageia's grub is set to partition or not (but yes, it's better if set to partition).