Please next time use code tags as explained in
ftp://ftp5.gwdg.de/pub/linux/mandriva/m ... e_tags.ogvarchp2008 wrote:Thanks for this. Sudo is installed but get access denied in next step:
[arch@localhost ~]$ echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/01wheel
bash: /etc/sudoers.d/01wheel: Permission denied
You try as normal user to write to a directory which requires root permissions. What do you expect?
archp2008 wrote:[arch@localhost ~]$ sudo add-apt-repository ppa:michael-gruz/canon-trunk
[sudo] password for arch:
sudo: add-apt-repository: command not found
[arch@localhost ~]$
apt-get is a command for Debian-based systems. apt is not installed by default on Mageia, as we use rpm as package format.
But even if you would install it, the Ubuntu packages you are trying to install will probably not work correctly or at all.
What do you want to achieve with that?
archp2008 wrote:[root@localhost arch]# echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/01wheel
[root@localhost arch]# end copy & paste
[1] 7979
bash: end: command not found
Why does it say end command is not found?
Because that's what you entered at the prompt.
And as mentioned, best use visudo as root for sudo configuration. From what I can see, /etc/sudoers.d/ is not even enabled by default on Mageia.