R
R
Roman Vasilenko2012-11-14 11:00:41
linux
Roman Vasilenko, 2012-11-14 11:00:41

How to make it so that you do not have to constantly type 'sudo ' before the command?

I want to do on my own home server as it was done in the installation of Ubuntu 12.04 LTS on hetzner. There you just log in via SSH and you are with superuser rights.
I searched but didn't find how to do it myself.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Akulovich, 2012-11-14
@farewell

$ sudo -i
and then run as root.
Well, or enable the ability to log in immediately under the root (set the root password via sudo passwd root).

M
mx2000, 2012-11-14
@mx2000

offhand there are two options:
1. from the start, log in as root via ssh
2. sudo su -

I
ivanra, 2012-11-15
@ivanra

Sometimes it's too lazy to enter additional commands, and I just write sudo mc(of course, if mc is installed). Further, all actions in mc go under the superuser)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question