Check last accessed folder from a Windows user

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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
    • Yyou can read the atime, mtime or ctime of any file in a shell script

      Source Code

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

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

      Source Code

      1. # find /StoragePool/Musiques -type f -print0 | sort -z | xargs -r0 stat | grep "Accès : 2018" | sort | tail -n 1
      2. Accès : 2018-04-05 22:52:46.838294454 +0200
      Lian Li PC-V354 with Be Quiet fans | Gigabyte GA-G33M-DS2R | Intel E8400@3,6Ghz | 6GB DDR2 RAM
      1x500MB SSD for System/Backup | 7x2To HDD with ZFS RAIDz2 for Datas/Snapshots
      Powered by OMV v4.1.7 / Kernel 4.16.x / ZFS 0.7.9

      The post was edited 3 times, last by sbocquet ().

    • Users Online 1

      1 Guest