Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#26 Le 08/06/2020, à 11:38

NicoApi73

Re : [RESOLU] permission denied

Je ne  vois pas de problème de ce côté.

Peux tu donner le retour de :

cat /etc/group | grep michel

Hors ligne

#27 Le 08/06/2020, à 12:13

dauphin

Re : [RESOLU] permission denied

Merci

michel@michel-System-Product-Name:~$ cat /etc/group | grep michel
adm:x:4:syslog,michel
cdrom:x:24:michel
sudo:x:27:michel
dip:x:30:michel
plugdev:x:46:michel
lpadmin:x:120:michel
lxd:x:131:michel
michel:x:1000:
sambashare:x:132:michel
michel@michel-System-Product-Name:~$ 

20.04 sur carte Asus M5 et proc AMD64 2000 8GO de Ram
Video et son intégrés

Hors ligne

#28 Le 08/06/2020, à 12:24

NicoApi73

Re : [RESOLU] permission denied

Je ne vois pas d'où vient le problème. Donne le retour des 2 commandes suivantes, sans sudo :

touch /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier
rm -v /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier

Hors ligne

#29 Le 08/06/2020, à 13:06

dauphin

Re : [RESOLU] permission denied

michel@michel-System-Product-Name:~$ touch /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier
touch: impossible de faire un touch '/media/michel/DOSSIERS-UBUNTU/essai_creation_fichier': Aucun fichier ou dossier de ce type
michel@michel-System-Product-Name:~$ 
michel@michel-System-Product-Name:~$ rm -v /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier
rm: impossible de supprimer '/media/michel/DOSSIERS-UBUNTU/essai_creation_fichier': Aucun fichier ou dossier de ce type
michel@michel-System-Product-Name:~$

Dernière modification par dauphin (Le 08/06/2020, à 15:06)


20.04 sur carte Asus M5 et proc AMD64 2000 8GO de Ram
Video et son intégrés

Hors ligne

#30 Le 08/06/2020, à 13:13

cqfd93

Re : [RESOLU] permission denied

Modération

Bonjour,

Prière d'ajouter toi-même les balises code à tes messages #12, #17 et #29.


cqfd93

Hors ligne

#31 Le 08/06/2020, à 13:23

NicoApi73

Re : [RESOLU] permission denied

Il y a une incohérence entre ce qui est retourné au #25 et ce qui est retourné au #29

Au #25 on peut faire un ls sur /media/michel/DOSSIERS-UBUNTU/ et au #29, il dit que /media/michel/DOSSIERS-UBUNTU/ n'existe pas, comme si la partition n'était pas montée...

Où se situe cette partition? Sur un disque externe?
Comment la montes tu?

Donne les retours de :

mount
ls -l /media/michel/DOSSIERS-UBUNTU
touch /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier
rm -v /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier

Hors ligne

#32 Le 08/06/2020, à 15:18

dauphin

Re : [RESOLU] permission denied

Merci,
La partition DOSSIERS-UBUNTU est sur un 2ème disque interne alors que qu'Ubuntu est sur le premier disque SSD; elle se monte automatiquement au démarrage

michel@michel-System-Product-Name:~$ touch /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier
touch: impossible de faire un touch '/media/michel/DOSSIERS-UBUNTU/essai_creation_fichier': Aucun fichier ou dossier de ce type
michel@michel-System-Product-Name:~$ 
michel@michel-System-Product-Name:~$ rm -v /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier
rm: impossible de supprimer '/media/michel/DOSSIERS-UBUNTU/essai_creation_fichier': Aucun fichier ou dossier de ce type
michel@michel-System-Product-Name:~$

20.04 sur carte Asus M5 et proc AMD64 2000 8GO de Ram
Video et son intégrés

Hors ligne

#33 Le 08/06/2020, à 15:23

NicoApi73

Re : [RESOLU] permission denied

Merci de donner le retour des 4 commandes, dans l'ordre. Ce n'est pas logique que tu puisses faire un ls et que touch te retourne une erreur disant que le répertoire n'existe pas.

La commande ls était passé, je veux voir si elle passe encore et si le touch est possible après un ls ok. (ls a été choisie arbitrairement car c'est une commande simple).

La commande mount est là pour vérifier que le montage a été fait.

Hors ligne

#34 Le 08/06/2020, à 15:47

dauphin

Re : [RESOLU] permission denied

désolé, je ne pensais pas que c'était important
voici le retour pour mount:

michel@michel-System-Product-Name:~$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=3885352k,nr_inodes=971338,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=789288k,mode=755)
/dev/sda4 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=15479)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
/var/lib/snapd/snaps/core_9289.snap on /snap/core/9289 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core18_1705.snap on /snap/core18/1705 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-28-1804_116.snap on /snap/gnome-3-28-1804/116 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core18_1754.snap on /snap/core18/1754 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_9066.snap on /snap/core/9066 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-28-1804_128.snap on /snap/gnome-3-28-1804/128 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gimp_273.snap on /snap/gimp/273 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snap-store_433.snap on /snap/snap-store/433 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-34-1804_33.snap on /snap/gnome-3-34-1804/33 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gtk-common-themes_1506.snap on /snap/gtk-common-themes/1506 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snapd_7264.snap on /snap/snapd/7264 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/vlc_1620.snap on /snap/vlc/1620 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-34-1804_36.snap on /snap/gnome-3-34-1804/36 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gtk2-common-themes_9.snap on /snap/gtk2-common-themes/9 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snap-store_454.snap on /snap/snap-store/454 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snapd_7777.snap on /snap/snapd/7777 type squashfs (ro,nodev,relatime,x-gdu.hide)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=789284k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/fuse on /run/user/1000/doc type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=789288k,mode=755)
nsfs on /run/snapd/ns/snap-store.mnt type nsfs (rw)
michel@michel-System-Product-Name:~$ 

pour ls

michel@michel-System-Product-Name:~$ ls -l /media/michel/DOSSIERS-UBUNTU
ls: impossible d'accéder à '/media/michel/DOSSIERS-UBUNTU': Aucun fichier ou dossier de ce type

pour touch

michel@michel-System-Product-Name:~$ touch /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier
touch: impossible de faire un touch '/media/michel/DOSSIERS-UBUNTU/essai_creation_fichier': Aucun fichier ou dossier de ce type
michel@michel-System-Product-Name:~$ 

pour rm

michel@michel-System-Product-Name:~$ rm -v /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier
rm: impossible de supprimer '/media/michel/DOSSIERS-UBUNTU/essai_creation_fichier': Aucun fichier ou dossier de ce type
michel@michel-System-Product-Name:~$ 

20.04 sur carte Asus M5 et proc AMD64 2000 8GO de Ram
Video et son intégrés

Hors ligne

#35 Le 08/06/2020, à 15:53

NicoApi73

Re : [RESOLU] permission denied

Ta partition n'est pas montée.

Comment est elle montée (fstab, autofs, nfs...)?

Hors ligne

#36 Le 08/06/2020, à 16:11

dauphin

Re : [RESOLU] permission denied

Diable !
Normalement les partitions se montent automatiquement au démarrage. Je l'ai monté manuellememnt et j'ai refait les commandes.
Voici le résultat:
pour ls

michel@michel-System-Product-Name:~$ ls -l /media/michel/DOSSIERS-UBUNTU
total 41176
-rwxrwxrwx   1 michel michel  1429742 août  28  2019  1065_steganographie.pdf
-rwxrwxr-x   1 michel michel        0 déc.  20  2016  1071_consulter_cadastre.pdf
-rwxrwxrwx   1 michel michel   835880 sept.  1  2019  2535_arnaques_telephone_sms.pdf
drwxrwxrwx   2 michel michel     4096 déc.  13 19:29  Aconvertir
-rwxrwxrwx   1 michel michel   105991 févr.  8  2017  acquittement.pdf
-rwxrwxrwx   1 michel michel   238721 janv.  9  2017 'AG 2017.png'
drwxrwxrwx   2 michel michel     4096 janv. 16  2019  Apicil
drwxr-xr-x   4 michel michel     4096 mai   30 11:34  APK
drwxrwxrwx   2 michel michel     4096 janv.  6  2018  Assurances
drwxrwxr-x   8 michel michel     4096 janv.  6  2018 'Astrologie-Signe la Balance_fichiers'
drwxrwxr-x   4 michel michel     4096 sept.  2  2018  Astuces
drwxrwxr-x   2 michel michel     4096 janv.  6  2018  Audio
-rwxrwxrwx   1 michel michel   779264 avril 30  2017  backup.pst
drwxrwxr-x   2 michel michel     4096 déc.  13 19:29 'Bienvenue sur le site du Chèque emploi service universel_fichiers'
-rw-rw-r--   1 michel michel    36966 janv. 28  2017 'Bienvenue sur le site du Chèque emploi service universel.html'
drwxr-xr-x   2 michel michel     4096 mai   30 12:11  Blagues
-rwxrwxrwx   1 michel michel    29016 avril 23  2019 'bookmarks-2019-04-23_181_T4AUFf5vXGQUrjdhn3LkBw==.jsonlz4'
-rwxrwxrwx   1 michel michel    65023 déc.  29 12:23 'Bûche Chocolat, Fève Tonka et Caramel.docx'
drwxr-xr-x   5 michel michel     4096 mai   30 18:02  Bureau
-rw-rw-r--   1 michel michel   301022 janv.  1  2017 'CALENDRIER 2017 (2).pdf'
-rwxrwxrwx   1 michel michel     9087 août   5  2013 'caractères spéciaux.odt'
-rw-r--r--   1 michel michel     3976 avril  3 11:50 "carnet d'adresses"
-rwxrwxrwx   1 michel michel 22206486 sept. 12  2019  Chamonix.zip
-rw-r--r--   1 michel michel    54728 févr.  8 13:49  chants.zip
drwxrwxrwx   5 michel michel     4096 avril  8 11:49  Clairefontaine
drwxrwxr-x   3 michel michel     4096 janv.  6  2018  clé_usb
-rwxrwxrwx   1 michel michel       64 janv. 19  2016 'code opéra.txt'
-rwxrwxrwx   1 michel michel     1932 juil.  1  2018 "Code posté sur le forum des professionnels de l'informatique.txt"
-rwxrwxrwx   1 michel michel     1766 juil.  1  2018 'Code pour importer des contacts.txt'
-rwxrwxr-x   1 michel michel  2576896 oct.  17  2015  cogito_ergo_sum_.pps
-rwxrwxrwx   1 michel michel    52182 mai    3  2018  contacts.txt
-rwxrwxr-x   1 michel michel      113 janv. 22  2015 'Conversion midi > wav'
-rwxrwxr-x   1 michel michel      317 mai   27  2015 'convertisseur WMA &WAV > MP3.txt'
-rw-rw-r--   1 michel michel   342036 janv.  8  2017 'Convocation AG  3 Février 2017.pdf'
-rwxrwxr-x   1 michel michel     1286 juin   8  2015 'corrections site ECML.txt'
drwxrwxrwx   2 michel michel     4096 mai   25 08:42  Courriers
-rw-rw-r--   1 michel michel     5240 févr.  3  2017  CyberPlus_OP_1_20170203111507.qif
drwxrwxr-x   2 michel michel     4096 janv.  6  2018 'débloquer mot de passe Windows'
-rwxrwxr-x   1 michel michel   686905 janv. 18  2017  desactiver_web_cortana.pdf
drwxrwxrwx   4 michel michel     4096 janv.  6  2018  Didier
-rwxrwxr-x   1 michel michel     2286 oct.  28  2015  distraction.txt
drwxrwxr-x  13 michel michel    12288 mai   30 12:20  Divers
drwxr-xr-x   2 michel michel     4096 juin   7 12:13  Documents
-rw-r--r--   1 michel michel    12019 nov.  13  2017  f823020800.jpg
drwxrwxrwx  10 michel michel     4096 mai   30 12:43 'Factures & Relevés'
-rwxrwxr-x   1 michel michel       85 juin  22  2014 'fpt Nautilus.txt'
-rw-rw-r--   1 michel michel    11768 janv.  3  2017 'FUNERAILLES DE Hélène LEFORT.docx'
-rw-rw-r--   1 michel michel      964 janv.  2  2017  Funérailles.txt
-rwxrwxr-x   1 michel michel    20280 avril 20  2015  Garmin-rma-1330598776.pdf
drwxrwxrwx  11 michel michel     4096 janv.  6  2018  Grepa
drwxrwxrwx   2 michel michel     4096 janv.  6  2018 'Gym Monique'
drwxrwxr-x 151 michel michel    32768 mars   7 17:26  Images
drwxr-xr-x   2 michel michel    16384 juin   8 10:02  Images_2
-rwxr-xr-x   1 michel michel       22 mars   3 18:11 'Images Chamonix jean-marc@drewnowski.com(1).zip'
drwxr-xr-x   3 michel michel     4096 juin   8 10:06 'Images suite'
drwxrwxrwx  12 michel michel     4096 mars  30  2018  Impôts
-rwxrwxrwx   1 michel michel   562688 janv. 16  2008  install.exe
-rwxrwxrwx   1 michel michel      843 janv. 16  2008  install.ini
-rwxrwxrwx   1 michel michel      391 mars  28  2009  Inventaire.txt
-rwxrwxrwx   1 michel michel   125286 mars  11  2019  IR-Avis-1MEN-2018-18690724322259.pdf
-rwxrwxrwx   1 michel michel     1467 janv. 31  2018 'KMS Tools Portable 31.12.2016.nfo'
-rw-rw-r--   1 michel michel  2400014 avril  7  2019 'le verre ideal1.mp4'
lrwxrwxrwx   1 michel michel       50 nov.   2  2019 'Lien vers .mozilla' -> /mnt/96cdce64-905a-4716-b588-b9ad50c8439c/.mozilla
lrwxrwxrwx   1 michel michel       49 nov.   3  2019 'Lien vers Musique' -> /mnt/96cdce64-905a-4716-b588-b9ad50c8439c/Musique
lrwxrwxrwx   1 michel michel       56 nov.   3  2019 'Lien vers TELECHARGEMENT' -> /mnt/96cdce64-905a-4716-b588-b9ad50c8439c/TELECHARGEMENT
drwxrwxr-x   4 michel michel     4096 mai   30 12:37  LOGICIELS
drwx------   2 michel michel     4096 janv.  6  2018  lost+found
-rwxrwxrwx   1 michel michel     9728 juin   2 17:41 'Ma letttre.doc'
drwxrwxr-x  48 michel michel    12288 juin   7 09:21  Manuels
-rwxrwxr-x   1 michel michel  1345752 avril 27  2015  Marie.pdf
-rwxrwxr-x   1 michel michel      349 oct.  21  2015  merge
drwxr-xr-x   5 michel michel     4096 janv.  5  2018  MessagesTB
-rwxrwxrwx   1 michel michel  2253017 mai   27 10:12  Mon_compte.gsb
-rwxrwxrwx   1 michel michel   904704 déc.   1  2006  msdia80.dll
drwxrwxr-x  36 michel michel     4096 déc.  13 19:29  Musique
drwxrwxr-x   8 michel michel     4096 avril 30  2016 'Myriad Documents'
drwxrwxr-x   2 michel michel    12288 févr.  8 13:48  nwc
drwxrwxr-x   2 michel michel     4096 mai   30 12:40  Partitions
drwxrwxr-x  16 michel michel     4096 mai   30 12:43  PDF
-rwxrwxrwx   1 michel michel        0 déc.  10  2017  photorec.ses
-rw-rw-r--   1 michel michel    65313 janv.  1  2017 'Pieces Succession.doc'
-rwxrwxr-x   1 michel michel    59843 oct.  29  2015 'polenta sucrée'
drwxr-xr-x   8 michel michel     4096 déc.  13 19:29 'POUR  INSTALLATION'
-rwxrwxrwx   1 michel michel    19968 janv. 28  2019 'Programme de Givors.doc'
drwxr-xr-x   4 michel michel     4096 mai   30 12:45  PROVISOIRE
drwxrwxr-x   2 michel michel     4096 avril 30  2016  Public
-rw-rw-r--   1 michel michel    10752 janv.  3  2017  P.U.doc
drwxrwxrwx   2 michel michel     4096 janv.  6  2018  Rando
drwxrwxrwx   9 michel michel     4096 juin   6 16:30  Recettes
-rwxrwxr-x   1 michel michel   112512 oct.  29  2015 "- Recettes - Dans la peau d'un chef - France 2.html"
-rwxrwxrwx   1 michel michel        0 avril 19  2018  Recovery.txt
drwxrwxr-x   2 michel michel     4096 janv.  5  2018 'Réparer un disque passé en RAW_fichiers'
-rwxrwxr-x   1 michel michel   203007 déc.  15  2013 'Rhône | Lyon, ville lumière.html'
drwxrwxrwx   2 michel michel     4096 janv.  6  2018  Scrabble
-rwxrwxr-x   1 michel michel  1545216 sept.  5  2015 'Si_seulement BOUD.pps'
drwxrwxr-x   7 michel michel     4096 mai   30 12:48  Sites_Web
drwxrwxr-x   2 michel michel     4096 sept. 14  2017  Stellarium
drwxr-xr-x   4 michel michel     4096 mai   31 10:49  TELECHARGEMENT
drwxrwxr-x   4 michel michel     4096 déc.  13 19:29  testdisk-6.13-WIP
-rwxrwxr-x   1 michel michel    68348 juin   7  2015  testdisk.log
drwxrwxrwx   6 michel michel     4096 juin   7 10:09  Thunderbird
-rwxrwxr-x   1 michel michel   119765 juin  25  2015  Validation.rtf
drwxrwxr-x   8 michel michel     4096 déc.  13 19:29  Vidéos
-rwxrwxr-x   1 michel michel  2169856 oct.  17  2015 'zozios politique 04 201512.pps'
michel@michel-System-Product-Name:~$ 

pour touch

michel@michel-System-Product-Name:~$ touch /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier
michel@michel-System-Product-Name:~$ 

pour rm

michel@michel-System-Product-Name:~$ rm -v /media/michel/DOSSIERS-UBUNTU/essai_creation_fichier
'/media/michel/DOSSIERS-UBUNTU/essai_creation_fichier' supprimé
michel@michel-System-Product-Name:~$ 

20.04 sur carte Asus M5 et proc AMD64 2000 8GO de Ram
Video et son intégrés

Hors ligne

#37 Le 08/06/2020, à 16:15

NicoApi73

Re : [RESOLU] permission denied

Ton problème n'est pas un problème de droit (propriétaire), mais un problème de montage de la partition.

Une fois montée, tu peux lire et écrire dans ta partition...

Hors ligne

#38 Le 08/06/2020, à 16:16

dauphin

Re : [RESOLU] permission denied

Je vous fait perdre tout votre temps. Il vaudrait peut-être mieux que je réinstalle tout ?


20.04 sur carte Asus M5 et proc AMD64 2000 8GO de Ram
Video et son intégrés

Hors ligne

#39 Le 08/06/2020, à 16:18

NicoApi73

Re : [RESOLU] permission denied

Non, il faut savoir pourquoi ta partition ne se monte pas automatiquement.

NicoApi73 a écrit :

Comment est elle montée (fstab, autofs, nfs...)?

Hors ligne

#40 Le 08/06/2020, à 16:37

dauphin

Re : [RESOLU] permission denied

Comment le sait-on? Je pense que c'est fstab; du coup j'ai ré-installé gnome-disk utilliyi. J'espère que ça va aller.


20.04 sur carte Asus M5 et proc AMD64 2000 8GO de Ram
Video et son intégrés

Hors ligne

#41 Le 08/06/2020, à 17:08

erresse

Re : [RESOLU] permission denied

dauphin a écrit :

Comment le sait-on? Je pense que c'est fstab; du coup j'ai ré-installé gnome-disk utilliyi. J'espère que ça va aller.

Pas vraiment malin, ça, dauphin ! roll
Ce que tu aurais été bien inspiré de faire, c'est lister ton fichier /etc/fstab et le copier/coller ici pour qu'on puisse le voir (et éventuellement te suggérer comment le corriger)...
Même si tu as parfois l'impression que tu abuses du temps et de la patience des aidants, dis-toi que ce n'est pas vrai, ils sont là pour aider et ne pas se lasser (sinon, on s'esquive, c'est tout tongue) et, en fait, ils attendent justement que tu donnes les retours des commandes qu'ils te demandent de passer. Parce-que parfois, pour d'autres personnes dans le même cas que toi, voire pour les aidants eux-mêmes, la solution de ton problème peut être intéressante...
big_smile


Plus de 50 ans d'informatique, ça en fait des lignes de commandes en console, mais on n'avait pas le choix...
Excellente raison pour, aujourd'hui qu'on le peut, utiliser au maximum les INTERFACES GRAPHIQUES !
Important : Une fois le problème solutionné, pensez à clore votre sujet en ajoutant [Résolu] devant le titre du 1er message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.

Hors ligne

#42 Le 08/06/2020, à 17:35

NicoApi73

Re : [RESOLU] permission denied

+1 avec eresse.J'ajouterai que les initiatives en cours de dépannage sans connaître la root-cause du problème posent en général des problèmes.

Il y a un problème dans un fichier de configuration ou alors tu montes quelque chose d'autre dans /media et ça met le bazar.

Perso, pour ce type de partition, je ne laisse pas le système le monter avec les paramètres par défauts. Je crée un point de montage et je configure ça dans /etc/fstab

Donne :

cat /etc/fstab

Hors ligne

#43 Le 08/06/2020, à 17:45

xubu1957

Re : [RESOLU] permission denied

J'avais gardé :

moko138 a écrit :

/!\  Jamais d'initiative unilatérale en cours de dépannage !
(...)


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

#44 Le 08/06/2020, à 18:03

dauphin

Re : [RESOLU] permission denied

voici  cat /etc/fstab

michel@michel-System-Product-Name:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda4 during installation
UUID=f21ae93d-92cf-4a24-9df1-7dd314c5159b /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0
michel@michel-System-Product-Name:~$ 

Dernière modification par dauphin (Le 08/06/2020, à 18:08)


20.04 sur carte Asus M5 et proc AMD64 2000 8GO de Ram
Video et son intégrés

Hors ligne

#45 Le 08/06/2020, à 18:42

NicoApi73

Re : [RESOLU] permission denied

Monte ton disque manuellement et donne le retour de :

lsblk -o name,fstype,label,mountpoint,uuid

Je ne monterais pas cette partition dans /media, mais je créérais un point de monte spécifique. As tu une préférence (soit un répertoire créé dans la racine, dans /mnt dans /home/michel ...)

Hors ligne

#46 Le 08/06/2020, à 18:46

dauphin

Re : [RESOLU] permission denied

Voilà:

michel@michel-System-Product-Name:~$ lsblk -o name,fstype,label,mountpoint,uuid
NAME   FSTYPE   LABEL           MOUNTPOINT                    UUID
loop0  squashfs                 /snap/core18/1705             
loop1  squashfs                 /snap/core/9066               
loop2  squashfs                 /snap/core/9289               
loop3  squashfs                 /snap/gnome-3-28-1804/116     
loop4  squashfs                 /snap/core18/1754             
loop5  squashfs                 /snap/gnome-3-28-1804/128     
loop6  squashfs                 /snap/gimp/273                
loop7  squashfs                 /snap/snap-store/433          
loop8  squashfs                 /snap/gnome-3-34-1804/33      
loop9  squashfs                 /snap/gtk-common-themes/1506  
loop10 squashfs                 /snap/snapd/7264              
loop11 squashfs                 /snap/vlc/1620                
loop12 squashfs                 /snap/gnome-3-34-1804/36      
loop13 squashfs                 /snap/gtk2-common-themes/9    
loop14 squashfs                 /snap/snap-store/454          
loop15 squashfs                 /snap/snapd/7777              
sda                                                           
├─sda1 ext4     Ubuntu 18                                     4394787c-ba24-4a83-9faa-855403c40fc6
├─sda2 ntfs     WINDOWS                                       0A5E96DA5E96BE3F
├─sda3 ext4     Ubuntu 20.04    /media/michel/Ubuntu 20.04    72674138-5500-4ba0-9dcf-a0ac67672233
└─sda4 ext4                     /                             f21ae93d-92cf-4a24-9df1-7dd314c5159b
sdb                                                           
├─sdb1 ext4     DOSSIERS-UBUNTU /media/michel/DOSSIERS-UBUNTU 96cdce64-905a-4716-b588-b9ad50c8439c
├─sdb2 ntfs     DOSSIER-WINDOWS                               59C33B3172383267
├─sdb3                                                        
├─sdb4 ext4                                                   50d7cb15-7ee3-4011-84f9-d0889abe1773
└─sdb5 ext4                                                   533eca93-617d-4b78-bf0d-0a0c86f5c74b
sdc                                                           
├─sdc1 ext4     Eliane                                        2d6d943a-1569-47fe-8c17-65915f1c47ce
└─sdc2 ext4                                                   cacf772d-8e58-4bfe-81ea-d1e26b12756a
sdh                                                           
└─sdh1 vfat     CLE USB         /media/michel/CLE USB         EC26-23A0
sr0                                                           
michel@michel-System-Product-Name:~$ 

DOSSIERS-UBUNTU est effectivement monté dans Media; comment crée-t-on un point de montage différent, je ne me souviens plus?

Dernière modification par dauphin (Le 08/06/2020, à 18:50)


20.04 sur carte Asus M5 et proc AMD64 2000 8GO de Ram
Video et son intégrés

Hors ligne

#47 Le 08/06/2020, à 19:13

NicoApi73

Re : [RESOLU] permission denied

Commence par faire :

sudo cp /etc/fstab /etc/fstab.bak

puis :

sudo mkdir /mnt/DOSSIERS-UBUNTU

Ensuite tu édites fstab pour ajouter la configuration :

sudo nano /etc/fstab

Tu ajoutes les 2 lignes suivantes (tu te déplaces avec les touches/flèches du clavier) :

# Montage DOSSIERS-UBUNTU
UUID=96cdce64-905a-4716-b588-b9ad50c8439c /mnt/DOSSIERS-UBUNTU            ext4    defaults,noatime        0       2

Tu sauvegardes et tu quittes nano :
CTRL + o
Entrée
CTRL + x

Ensuite, tu rebootes et ta partition sera montée dans /mnt/DOSSIERS-UBUNTU

Hors ligne

#48 Le 08/06/2020, à 19:19

erresse

Re : [RESOLU] permission denied

Comme manifestement ce volume n'est pas monté dans le fstab, c'est normal qu'il le soit dans /media/michel/... puisque c'est un volume externe qui est monté automatiquement lorsqu'on clique sur son icône dans le bureau ou dans "Ordinateur".
Mais il n'est pas monté par défaut, ce qui explique qu'il soit parfois disponible et parfois pas...

Ensuite, tu rebootes et ta partition sera montée dans /mnt/DOSSIERS-UBUNTU

Je crois qu'un simple "sudo mount -a" devrait suffire, pas besoin de redémarrer.

Dernière modification par erresse (Le 08/06/2020, à 19:21)


Plus de 50 ans d'informatique, ça en fait des lignes de commandes en console, mais on n'avait pas le choix...
Excellente raison pour, aujourd'hui qu'on le peut, utiliser au maximum les INTERFACES GRAPHIQUES !
Important : Une fois le problème solutionné, pensez à clore votre sujet en ajoutant [Résolu] devant le titre du 1er message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.

Hors ligne

#49 Le 08/06/2020, à 19:31

NicoApi73

Re : [RESOLU] permission denied

Merci erresse, je ne connaissais pas cette option (qui en plus est l'une des premières dans man smile )

Hors ligne

#50 Le 08/06/2020, à 19:46

dauphin

Re : [RESOLU] permission denied

Hélas, ça ne fonctionne toujours pas !


20.04 sur carte Asus M5 et proc AMD64 2000 8GO de Ram
Video et son intégrés

Hors ligne