Question: I'm having a problem with my hard disk.

I only have 80GB of HD, then I rename my Admin user like (Shaqnet to My PC) then from that time before I rename the administrator I only have 39GB space and a free space of 38GB. After I rename it I notice that I only have 1 GB space. What should I do?

I tried to delete the files, using Control Panel Access but there's only one User account there. When i go to C:\Users I see a folder of the Old user (Shaqnet) and it contains 39GB space.

Answer: 
You only need to call [gnome\_keyring\_lock\_all\_sync()](https://developer.gnome.org/gnome-keyring/stable/gnome-keyring-Keyrings.html#gnome-keyring-lock-all).

Here's a simple program which does that:

lock-keyring.c:

```
#include <stdio.h>
#include <gnome-keyring.h>

int main() {
    GnomeKeyringResult lock_result = gnome_keyring_lock_all_sync();
    if (lock_result == GNOME_KEYRING_RESULT_OK) {
        printf("Successfully locked\n");
        return 0;
    } else {
        printf("Error locking keyring: %d\n", lock_result);
        return 1;
    }
}

```

Compile with `cc lock-keyring.c -o lock-keyring -Wall $(pkg-config gnome-keyring-1 --cflags --libs)`
In the main GUI of Gnome keyring (at least in the current version, which is seahorse 3.36), the user can right-click a keyring to get the context menu where an option to lock the keyring is available. It is also possible to create more keyrings in addition to the default one (called "login") and store passwords in different keyrings, so that the passwords are not available all at once.