Résolu le 9-01-22 Sudo ok mais su non pourquoi?

Répondre
Avatar du membre
NicNac
Messages : 108
Enregistré le : mer. 28 nov. 2018 15:31
Localisation : Gembloux Belgique

Sudo ok mais su non pourquoi?

Message par NicNac »

Depuis le passage à Ulyssa

sudo mc
[sudo] Mot de passe de nicnac :xxxxxx
mc s'ouvre en mode root.

su
Mot de passe : xxxxxxx
su: Échec d'authentification
Desktop Mint 22
Carte mère MSI B70 gaming plus WiFi i5 8G Ram
NVIDIA GM107 [GeForce GTX 750 Ti]
HDD
- 1) SSD Linux Mint Mate Kernel: 6.8.0-60-generic
- 2) SSD Zindozs 11
- 3) SSD 1To en BigData (linux) et WinData
Raromatai
Messages : 201
Enregistré le : sam. 2 déc. 2017 12:37

Re: Sudo ok mais su non pourquoi?

Message par Raromatai »

D'après la documentation de Ubuntu :
Sous Ubuntu, le compte système root est bloqué. Vous ne pourrez pas vous y connecter à l'aide de la commande su root (ou su seule).

OS : LMDE 7
CPU : i5 33370 1,8 GHz * 2 ; CG : Intel 3rd Gen Core processor Graphics Controller ; RAM : 3,7 Go ;Disque Dur SSD 250 Go & SDD 24 Go ; PC : portable Samsung série 5
Avatar du membre
alv37
Messages : 419
Enregistré le : mer. 26 août 2020 00:42
Localisation : France

Re: Sudo ok mais su non pourquoi?

Message par alv37 »

Slt, sous Ubuntu (J'ai pas essayer mais je suppose que ça doit fonctionner sous Mint) pour passer sur le compte Root, il faut taper la commande suivante:

Code : Tout sélectionner

sudo -i
PC Principal (Custom) : OS: VoidLinux | DE: Cinnamon v6.4.13 | Kernel: 6.12.71 | MB: MS-7823 (MSI B85M-G43) | CPU: Intel i7 4790k | RAM: 8 Go | GPU: Nvidia Geforce GTX 970
PC Secondaire (Custom) : OS: Linux Mint 22.3 | DE: Cinnamon v6.6.4 | Kernel: 6.14.0 | MB: Gigabyte GA-G31M-ES2L v2 | CPU: Intel Pentium D 915 | RAM: 4 Go | GPU: Intel 82G33/G31 Express Integrated Graphics
Avatar du membre
NicNac
Messages : 108
Enregistré le : mer. 28 nov. 2018 15:31
Localisation : Gembloux Belgique

Re: Sudo ok mais su non pourquoi?

Message par NicNac »

Merci

nicnac@PC-Tower:~$ sudo -i
[sudo] Mot de passe de nicnac :
root@PC-Tower:~#
Desktop Mint 22
Carte mère MSI B70 gaming plus WiFi i5 8G Ram
NVIDIA GM107 [GeForce GTX 750 Ti]
HDD
- 1) SSD Linux Mint Mate Kernel: 6.8.0-60-generic
- 2) SSD Zindozs 11
- 3) SSD 1To en BigData (linux) et WinData
Avatar du membre
arghlub
Administrateur du site
Messages : 11563
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence

Re: Sudo ok mais su non pourquoi?

Message par arghlub »

Salut,

Code : Tout sélectionner

man sudo
     [...]
     -i, --login
                 Run the shell specified by the target user's password database entry as a login shell.  This means
                 that login-specific resource files such as .profile, .bash_profile or .login will be read by the
                 shell.  If a command is specified, it is passed to the shell for execution via the shell's -c op‐
                 tion.  If no command is specified, an interactive shell is executed.  sudo attempts to change to
                 that user's home directory before running the shell.  The command is run with an environment similar
                 to the one a user would receive at log in.  Note that most shells behave differently when a command
                 is specified as compared to an interactive session; consult the shell's manual for details.  The
                 Command environment section in the sudoers(5) manual documents how the -i option affects the envi‐
                 ronment in which a command is run when the sudoers policy is in use.
     [...]
Tour1 (custom) CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : LMint 22.3 | Debian 12 | MX Linux | XFCE
Tour2 (custom) CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 22.1 | MX Linux | XFCE
Portable2 MacBook Air A1466 | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MX Linux XFCE
─────( pour une informatique libre ! )─────
Avatar du membre
serged
Messages : 1116
Enregistré le : jeu. 16 juil. 2015 07:59
Localisation : Montrouge (France)

Re: Sudo ok mais su non pourquoi?

Message par serged »

Sinon :
$

Code : Tout sélectionner

 sudo passwd root
[sudo] Mot de passe de serge :   
Nouveau mot de passe : 
Retapez le nouveau mot de passe : 
passwd : le mot de passe a été mis à jour avec succès
..Et root aura un mot de passe...
LinuxMint Virginia Cinnamon et d'autres machines en MATE, XFCE... 20.x , 21.x ou 19.x
Tour : Asus F2A55 / AMD A8-5600K APU 3,6GHz / RAM 17Go / SSD 4To /Nvidia GeForce GT610 / LM21.3 Cinnamon
Portable : LDLC Mercure MH :Intel® Pentium(R) Silver N5030 CPU @ 1.10GHz × 4/RAM 8Go / Intel HD graphics 500 i915 / ) - LM22.1 MATE (sur HDD)
Avatar du membre
alain
Administrateur du site
Messages : 17178
Enregistré le : dim. 11 oct. 2015 23:41
Localisation : Chelles
Contact :

Re: Sudo ok mais su non pourquoi?

Message par alain »

Bonjour.

Sujet archivé (en lecture seule) car résolu.
Si besoin de rouvrir faire un MP à un membre de l'équipe ;)
Слава Україні _ слава героям махновщини
PC1 : CM : ASRock 990FX | CPU: AMD FX 8350-8 cores, 4 GHz | RAM: 16 Go DDR3 1600 MHz | CG: GTX 1080TI-11 Go | OS : LM 22 Xfce 4.18 | K: 6.8
PC2
:Core2 Quad Q9650 @ 3 GHz | CG: Nvidia GTX 650TI | OS: LM 22 Wilma Xfce 4.18| K: 6.8
PC3 :Core i7-2600 @ 3,5 GHz | CG: ATI HD 4650 | OS: Emmade5 Xfce 4.18.0 | K: 6.1
PC4 : AMD Ryzen 5 3500X 4GHz | CG: GTX 970 | Ram : 8GB |OS : Debian 12.8 | K: 6.1
In a world without walls and fences, who needs windows and gates?
Répondre