Announcement

Collapse
No announcement yet.

How to enable the creation of folders by anybody?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to enable the creation of folders by anybody?

    Hello Everybody,

    I'm not able to create a folder on an external hard disk.
    I read that it is because I don't have the rights to do it.
    I cannot change the rights in the feature or characteristics of the menu of the right click on the hard disk.
    I can do this with chown but I don't know how to enable everybody to create a folder.
    Please would you know how to do this?

    #2
    I assume your external HD is in the ext4 format?

    Then mount the external HD, go to the mountpoint (e.g. /media/username ) and e.g. sudo chmod 777 /my_external_hd .
    I also assume the external HD is empty - otherwise you would have to additionally chmod 777 for the relevant directories on it.
    But I would advise against using sudo chmod 777 recursively on the top level of your external ext4 volume (you could do this on a directory you created on the disk), because there are other directories like "lost+found" which should stay solely owned by root
    Last edited by Schwarzer Kater; Apr 15, 2024, 05:51 AM. Reason: typos
    Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
    Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

    get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
    install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

    Comment


      #3
      Hello Schwarzer Kater,

      Thank you for your answer.
      The HD was fat but I coulnd't register all characters. It was not empty and I partitioned it in ext4.

      Why do you think that it is not mounted please?
      KDE-Partitionsverwaltung shows that it is mounted on /media/auie/ccff202f-b6eb-4342-8707-6ecd138fdd9c

      Comment


        #4
        What do you mean by "it is not mounted"?
        It seems to be mounted according to its display in your KDE Partition Manager

        Don't you see it in Dolphin? Don't you see it in Konsole when you cd /media/auie/ && ls -l ?

        Something like an output of lsblk -e7 -f could also help to narrow this down…


        PS: Which method do you use to mount it? E.g. /etc/fstab or KDE Plasma's System Settings -> Hardware -> Removable Storage ?
        Last edited by Schwarzer Kater; Apr 15, 2024, 07:24 AM. Reason: added PS
        Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
        Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

        get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
        install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

        Comment


          #5
          Thank you very much for your answer Schwartzer Kater,

          I think that you think that it is not mounted because you give me the order to mount it :
          « Then mount the external HD, go to the mountpoint (e.g. /media/username ) and e.g. sudo chmod 777 /my_external_hd .​ »

          I see it in Dolphin.
          I see it in the konsole:
          Code:
          [FONT=monospace][COLOR=#54ff54][B]auie@Latitude-E5530[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454ff][B]~[/B][/COLOR][COLOR=#000000]$ cd /media/auie/ && ls -l [/COLOR]
          total 48
          drwxr-xr-x 19 root root  4096 Aug 13  2023 [COLOR=#5454ff][B]353636ae-fe9d-4ac0-919e-e290db272913[/B][/COLOR][COLOR=#000000] [/COLOR]
          drwxr-xr-x 20 root root  4096 Apr  8 13:45 [COLOR=#5454ff][B]4188e358-850b-4ae2-80e9-ac7d8ec02b97[/B][/COLOR][COLOR=#000000] [/COLOR]
          drwxr-xr-x  2 auie auie 16384 Jän  1  1970 [COLOR=#5454ff][B]5450-4444[/B][/COLOR][COLOR=#000000] [/COLOR]
          drwxr-xr-x  4 root root  4096 Feb 13 22:47 [COLOR=#5454ff][B]5c72b77f-4907-4231-b0c5-2c00e07ad066[/B][/COLOR][COLOR=#000000] [/COLOR]
          drwxr-xr-x  3 root root  4096 Apr 15 12:08 [COLOR=#5454ff][B]ccff202f-b6eb-4342-8707-6ecd138fdd9c[/B][/COLOR][COLOR=#000000] [/COLOR]
          drwxrwxrwx  1 auie auie 16384 Aug 13  2023 [COLOR=#1818b2]OS[/COLOR][COLOR=#000000] [/COLOR]
          [COLOR=#54ff54][B]auie@Latitude-E5530[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454ff][B]/media/auie[/B][/COLOR][COLOR=#000000]$ [/COLOR][/FONT]
          I didn't do anything. After partitioning in ext4, it was shown mounted.

          Comment


            #6
            So ccff202f-b6eb-4342-8707-6ecd138fdd9c is owned by root and has 755…

            You could either
            sudo chown auie:auie ccff202f-b6eb-4342-8707-6ecd138fdd9c to become the owner
            or
            sudo chmod 777 ccff202f-b6eb-4342-8707-6ecd138fdd9c to make it accessible for everyone and his dog.

            PS:
            A tip: You could additionally change the labels (or give them labels at all to begin with…) of the drives/partitions to make them easier to distinguish, e.g. "external_music" for an external USB drive that contains your music files.
            Those labels will also show in Dolphin's "Devices" list afterwards.
            Last edited by Schwarzer Kater; Apr 15, 2024, 08:17 AM. Reason: added PS
            Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
            Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

            get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
            install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

            Comment

            Working...
            X