Page 1 of 1
[SOLVED] Editing sudoers as SU

Posted:
Aug 26th, '12, 00:04
by michel
I am trying to install TrueCrypt and it requires that my user is listed in the sudoers file. How can I edit sudoers as SU so that I can save the chages?
Michel
Re: Editing sudoers as SU

Posted:
Aug 26th, '12, 00:09
by alf
- become root
- Code: Select all
su
- then
- Code: Select all
vi /etc/sudoers
(sudoers has to be editited using vi)
edit: if you don't know how to use vi have a look
here
Re: Editing sudoers as SU

Posted:
Aug 26th, '12, 01:13
by djennings
There is a specific version of vi to use when editing sudoers
- Code: Select all
visudo
Re: Editing sudoers as SU

Posted:
Aug 26th, '12, 09:42
by michel
Thank you for your help but I give up!
mageia has a great modern look and feel but this vi thing is just too much. I come from Mepis and there we have the option of using Dolphin as root and kwrite as root why are these options not available to mageia?
- To start with is it normal to have an empty sudoers file?
- I typed vi etc/sudoers in konsole and then i and then pasted this:
# User alias specification
User_Alias TRUECRYPTERS = michel
# Cmnd alias specification
Cmnd_Alias TRUECRYPT = /usr/bin/truecrypt
# User privilege specification
TRUECRYPTERS ALL = (root) TRUECRYPT
and then ZZ
Nothing! sudoers is still emplty!
When I try again I get the message taht there is a temp file open!
I go to the directory to delete the temp file and it does not exist!
Is there a way to use kwrite as root?
Michel
Re: Editing sudoers as SU

Posted:
Aug 26th, '12, 09:57
by michel
Now sudoers is not empty anymore????? Still cannot use vi or visudo to edit.
Michel
Re: Editing sudoers as SU

Posted:
Aug 26th, '12, 10:02
by isadora
You can use dolphin and kwrite as root by pressing Alt+F2 (krunner) and give:
kdesu dolphin
kdesu kwrite
Re: Editing sudoers as SU

Posted:
Aug 26th, '12, 10:18
by michel
Thank you for your help. I managed to get TrueCrypt running and now my mageia system is finalized and running. Is there a way to create shortcuts for kwrite as su and dolphin as su in the menu?
Thanks,
Michel
Re: Editing sudoers as SU

Posted:
Aug 26th, '12, 11:02
by doktor5000
FWIW, there is the package kde-rootactions-servicemenu which allows similar actions via context menu from inside Dolphin
Re: Editing sudoers as SU

Posted:
Aug 26th, '12, 11:08
by michel
Wiel dank her doktor
Michel
Re: Editing sudoers as SU

Posted:
Aug 26th, '12, 13:17
by isadora
Michel, now your problem seems to be solved (?),
please mark the topic as solved.
You can do so by editing the title of your first message in this topic by prefixing the title with [SOLVED].
Thanks in advance.