#1 Le 22/05/2023, à 16:58
- J.Coquillet
Soucis Nomachine Server lié au Server X ...
Bonjour,
J'ai un soucis sur un serveur client qui a son nomachine server qui ne démarre plus.
En fait j'ai le service nxnode désactivé.
Quand on fait un démarrage des serveurs cela nous dit :
"Cannot find X Servers running on the machine"
Quand je fais un "startx", voici ce que cela me met :
"xauth: timeout in locking authority file /run/user/1000/gdm/Xauthority"
et un peu plus loin
"xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
xauth: timeout in locking authority file /run/user/1000/gdm/Xauthority
couldn't get a file descriptor referring to th conole"
Je suis perdu, si quelqu'un a une idée, car je suis tomber sur plein de post, mais pour le moment je n'arrive pas à débloquer.
Etant novice sous Linux, c'est pas non plus évident.
Merci
Hors ligne
#2 Le 22/05/2023, à 18:47
- Vobul
Re : Soucis Nomachine Server lié au Server X ...
Salut,
un serveur client
Déjà attention à la terminologie. Un système est soit un serveur soit un client, mais un "serveur client" ça ne veut rien dire.
cela nous dit
C'est l'output de journalctl du service en question ?
Quand je fais un "startx", voici ce que cela me met :
"xauth: timeout in locking authority file /run/user/1000/gdm/Xauthority"
Ne serait-ce pas car X est déjà démarré ? C'est une distribution type "Desktop" qui est sur ton "serveur" ? Quel est le retour de "ls -la /run/user/1000/gdm/Xauthority" ?
Perso je n'ai aucune connaissance sur ce genre de trucs, car je n'ai jamais vu l'intérêt de faire du remote desktop quand ssh suffit 99.999% du temps, et dans les rares cas où tu as besoin d'une application X (graphique) sur une machine distante, "ssh -X" fait le job. Et sinon j'utiliserai plutôt le protocole VNC en lieu et place de NX qui est propriétaire.
D'ailleurs ça peut être intéressant que tu décrives ton cas d'usage, afin d'éviter le xyproblem (https://xyproblem.info/).
Dernière modification par Vobul (Le 22/05/2023, à 18:49)
Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM
Hors ligne
#3 Le 22/05/2023, à 21:08
- J.Coquillet
Re : Soucis Nomachine Server lié au Server X ...
Salut,
J.Coquillet a écrit :un serveur client
Déjà attention à la terminologie. Un système est soit un serveur soit un client, mais un "serveur client" ça ne veut rien dire.
Bonsoir,
Merci pour ton retour, je me suis mal exprimé, c'est un serveur de mes clients, mais il s'agit bien d'un serveur, avec une interface Graphique demandée par le client.
C'est l'output de journalctl du service en question ?
C'est le résultat au moment de faire la commande "sudo /etc/NX/nxserver --restart"
Ne serait-ce pas car X est déjà démarré ? C'est une distribution type "Desktop" qui est sur ton "serveur" ?
Là, cela dépasse mes compétences, et c'est la recherche de tuto, avec des préconisations. Du coup je ne sais pas si le service est bien démarré, mais en tout cas, il n'est pas accessible pour NoMachine. Mais j'ai bien une interface Gnome sur ce serveur, demande du client qui n'aime pas les accès SSH.
Par contre, je rajoute, que le client m'a retourné une erreur lorsqu'il faisait un sudo ...
On avait des erreurs de ce style : "sudo /etc/sudoers is world writable"
Du coup, aucune commande sudo passée.
J'ai réussi à régler cela depuis, mais les différents services ne fonctionnent pas. Et je me suis rendu compte ce soir, que même le serveur SSH ne fonctionnait pas et je ne pouvais pas le démarrer.
J'y accède en console car il s'agit d'un serveur virtuel, mais est inaccessible autrement.
Du coup, je pense que je reste avec un soucis sur mon utilisateur admsrv, qui avait les droits pour les services et faire les sudo, mais j'ai toujours un soucis.
Je ne sais pas si je suis clair, mais la partie Linux, c'est assez complexe pour moi et je galère.
Merci de ton aide, ou de tes orientations.
Hors ligne
#4 Le 22/05/2023, à 21:45
- Vobul
Re : Soucis Nomachine Server lié au Server X ...
Mais il fait quoi ce serveur ? Et pourquoi ton client aurait besoin d'une interface graphique (ou même d'un accès tout court) ? Et surtout, ne JAMAIS laisser le client avec des droits "sudo". À mon avis c'est ton client qui a cassé un truc. Tu peux peut-être aller voir dans son .bash_history ce qu'il a pu faire ? Le coup du /etc/sudoers qui devient world writable c'est à coup sûr ton client qui ne pouvait pas éditer le fichier (car il faut utiliser visudo) et qui a fait un bon gros chmod 777 dessus...
Ta priorité c'est de réparer le service ssh, donc regarde "journalctl -u sshd" pour voir pourquoi il ne démarre pas.
Ensuite, pour nxserver, tu peux essayer "rm -fr .Xauthority-*", voir : https://unix.stackexchange.com/question … ty-file-ho
J'ai juste cliqué le premier lien mais y'a quand même beaucoup de résultats: https://www.google.com/search?client=fi … Xauthority
En tout cas il semble que ton problème ssh et xauth soient liés, et soient possiblement un problème de permissions. Donc on en revient au client qui a dû faire des changements barbares de permissions. Si ça se trouve tout ton système est complètement pété car quelqu'un qui n'y connait rien a changé des choses qu'il ne fallait pas changer. Genre "chmod -R 777 /etc". Ça se répare, bien sûr.
Pour finir, je trouve cela étrange que tu proposes des services d'administrateur linux de manière commerciale alors que tu galères (selon tes propres mots).
Si c'est un serveur virtuel, tu peux repartir d'un snapshot (tu en fais régulièrement, n'est-ce pas ?). Tu peux bien sûr d'abord essayer de résoudre le problème de permissions, mais si tu ne parviens pas à savoir ce qui a été fait ça risque d'être un peu compliqué. Dans tous les cas, ça te permettra d'apprendre des choses, et ça c'est toujours bon à prendre ! Mais règle N°1 : ne pas donner d'accès root au client, surtout si c'est le genre à dire qu'il veut une interface graphique sur son "serveur"
edit: ah oui tu peux donner le retour de "ls -la /etc" ça nous donnera une idée sur ma théorie du chmod 777 récursif sur /etc.
Dernière modification par Vobul (Le 22/05/2023, à 21:48)
Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM
Hors ligne
#5 Le 23/05/2023, à 07:19
- J.Coquillet
Re : Soucis Nomachine Server lié au Server X ...
Merci pour ton aide,
Alors si je regarde le .bash_history
J'ai bien une ligne qui me dit avant mes manip d'hier : chmod -R 777 * et ensuite chmod 777 -R *.
Du coup je pense qu'il est là le problème, merci pour ton aide.
Pour info, le serveur est un serveur web avec BDD, nginx. Le client est autonome mais n'aime pas la ligne de commande, c'est sa machine et je l'aide uniquement, sur cette partie je ne facture rien car il était au courant que je ne connaissais pas et c'était l'occasion d'en apprendre un peu plus, avec les risques de plantage !!
Pour le journal ssh, cela me dit : No entries !!
Ci-après le résultat de ls -la /etc
admsrv@serveur:~$ ls -la /etc/
total 1264
drwxr-xr-x 150 root root 12288 May 22 19:21 .
drwxr-xr-x 21 root root 4096 Jul 15 2021 ..
drwxr-xr-x 3 root root 4096 Aug 4 2021 .java
-rw------- 1 root root 0 Feb 1 2021 .pwd.lock
-rw-r--r-- 1 root root 37 May 18 2022 .smbnascredentials
drwxrwxrwx 3 root root 4096 Jan 17 20:10 ModemManager
drwxrwxrwx 3 root root 4096 Feb 4 2022 NX
drwxrwxrwx 7 root root 4096 Mar 6 2022 NetworkManager
drwxrwxrwx 2 root root 4096 Feb 1 2021 PackageKit
drwxrwxrwx 2 root root 4096 May 26 2021 UPower
drwxrwxrwx 12 root root 4096 May 22 14:14 X11
drwxrwxrwx 3 root root 4096 May 26 2021 acpi
-rwxrwxrwx 1 root root 3028 Feb 1 2021 adduser.conf
drwxrwxrwx 3 root root 4096 May 26 2021 alsa
drwxrwxrwx 2 root root 4096 Mar 10 06:57 alternatives
-rwxrwxrwx 1 root root 401 Jul 16 2019 anacrontab
-rwxrwxrwx 1 root root 433 Oct 1 2017 apg.conf
drwxrwxrwx 5 root root 4096 May 26 2021 apm
drwxrwxrwx 3 root root 4096 Feb 1 2021 apparmor
drwxrwxrwx 8 root root 4096 May 18 06:40 apparmor.d
drwxrwxrwx 4 root root 4096 Apr 14 06:20 apport
-rwxrwxrwx 1 root root 769 Jan 18 2020 appstream.conf
drwxrwxrwx 7 root root 4096 Jun 11 2021 apt
-rwxrwxrwx 1 root daemon 144 Nov 12 2018 at.deny
drwxrwxrwx 3 root root 4096 Jul 8 2021 avahi
-rwxrwxrwx 1 root root 2319 Feb 25 2020 bash.bashrc
-rwxrwxrwx 1 root root 45 Jan 26 2020 bash_completion
drwxrwxrwx 2 root root 4096 May 2 06:32 bash_completion.d
-rwxrwxrwx 1 root root 367 Apr 14 2020 bindresvport.blacklist
drwxrwxrwx 2 root root 4096 Apr 22 2020 binfmt.d
drwxrwxrwx 2 root root 4096 Jun 16 2022 bluetooth
-rwxrwxrwx 1 root root 33 May 26 2021 brlapi.key
drwxrwxrwx 7 root root 4096 May 26 2021 brltty
-rwxrwxrwx 1 root root 26916 Mar 3 2020 brltty.conf
drwxrwxrwx 2 root root 4096 Feb 1 2021 byobu
drwxrwxrwx 3 root root 4096 Feb 1 2021 ca-certificates
-rwxrwxrwx 1 root root 6824 Dec 7 06:57 ca-certificates.conf
-rwxrwxrwx 1 root root 6821 Jun 10 2022 ca-certificates.conf.dpkg-old
drwxrwxrwx 2 root root 4096 Feb 1 2021 calendar
drwxrwsrwx 2 root dip 4096 May 26 2021 chatscripts
drwxrwxrwx 2 root root 4096 May 18 2022 cifs-utils
drwxrwxrwx 5 root root 4096 Apr 28 06:44 cloud
drwxrwxrwx 2 root root 4096 May 26 2021 console-setup
drwxrwxrwx 2 root root 4096 May 26 2021 cracklib
-rwxrwxrwx 1 root root 13 Jun 22 2021 cron.allow
drwxrwxrwx 2 root root 4096 Jun 8 2022 cron.d
drwxrwxrwx 2 root root 4096 Apr 14 06:20 cron.daily
drwxrwxrwx 2 root root 4096 Feb 1 2021 cron.hourly
drwxrwxrwx 2 root root 4096 May 26 2021 cron.monthly
drwxrwxrwx 2 root root 4096 Jan 17 20:14 cron.weekly
-rwxrwxrwx 1 root root 1534 Jan 7 2022 crontab
drwxrwxrwx 2 root root 4096 Feb 17 2022 cryptsetup-initramfs
-rwxrwxrwx 1 root root 54 Feb 1 2021 crypttab
drwxr-xr-x 5 root lp 4096 May 23 05:07 cups
drwxrwxrwx 2 root root 4096 May 26 2021 cupshelpers
drwxrwxrwx 4 root root 4096 Feb 1 2021 dbus-1
drwxrwxrwx 4 root root 4096 May 26 2021 dconf
-rwxrwxrwx 1 root root 2969 Aug 3 2019 debconf.conf
-rwxrwxrwx 1 root root 13 Dec 5 2019 debian_version
drwxrwxrwx 3 root root 4096 May 22 17:11 default
-rwxrwxrwx 1 root root 604 Sep 15 2018 deluser.conf
drwxrwxrwx 2 root root 4096 Jan 17 20:13 depmod.d
drwxrwxrwx 4 root root 4096 Oct 7 2022 dhcp
drwxrwxrwx 2 root root 4096 May 26 2021 dictionaries-common
drwxrwxrwx 4 root root 4096 May 27 2022 dpkg
-rwxrwxrwx 1 root root 685 Feb 14 2020 e2scrub.conf
drwxrwxrwx 3 root root 4096 May 26 2021 emacs
-rwxrwxrwx 1 root root 186 May 11 12:43 environment
drwxrwxrwx 2 root root 4096 May 26 2021 environment.d
-rwxrwxrwx 1 root root 1816 Dec 27 2019 ethertypes
drwxrwxrwx 3 root root 4096 May 17 06:45 firefox
drwxrwxrwx 4 root root 4096 May 26 2021 fonts
-rwxrwxrwx 1 root root 20 Feb 10 2020 fprintd.conf
-rwxrwxrwx 1 root root 685 Mar 23 13:07 fstab
-rwxrwxrwx 1 root root 545 May 18 2022 fstab.old
-rwxrwxrwx 1 root root 132 May 7 2014 ftpusers
-rwxrwxrwx 1 root root 280 Jun 20 2014 fuse.conf
drwxrwxrwx 3 root root 4096 Jan 17 20:14 fwupd
-rwxrwxrwx 1 root root 2584 Feb 1 2020 gai.conf
-rwxrwxrwx 1 root root 4372 May 18 2020 gamemode.ini
drwxrwxrwx 2 root root 4096 Mar 6 2022 gdb
drwxrwxrwx 8 root root 4096 Nov 13 2021 gdm3
drwxrwxrwx 2 root root 4096 May 26 2021 geoclue
drwxrwxrwx 4 root root 4096 May 26 2021 ghostscript
drwxrwxrwx 3 root root 4096 May 26 2021 glvnd
drwxrwxrwx 2 root root 4096 May 27 2021 gnome
drwxrwxrwx 2 root root 4096 Feb 1 2021 groff
-rw-rw-r-- 1 root root 1407 May 22 19:21 group
-rw-rw-r-- 1 root root 1401 May 22 19:21 group-
drwxrwxrwx 2 root root 4096 Jan 17 20:14 grub.d
-rw-rw-r-- 1 root shadow 1175 May 22 19:21 gshadow
-rw-rw-r-- 1 root shadow 1169 May 22 19:21 gshadow-
drwxrwxrwx 3 root root 4096 Feb 1 2021 gss
drwxrwxrwx 2 root root 4096 May 26 2021 gtk-2.0
drwxrwxrwx 2 root root 4096 Mar 6 2022 gtk-3.0
-rwxrwxrwx 1 root root 5060 Aug 21 2019 hdparm.conf
-rwxrwxrwx 1 root root 92 Dec 5 2019 host.conf
-rwxrwxrwx 1 root root 8 May 26 2021 hostname
-rwxrwxrwx 1 root root 222 May 26 2021 hosts
-rwxrwxrwx 1 root root 411 May 26 2021 hosts.allow
-rwxrwxrwx 1 root root 711 May 26 2021 hosts.deny
drwxrwxrwx 2 root root 4096 May 26 2021 hp
drwxrwxrwx 3 root root 4096 May 26 2021 ifplugd
drwxrwxrwx 2 root root 4096 May 26 2021 init
drwxrwxrwx 2 root root 4096 May 22 17:11 init.d
drwxrwxrwx 5 root root 4096 Mar 6 2022 initramfs-tools
-rwxrwxrwx 1 root root 1748 Feb 25 2020 inputrc
drwxrwxrwx 2 root root 4096 Feb 23 06:32 insserv.conf.d
drwxrwxrwx 4 root root 4096 Feb 1 2021 iproute2
drwxrwxrwx 2 root root 4096 May 16 06:13 iscsi
-rwxrwxrwx 1 root root 26 Aug 22 2022 issue
-rwxrwxrwx 1 root root 19 Aug 22 2022 issue.net
drwxrwxrwx 5 root root 4096 May 17 06:45 java-11-openjdk
drwxrwxrwx 6 root root 4096 May 26 2021 kernel
-rwxrwxrwx 1 root root 1308 Dec 1 2017 kerneloops.conf
drwxrwxrwx 2 root landscape 4096 Apr 27 2020 landscape
-rwxrwxrwx 1 root root 74558 May 18 06:41 ld.so.cache
-rwxrwxrwx 1 root root 34 Apr 14 2020 ld.so.conf
drwxrwxrwx 2 root root 4096 Mar 23 13:07 ld.so.conf.d
drwxrwxrwx 2 root root 4096 May 19 2022 ldap
-rwxrwxrwx 1 root root 267 Dec 5 2019 legal
drwxrwxrwx 9 root root 4096 May 22 14:12 letsencrypt
-rwxrwxrwx 1 root root 27 Jan 18 2018 libao.conf
-rwxrwxrwx 1 root root 191 Feb 18 2020 libaudit.conf
drwxrwxrwx 3 root root 4096 May 26 2021 libblockdev
drwxrwxrwx 2 root root 4096 Jun 22 2021 libibverbs.d
drwxrwxrwx 2 root root 4096 May 26 2021 libnl-3
drwxrwxrwx 2 root root 4096 Jun 25 2019 libpaper.d
drwxrwxrwx 2 root root 4096 Apr 19 06:41 libreoffice
-rwxrwxrwx 1 root root 2996 Apr 14 2020 locale.alias
-rwxrwxrwx 1 root root 9442 Jan 17 20:13 locale.gen
lrwxrwxrwx 1 root root 27 Apr 14 06:20 localtime -> /usr/share/zoneinfo/Etc/UTC
drwxrwxrwx 6 root root 4096 Jul 15 2021 logcheck
-rwxrwxrwx 1 root root 10550 Feb 7 2020 login.defs
-rwxrwxrwx 1 root root 533 Jan 21 2019 logrotate.conf
drwxrwxrwx 2 root root 4096 Apr 14 06:20 logrotate.d
-rwxrwxrwx 1 root root 104 Aug 22 2022 lsb-release
-rwxrwxrwx 1 root root 14867 Feb 1 2019 ltrace.conf
drwxrwxrwx 3 root root 4096 Feb 1 2021 lvm
-rwxrwxrwx 1 root root 33 May 26 2021 machine-id
-rwxrwxrwx 1 root root 111 Jan 16 2020 magic
-rwxrwxrwx 1 root root 111 Jan 16 2020 magic.mime
-rwxrwxrwx 1 root root 44141 May 17 06:45 mailcap
-rwxrwxrwx 1 root root 449 Oct 18 2019 mailcap.order
-rwxrwxrwx 1 root root 5215 Feb 25 2020 manpath.config
drwxrwxrwx 2 root root 4096 Feb 1 2021 mdadm
-rwxrwxrwx 1 root root 24546 Oct 18 2019 mime.types
-rwxrwxrwx 1 root root 808 Feb 14 2020 mke2fs.conf
drwxrwxrwx 2 root root 4096 Feb 28 06:27 modprobe.d
-rwxrwxrwx 1 root root 195 Feb 1 2021 modules
drwxrwxrwx 2 root root 4096 May 18 06:41 modules-load.d
lrwxrwxrwx 1 root root 19 Feb 1 2021 mtab -> ../proc/self/mounts
-rwxrwxrwx 1 root root 624 Mar 22 2020 mtools.conf
-rwxrwxrwx 1 root root 41 Apr 6 2020 multipath.conf
drwxrwxrwx 4 root root 4096 Feb 23 06:32 mysql
-rwxrwxrwx 1 root root 10037 Feb 7 2020 nanorc
drwxrwxrwx 2 root root 4096 May 26 2021 netplan
drwxrwxrwx 6 root root 4096 May 26 2021 network
drwxrwxrwx 8 root root 4096 Feb 1 2021 networkd-dispatcher
-rwxrwxrwx 1 root root 91 Dec 5 2019 networks
drwxrwxrwx 2 root root 4096 Feb 1 2021 newt
drwxrwxrwx 8 root root 4096 Apr 3 15:41 nginx
-rwxrwxrwx 1 root root 542 May 26 2021 nsswitch.conf
drwxrwxrwx 4 root root 4096 Mar 26 2022 openvpn
drwxrwxrwx 2 root root 4096 Feb 1 2021 opt
lrwxrwxrwx 1 root root 21 Aug 22 2022 os-release -> ../usr/lib/os-release
-rwxrwxrwx 1 root root 6920 Feb 25 2020 overlayroot.conf
-rwxrwxrwx 1 root root 552 Dec 17 2019 pam.conf
drwxrwxrwx 2 root root 4096 May 22 17:11 pam.d
-rwxrwxrwx 1 root root 3 May 26 2021 papersize
-rwxrwxrwx 1 root root 3598 Jan 17 20:14 passwd
-rwxrwxrwx 1 root root 3577 Jan 17 20:14 passwd-
drwxrwxrwx 2 root root 4096 May 26 2021 pcmcia
drwxrwxrwx 3 root root 4096 Feb 1 2021 perl
drwxrwxrwx 4 root root 4096 Feb 1 2021 pki
drwxrwxrwx 3 root root 4096 Feb 1 2021 pm
-rwxrwxrwx 1 root root 7649 May 26 2021 pnm2ppa.conf
drwxrwxrwx 4 root root 4096 Feb 1 2021 polkit-1
drwxrwxrwx 2 root root 4096 May 26 2021 pollinate
-rwxrwxrwx 1 root root 350 Feb 1 2021 popularity-contest.conf
drwxrwxrwx 7 root dip 4096 May 26 2021 ppp
lrwxrwxrwx 1 root root 18 Jun 1 2022 printcap -> /run/cups/printcap
-rwxrwxrwx 1 root root 581 Dec 5 2019 profile
drwxrwxrwx 2 root root 4096 Apr 28 06:44 profile.d
-rwxrwxrwx 1 root root 2932 Apr 1 2013 protocols
drwxrwxrwx 3 root root 4096 Mar 6 2022 pulse
drwxrwxrwx 2 root root 4096 Feb 1 2021 python3
drwxrwxrwx 2 root root 4096 Mar 22 06:02 python3.8
drwxrwxrwx 2 root root 4096 Mar 23 13:07 rc0.d
drwxrwxrwx 2 root root 4096 Mar 23 13:07 rc1.d
drwxrwxrwx 2 root root 4096 Mar 23 13:07 rc2.d
drwxrwxrwx 2 root root 4096 Mar 23 13:07 rc3.d
drwxrwxrwx 2 root root 4096 Mar 23 13:07 rc4.d
drwxrwxrwx 2 root root 4096 Mar 23 13:07 rc5.d
drwxrwxrwx 2 root root 4096 Mar 23 13:07 rc6.d
drwxrwxrwx 2 root root 4096 May 26 2021 rcS.d
drwxrwxrwx 2 root root 4096 Jun 3 2022 request-key.d
lrwxrwxrwx 1 root root 39 Feb 1 2021 resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
lrwxrwxrwx 1 root root 13 Feb 9 17:17 rmt -> /usr/sbin/rmt
-rwxrwxrwx 1 root root 887 Apr 1 2013 rpc
-rwxrwxrwx 1 root root 1382 Feb 11 2020 rsyslog.conf
drwxrwxrwx 2 root root 4096 Apr 28 06:44 rsyslog.d
-rwxrwxrwx 1 root root 5211 Mar 11 2020 rygel.conf
drwxrwxrwx 3 root root 4096 Apr 5 06:18 samba
drwxrwxrwx 3 root root 4096 May 26 2021 sane.d
-rwxrwxrwx 1 root root 3663 Jun 20 2016 screenrc
drwxrwxrwx 4 root root 4096 Feb 7 06:42 security
drwxrwxrwx 2 root root 4096 Feb 1 2021 selinux
drwxrwxrwx 2 root root 4096 Jan 17 20:12 sensors.d
-rwxrwxrwx 1 root root 10593 Nov 6 2019 sensors3.conf
-rwxrwxrwx 1 root root 14464 Feb 16 2020 services
drwxrwxrwx 3 root root 4096 May 26 2021 sgml
-rwxrwxrwx 1 root shadow 2485 Jan 17 20:14 shadow
-rwxrwxrwx 1 root shadow 2485 Jan 17 20:14 shadow-
-rwxrwxrwx 1 root root 164 May 27 2021 shells
drwxrwxrwx 2 root root 4096 Apr 21 2022 skel
drwxrwxrwx 2 root root 4096 Jan 11 06:16 snmp
drwxrwxrwx 6 root root 4096 Jan 17 20:13 sos
drwxrwxrwx 4 root root 4096 May 26 2021 speech-dispatcher
drwxrwxrwx 4 root root 4096 May 22 17:11 ssh
drwxrwxrwx 4 root root 4096 Apr 26 06:05 ssl
-rwxrwxrwx 1 root root 158 Jul 20 2021 subgid
-rwxrwxrwx 1 root root 133 Jun 8 2021 subgid-
-rwxrwxrwx 1 root root 158 Jul 20 2021 subuid
-rwxrwxrwx 1 root root 133 Jun 8 2021 subuid-
-rwxrwxr-x 1 root root 787 May 22 19:12 sudoers
drwxrwxr-x 2 root root 4096 Apr 12 06:20 sudoers.d
-rwxrwxrwx 1 root root 2351 Feb 13 2020 sysctl.conf
drwxrwxrwx 2 root root 4096 Mar 9 06:15 sysctl.d
drwxrwxrwx 5 root root 4096 Mar 9 06:15 systemd
drwxrwxrwx 2 root root 4096 Feb 1 2021 terminfo
drwxrwxrwx 2 root root 4096 Sep 19 2021 thermald
drwxrwxrwx 2 root root 4096 May 16 06:12 thunderbird
-rwxrwxrwx 1 root root 8 Apr 14 06:20 timezone
drwxrwxrwx 2 root root 4096 Feb 1 2021 tmpfiles.d
drwxrwxrwx 2 root root 4096 Jan 17 20:14 ubuntu-advantage
-rwxrwxrwx 1 root root 1260 Dec 14 2018 ucf.conf
drwxrwxrwx 4 root root 4096 Mar 9 06:15 udev
drwxrwxrwx 2 root root 4096 Mar 6 2022 udisks2
drwxrwxrwx 3 root root 4096 Mar 6 2022 ufw
drwxrwxrwx 3 root root 4096 Jan 17 20:14 update-manager
drwxrwxrwx 2 root root 4096 Jan 17 20:14 update-motd.d
drwxrwxrwx 2 root root 4096 Jan 20 2021 update-notifier
-rwxrwxrwx 1 root root 1523 Feb 10 2020 usb_modeswitch.conf
drwxrwxrwx 2 root root 4096 Feb 24 2020 usb_modeswitch.d
drwxrwxrwx 2 root root 4096 Apr 20 06:45 vim
drwxrwxrwx 4 root root 4096 Mar 23 13:07 vmware-tools
-rwxrwxrwx 1 root root 25 Jun 8 2021 vsftpd.chroot_list
-rwxrwxrwx 1 root root 5870 May 28 2021 vsftpd.conf
lrwxrwxrwx 1 root root 23 Feb 1 2021 vtrgb -> /etc/alternatives/vtrgb
drwxrwxrwx 5 root root 4096 May 26 2021 vulkan
-rwxrwxrwx 1 root root 4942 Jul 24 2019 wgetrc
-rwxrwxrwx 1 root root 30 Aug 23 2021 whoopsie
drwxrwxrwx 2 root root 4096 May 26 2021 wpa_supplicant
-rwxrwxrwx 1 root root 642 Sep 24 2019 xattr.conf
drwxrwxrwx 6 root root 4096 May 26 2021 xdg
drwxrwxrwx 2 root root 4096 May 26 2021 xml
drwxrwxrwx 3 root root 4096 Jun 25 2021 xrdp
-rwxrwxrwx 1 root root 477 Oct 7 2019 zsh_command_not_found
Merci, est-ce simple déjà de réparer le chmod 777 * ? avant de tout remettre ?
Dernière modification par J.Coquillet (Le 23/05/2023, à 08:45)
Hors ligne
#7 Le 23/05/2023, à 07:49
- xubu1957
Re : Soucis Nomachine Server lié au Server X ...
Bonjour,
Lecture conseillée > memento des balises code.
Merci pour la correction.
Pour le #1 :
Quand on fait un démarrage des serveurs cela nous dit :
"Cannot find X Servers running on the machine"
Quand je fais un "startx", voici ce que cela me met :
"xauth: timeout in locking authority file /run/user/1000/gdm/Xauthority"
et un peu plus loin
"xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error xauth: timeout in locking authority file /run/user/1000/gdm/Xauthority couldn't get a file descriptor referring to th conole"
_ _ _
(edit=messages regroupés)
_ _ _
Notre Modératrice, si elle repasse, risque d'ajouter :
Modération - Balises code à ajouter à tous tes messages comme demandé, ça ne se fera pas tout seul
Dernière modification par xubu1957 (Le 23/05/2023, à 11:19)
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#8 Le 23/05/2023, à 07:55
- J.Coquillet
Re : Soucis Nomachine Server lié au Server X ...
Merci xubu1957
Je ferais attention la prochaine fois
Hors ligne
#9 Le 23/05/2023, à 10:57
- Vobul
Re : Soucis Nomachine Server lié au Server X ...
Bon ben en tout cas je ne suis pas peu fier : ma théorie du chmod -R 777 /etc était bonne !
Ça te fait une bonne occasion de tester ta procédure de restauration de backup. Là mon conseil c'est de remonter un serveur. Au passage, apprends ansible
Tu peux bien sûr réparer les permissions, mais bon, un serveur pété ça se reconstruit. Dis-bien à ton client que faire des chmod 777 quand il a un problème de permission ce n'est pas une solution. Cela montre bien que les personnes qui "n'aiment pas la ligne de commande" n'ont rien à faire sur un serveur web.
Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM
Hors ligne
#10 Le 23/05/2023, à 11:12
- J.Coquillet
Re : Soucis Nomachine Server lié au Server X ...
Bon ben en tout cas je ne suis pas peu fier : ma théorie du chmod -R 777 /etc était bonne !
Moi j'aurais préféré, que ce ne soit pas cela et plus simple à dépanner
Par contre, avant la restauration du serveur, as tu un tuto ou quelque chose pour m'aider à la remise en place des bon droit sur le /etc/ ...
Du coup, au pire, je plante le serveur définitivement !!
Hors ligne
#11 Le 23/05/2023, à 11:38
- Vobul
Re : Soucis Nomachine Server lié au Server X ...
Je pourrai t'indiquer les commandes, certes. Mais ce serveur est à jeter au feu. Un serveur web avec firefox/libreoffice/X11 et compagnie, c'est criminel. Je parie que ton NX est accessible au monde entier en plus, pas de règles de pare-feu particulières.
Bref, administrateur système ça ne s'invente pas, c'est un vrai métier et je te conseille fortement de faire appel à un pro, avant que ton client se fasse voler ses données, et qu'un mineur de crypto soit installé sur le serveur, et que ton cloud provider te ferme ton compte pour utilisation illicite des ressources ou distribution de malware.
Toutefois, pour apprendre, regarde du côté de "find" et "chmod", et compare avec une install neuve. Mais vraiment tu ferais mieux de te concentrer sur la restauration du service sur un nouveau serveur car là on est sur /etc mais si ça se trouve la commande a été exécutée sur / et donc tout le système est impacté, pas que /etc.
Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM
Hors ligne