Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

desktop problem debian 10.2

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: desktop problem debian 10.2

#16 Post by Chrisdb »

Post complete output of your inserted command + error message

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#17 Post by rufuz »

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"

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: desktop problem debian 10.2

#18 Post by Chrisdb »

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

For example:

Code: Select all

usermod -a -G sudo rufuz

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#19 Post by rufuz »

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:~#

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: desktop problem debian 10.2

#20 Post by Head_on_a_Stick »

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.
deadbang

Post Reply