[SOLVED] Editing sudoers as SU

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Editing sudoers as SU

Postby michel » Aug 26th, '12, 00:04

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
Last edited by michel on Aug 26th, '12, 13:35, edited 1 time in total.
michel
 
Posts: 52
Joined: Aug 25th, '12, 20:55

Re: Editing sudoers as SU

Postby alf » Aug 26th, '12, 00:09

- 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
for windows problems reboot; for linux problems be root
alf
 
Posts: 326
Joined: Apr 1st, '11, 23:07
Location: DE Paderborn

Re: Editing sudoers as SU

Postby djennings » Aug 26th, '12, 01:13

There is a specific version of vi to use when editing sudoers
Code: Select all
visudo
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Editing sudoers as SU

Postby michel » Aug 26th, '12, 09:42

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
michel
 
Posts: 52
Joined: Aug 25th, '12, 20:55

Re: Editing sudoers as SU

Postby michel » Aug 26th, '12, 09:57

Now sudoers is not empty anymore????? Still cannot use vi or visudo to edit.

Michel
michel
 
Posts: 52
Joined: Aug 25th, '12, 20:55

Re: Editing sudoers as SU

Postby isadora » Aug 26th, '12, 10:02

You can use dolphin and kwrite as root by pressing Alt+F2 (krunner) and give:
kdesu dolphin
kdesu kwrite
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Editing sudoers as SU

Postby michel » Aug 26th, '12, 10:18

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
michel
 
Posts: 52
Joined: Aug 25th, '12, 20:55

Re: Editing sudoers as SU

Postby doktor5000 » Aug 26th, '12, 11:02

FWIW, there is the package kde-rootactions-servicemenu which allows similar actions via context menu from inside Dolphin
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Editing sudoers as SU

Postby michel » Aug 26th, '12, 11:08

Wiel dank her doktor

Michel
michel
 
Posts: 52
Joined: Aug 25th, '12, 20:55

Re: Editing sudoers as SU

Postby isadora » Aug 26th, '12, 13:17

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.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest