Résolu le 10-10-22 Problème de permission pour compiler du C sur CodeBlocks

Postez ici toutes vos demandes d’assistance.
Répondre
Grecko
Messages : 4
Enregistré le : mar. 25 juil. 2017 12:18

Problème de permission pour compiler du C sur CodeBlocks

Message par Grecko »

Bonjour,

J'aimerais coder un peu de C sur mon linux mint 20.2 et avec CodeBlocks

Lorsque j'essaye de compiler un Hello World voici ce qu'il m'affiche dans le terminal:

"sh: 1:/media/"user"/Work/programmes C/Hello: Permission denied
Process returned 126 (0x7E) execution time 0.001s
Press ENTER to continue."

J'ai essayé en cherchant mon problème sur google mais sans succès. (Je suis un noob)

Quelqu'un aurait-il une piste de solution?

Merci à tous : :)
OS: Linux Mint 18.2 Cinnamon 64-bit 3.4.3. Noyeau linux 4.8.0-53-generic CPU Intel Core 17-7500U CPU 2.7 Ghz x2 Ram 15.4 go SSD 214 go Carte Intel Corporation device 5916

tescan
Messages : 416
Enregistré le : dim. 2 juil. 2017 08:53
Localisation : Comminges

Re: Problème de permission pour compiler du C sur CodeBlocks

Message par tescan »

Intel i5-9400F, Nvidia GTX 1660ti, 16Go Ram
Mint 20.3 + Mint 21.1 Cinnamon

Avatar du membre
arghlub
Administrateur du site
Messages : 10376
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence

Re: Problème de permission pour compiler du C sur CodeBlocks

Message par arghlub »

Salut,

Code : Tout sélectionner

sudo chmod 750 /media/$USER/Work/programmes\ C/Hello
;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre de l' April.org────────────────

Grecko
Messages : 4
Enregistré le : mar. 25 juil. 2017 12:18

Re: Problème de permission pour compiler du C sur CodeBlocks

Message par Grecko »

Code : Tout sélectionner

sudo chmod 750 /media/$USER/Work/programmes\ C/Hello
===> ça fonctionne ! merci beaucoup

Merci également pour la petite lecture :)
OS: Linux Mint 18.2 Cinnamon 64-bit 3.4.3. Noyeau linux 4.8.0-53-generic CPU Intel Core 17-7500U CPU 2.7 Ghz x2 Ram 15.4 go SSD 214 go Carte Intel Corporation device 5916

Avatar du membre
arghlub
Administrateur du site
Messages : 10376
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence

Re: Problème de permission pour compiler du C sur CodeBlocks

Message par arghlub »

Super 8-)
lis la doc postée par tescan qui est très instructive par rapport aux permissions en teminal (pas pour moi mais certainement pour d'autres manchots)...
ps : j'ai utilisé un anti-slash (\) avant «\ C/» pour “échapper” l'espace ... bonne continuation en C ;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre de l' April.org────────────────

Répondre