desktop problem debian 10.2

Everything about X, Gnome, KDE, ... and everything running on it

Re: desktop problem debian 10.2

Postby Chrisdb » 2020-02-15 14:04

Post complete output of your inserted command + error message
Chrisdb
 
Posts: 273
Joined: 2018-04-10 07:16

Re: desktop problem debian 10.2

Postby rufuz » 2020-02-18 21:44

Chrisdb wrote:Post complete output of your inserted command + error message


root@host:~# apt-get install sudo
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
sudo è già alla versione più recente (1.8.27-1+deb10u2).
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
root@host:~# usermod -a -G sudo <u>
-bash: errore di sintassi vicino al token non atteso "newline"
rufuz
 
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

Postby Chrisdb » 2020-02-19 06:45

You should replace <u> with the username you will be using instead of root.

For example:
Code: Select all
usermod -a -G sudo rufuz
Chrisdb
 
Posts: 273
Joined: 2018-04-10 07:16

Re: desktop problem debian 10.2

Postby rufuz » 2020-02-19 15:11

u@host:~$ su -
Password:
root@host:~# apt-get install sudo
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
sudo è già alla versione più recente (1.8.27-1+deb10u2).
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
root@host:~# usermod -a -G sudo u
-bash: usermod: comando non trovato
root@host:~# usermod -a -G sudo mark
-bash: usermod: comando non trovato
root@host:~#
rufuz
 
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

Postby Head_on_a_Stick » 2020-02-19 15:33

rufuz wrote:
Code: Select all
-bash: usermod: comando non trovato

You don't have the passwd package installed? That's not right.
Code: Select all
apt policy passwd

If it's installed then check root's PATH, you've invoked su(1) correctly so it should include /usr/sbin, which is where the usermod command is located.

Anyway, try the method listed on the Debian wiki page about sudo, which you should have checked before posting.
User avatar
Head_on_a_Stick
 
Posts: 11992
Joined: 2014-06-01 17:46
Location: /dev/chair

Previous

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable