Soluții

Stickybit in Linux

Bitul sticky este un bit special de permisiune care protejează fișierele într-un director. Acesta asigură că numai proprietarul unui fișier sau director (sau root) poate șterge fișierul sau directorul. Fără bitul sticky, orice utilizator cu permisiuni de scriere și executare asupra unui obiect poate șterge acel obiect. Bitul sticky asigură că acești utilizatori nu au privilegii de ștergere, dar păstrează celelalte permisiuni.

Setarea bitului sticky se face folosind această sintaxă în modul simbolic:

# chmod +t {nume directoare}

Setarea bitului sticky se face folosind această sintaxă în modul absolut:

# chmod 1--- {nume directoare}
[mai mult...]

Automatically Trigger iPhone Low Power mode earlier

Most ‌iPhone‌ users are familiar with the way iOS throws up a prompt to turn on Low Power Mode when the battery reaches 20%. Low Power Mode can also be turned on manually at any time by going to Settings -> Battery and toggling on the switch next to Low Power Mode.

If you find yourself constantly having to turn on Low Power Mode late in the day, you can save some time by setting it up to run automatically when your battery is depleted to a specific custom level. This can be done in the Shortcuts app, as the following steps show.

Bear in mind that Low Power Mode reduces your ‌iPhone‌’s performance and cuts out some background activities. For example, mail must be fetched manually, background app refresh is disabled, and motion and brightness are reduced.If you’re okay with those limitations, follow the steps below to automate the setting on your ‌iPhone‌.

[mai mult...]