Check last accessed folder from a Windows user

  • Hello everybody!
    I have 40 clients in Microsoft domain with personal folder for personal backup. Usually users copy data into personal backup, but every...much time!!!!
    If i knew time is too long from last access (for example 2 months) i will send mail to advice user.
    Can i ask you about plugin or similar to check when the last accessed is more than?


    Thank you in advance.


    Bye
    Teo

  • In this moment there isn't a personal backup, nas with openmediavault born for this use.
    NAS is syncronized with active directory throught LDAP Microsoft. We autorize only domain user to access in to nas.

  • Yyou can read the atime, mtime or ctime of any file in a shell script


    Code
    # stat Stéphane\ BOCQUET.onedrive.log
      Fichier : Stéphane BOCQUET.onedrive.log
       Taille : 2974        Blocs : 8          Blocs d'E/S : 4096   fichier
    Périphérique : 801h/2049d       Inœud : 390206      Liens : 1
    Accès : (0644/-rw-r--r--)  UID : ( 1000/sbocquet)   GID : (  100/   users)
     Accès : 2018-04-19 10:14:59.200165671 +0200
    Modif. : 2018-04-20 01:17:37.605787436 +0200
    Changt : 2018-04-20 01:17:37.605787436 +0200
      Créé : -


    If you want the last access datetime of a bunch of file in some directories (recursive), you can do a thing like this:


    Code
    # find /StoragePool/Musiques -type f -print0 | sort -z | xargs -r0 stat | grep "Accès : 2018" | sort | tail -n 1
     Accès : 2018-04-05 22:52:46.838294454 +0200

    Lian Li PC-V354 (with Be Quiet! Silent Wings 3 fans)
    ASRock Rack x470D4U | AMD Ryzen 5 3600 | Crucial 16GB DDR4 2666MHz ECC | Intel x550T2 10Gb NIC

    1 x ADATA 8200 Pro 256MB NVMe for System/Caches/Logs/Downloads
    5 x Western Digital 10To HDD in RAID 6 for Datas
    1 x Western Digital 2To HDD for Backups

    Powered by OMV v5.6.26 & Linux kernel 5.10.x

    3 Mal editiert, zuletzt von sbocquet ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!