Become superuser in Debian (sudo)

Solved
slifer Posted messages 58 Status Membre -  
Flachy Joe Posted messages 2303 Status Membre -
Hello,

I have been using Ubuntu and Fedora for a while now, and I'm starting to get interested in DEBIAN and its KDE interface. So I decided to download and install it. I downloaded the 8 DVDs available on the site (since I don't have a good internet connection). I initially installed it with a graphical interface (GNOME by default), and now I've reinstalled it in console mode only. In both cases, I have the same problem: during the installation, I specify a password for the root (let's say rootPass), and a user "moi" with the password "moiPass". I can log in as the user (whether in console mode or graphical interface), but whenever I try to switch to Super user, I get the message:
moi not in the sudoers file. This incident will be reported, so I can't become a super user. I read somewhere that I need to modify a certain "sudoers" file, but to do that, I need to switch to root, which I still can't do. Please, I'm struggling; it's been 15 days now, and I've reinstalled it several times without success.

Configuration: Windows 7 / Safari 535.19

9 réponses

Anonymous user
 
Launch su, and not su <command>

--
♪♪ Saachaa ♫
CCM Contributor
15
Flachy Joe Posted messages 2303 Status Membre 261
 
Once you have root access, you can add the desired user to the sudo group:
su
adduser moi sudo
exit

Once (de)logged in, you will be able to use the sudo command.
0