Results 1 to 6 of 6

Thread: Connected WiFi name information cannot be deleted

  1. #1
    Join Date
    Oct 2023
    Beans
    7

    Connected WiFi name information cannot be deleted

    Hi, guys,






    The following issue occurred in Ubuntu 23.10. When I tried to delete the WIFI information that had already been memorized, I found that the deleted information was indeed missing. However, after the system restarted, the deleted WIFI information returned






    I also tried to stop Tptables, but it still didn't work.






    I am not sure what caused this issue, and now I am unable to delete the saved network information.






    Here are some things I have tried:






    1) Nmcli c






    Status:


    $nmcli c


    NAME UUID TYPE DIVICE


    WEB WIFI eff2f46d-6167-4de2-ac92-5d711b5b821b wifi wlp9s0


    Lo cb8d2101-6af5-458c-929d-1522bb6a2375 loopback lo


    China Unicom f914356b-d224-4c01-a67d-d60fb089295d gsm cdc-wdm0


    21712 bc03f382-9636-470d-af9f-5bd8cf8ef17d wifi--


    AWiFi WHBG-8902 9de7eb79-30cd-4776-8b7f-f62767fb14df wifi--


    BDIA_ FREE_ WIFI 89801902-a89a-42e4-8a6f-9be80b160455 wifi--


    ChinaNet-4005 36228581-efa7-4499-9d40-4c8bec3d0161 wifi--


    ChinaNet-821 f50e33c5-d45d-438a-bb57-198f7a0b15c0 wifi--


    ChinaNet DCRxUK 589d8691-b9f6-4958-88a5-0ad56b32e896 wifi--


    CMCC-XN2H eacb6958-5fc4-42ff-a817-b77b3b44e9a1 wifi--






    2) Nmcli c delete ChinaNet-821


    Nmcli c delete ChinaNet-DCRxUK






    Status:


    L - $nmcli c delete ChinaNet-821


    Connection 'ChinaNet-821' (f50e33c5-d45d-438a-bb57-198f7a0b15c0) successfully deleted


    ł -[ mrchen@MrChen-T14 ]- [~]


    L - $nmcli c delete ChinaNet DCRxUK


    Connection 'ChinaNet DCRxUK' (589d8691-b9f6-4958-88a5-0ad56b32e896) successfully deleted


    ł -[ mrchen@MrChen-T14 ]- [~]






    3) Nmcli c






    Status:


    $nmcli c


    NAME UUID TYPE DIVICE


    WEB WIFI eff2f46d-6167-4de2-ac92-5d711b5b821b wifi wlp9s0


    Lo cb8d2101-6af5-458c-929d-1522bb6a2375 loopback lo


    China Unicom f914356b-d224-4c01-a67d-d60fb089295d gsm cdc-wdm0


    21712 bc03f382-9636-470d-af9f-5bd8cf8ef17d wifi--


    AWiFi WHBG-8902 9de7eb79-30cd-4776-8b7f-f62767fb14df wifi--


    BDIA_ FREE_ WIFI 89801902-a89a-42e4-8a6f-9be80b160455 wifi--


    ChinaNet-4005 36228581-efa7-4499-9d40-4c8bec3d0161 wifi--


    CMCC-XN2H eacb6958-5fc4-42ff-a817-b77b3b44e9a1 wifi--






    4) Reboot






    5) $nmcli c






    $nmcli c


    NAME UUID TYPE DIVICE


    WEB WIFI eff2f46d-6167-4de2-ac92-5d711b5b821b wifi wlp9s0


    Lo cb8d2101-6af5-458c-929d-1522bb6a2375 loopback lo


    China Unicom f914356b-d224-4c01-a67d-d60fb089295d gsm cdc-wdm0


    21712 bc03f382-9636-470d-af9f-5bd8cf8ef17d wifi--


    AWiFi WHBG-8902 9de7eb79-30cd-4776-8b7f-f62767fb14df wifi--


    BDIA_ FREE_ WIFI 89801902-a89a-42e4-8a6f-9be80b160455 wifi--


    ChinaNet-4005 36228581-efa7-4499-9d40-4c8bec3d0161 wifi--


    ChinaNet-821 f50e33c5-d45d-438a-bb57-198f7a0b15c0 wifi--


    ChinaNet DCRxUK 589d8691-b9f6-4958-88a5-0ad56b32e896 wifi--


    CMCC-XN2H eacb6958-5fc4-42ff-a817-b77b3b44e9a1 wifi--






    Even after restarting many times, I cannot delete the memorized WIFI information






    Thank you very much for your help






    thanks

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Connected WiFi name information cannot be deleted

    May we please see:

    Code:
    uname -r
    ls /etc/netplan/
    sudo ls /etc/NetworkManager/system-connections/
    Thanks.
    Last edited by chili555; October 25th, 2023 at 02:14 AM.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  3. #3
    Join Date
    Oct 2023
    Beans
    7

    Re: Connected WiFi name information cannot be deleted

    Not for this reason, it's an error message
    2023-10-24T17:14:03.741639+08:00 MrChen-Duet NetworkManager[700]: netplan_delete_connection: Cannot write output state: Read-only file system
    2023-10-24T17:14:03.811173+08:00 MrChen-Duet generate[1795]: Permissions for /etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration should NOT be accessible by others.

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Connected WiFi name information cannot be deleted

    Permissions for /etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration should NOT be accessible by others.
    Please do:
    Code:
    sudo chmod 0600 /etc/netplan/01-network-manager-all.yaml
    And try again. Run and post:

    Code:
    uname -r
    ls /etc/netplan/
    sudo ls /etc/NetworkManager/system-connections/
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  5. #5
    Join Date
    Oct 2023
    Beans
    7

    Re: Connected WiFi name information cannot be deleted

    The permissions have been changed, still the same as before
    drwxr-xr-x 2 root root 4096 Oct 26 12:35 ./drwxr-xr-x 156 root root 12288 Oct 26 06:54 ../
    -rw-r--r-- 1 root root 49 Oct 26 12:41 01-network-manager-all.yaml
    -rw------- 1 root root 350 Oct 26 12:33 50-cloud-init.yaml

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Connected WiFi name information cannot be deleted

    Please try again. Here is a sequence from my machine:

    Code:
    chili@T480s:~$ ls -al /etc/netplan
    total 28
    drwxr-xr-x   2 root root  4096 Oct 24 21:15 .
    drwxr-xr-x 144 root root 12288 Oct 26 09:02 ..
    -rw-------   1 root root   686 Oct 24 21:08 90-NM-7f6a828b-ff8b-4840-b778-571ce299feed.yaml
    -rw-------   1 root root   686 Oct 24 21:09 90-NM-d85106a2-ecf8-4493-8ec5-d93431386ece.yaml
    -rwxrwxrwx   1 root root    49 Oct 24 21:02 network_manager.yaml <---wrong permissions
    chili@T480s:~$ sudo chmod 0600 /etc/netplan/network_manager.yaml <---change permissions
    chili@T480s:~$ ls -al /etc/netplan
    total 28
    drwxr-xr-x   2 root root  4096 Oct 24 21:15 .
    drwxr-xr-x 144 root root 12288 Oct 26 09:02 ..
    -rw-------   1 root root   686 Oct 24 21:08 90-NM-7f6a828b-ff8b-4840-b778-571ce299feed.yaml
    -rw-------   1 root root   686 Oct 24 21:09 90-NM-d85106a2-ecf8-4493-8ec5-d93431386ece.yaml
    -rw-------   1 root root    49 Oct 24 21:02 network_manager.yaml <---correct permissions
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •