Time of latest file changed by a user

Tell us your most wanted features from QNAP products.
Post Reply
hsadry
Starting out
Posts: 10
Joined: Wed Aug 08, 2018 10:50 pm

Time of latest file changed by a user

Post by hsadry »

Hi
I want to know when was the last change made by a user on NAS files.
Thanks
User avatar
OneCD
Guru
Posts: 12141
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Time of latest file changed by a user

Post by OneCD »

hsadry wrote: Wed Nov 14, 2018 11:51 pmI want to know when was the last change made by a user on NAS files.
When viewing your files and file lists, the datetime you see is the last modification datetime by default. But it's usually rounded-off.

If you'd like a more precise datetime, use the 'stat' command with a filename as an argument. Example:

Code: Select all

stat /etc/config/uLinux.conf

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
hsadry
Starting out
Posts: 10
Joined: Wed Aug 08, 2018 10:50 pm

Re: Time of latest file changed by a user

Post by hsadry »

OneCD wrote:

Code: Select all

stat /etc/config/uLinux.conf
I am using QNAP firmware. Where should I issue this command?
Time precision is not very important.
I want to know when was the last change made by a user on NAS files, not about a specific file on NAS. Or How can I find the location of last file changed by a user?
---------
In addition I want to know "when was the last successful sync by a user?"
User avatar
dolbyman
Guru
Posts: 35248
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Time of latest file changed by a user

Post by dolbyman »

you issue this via ssh .. e.g. putty on windows
User avatar
OneCD
Guru
Posts: 12141
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Time of latest file changed by a user

Post by OneCD »

hsadry wrote: Sat Nov 17, 2018 9:17 pmI want to know when was the last change made by a user on NAS files, not about a specific file on NAS. Or How can I find the location of last file changed by a user?
Ah, that's a bit more involved. You'd need to create a search that finds all files accessible by that specific user, sorts them by the modification datetime, then displays the results.

However, if these files are on shares accessible via many people and each client isn't mapped to a unique UID in the NAS, the user to last modify each file won't be recorded.
hsadry wrote: Sat Nov 17, 2018 9:17 pmIn addition I want to know "when was the last successful sync by a user?"
Sorry, don't know. I don't use any syncing software on my QTS NAS.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
hsadry
Starting out
Posts: 10
Joined: Wed Aug 08, 2018 10:50 pm

Re: Time of latest file changed by a user

Post by hsadry »

OneCD wrote: Sun Nov 18, 2018 3:47 am Ah, that's a bit more involved. You'd need to create a search that finds all files accessible by that specific user, sorts them by the modification datetime, then displays the results.

However, if these files are on shares accessible via many people and each client isn't mapped to a unique UID in the NAS, the user to last modify each file won't be recorded.
1. Is there a graphical interface to do that?
2. How can I sort all files in a "share" by modification date&time? (Including all files in folders)
User avatar
OneCD
Guru
Posts: 12141
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Time of latest file changed by a user

Post by OneCD »

hsadry wrote: Tue Nov 20, 2018 10:47 pm 1. Is there a graphical interface to do that?
Not that I know of.
hsadry wrote: Tue Nov 20, 2018 10:47 pm2. How can I sort all files in a "share" by modification date&time? (Including all files in folders)
This could be done at the command-line-interface, but it would take some careful construction of the correct commands. It's something best attempted by someone familiar with the CLI.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
storageman
Ask me anything
Posts: 5507
Joined: Thu Sep 22, 2011 10:57 pm

Re: Time of latest file changed by a user

Post by storageman »

Have you looked at Qsirch?
But it can't do any search via user.
Not many people need to know the date/time of the last file saved by a user, rather specific requirement.

CLI example, finds files saved by admin user in last day

" find /share/Public/ -user admin -name "*.*" -mtime -1"
hsadry
Starting out
Posts: 10
Joined: Wed Aug 08, 2018 10:50 pm

Re: Time of latest file changed by a user

Post by hsadry »

Thank
I want to know the status of qsync for a given user.
It seems better to wait for answer of my ticket:
https://helpdesk.qnap.com/index.php?/Ti ... -442-36680
User avatar
storageman
Ask me anything
Posts: 5507
Joined: Thu Sep 22, 2011 10:57 pm

Re: Time of latest file changed by a user

Post by storageman »

From the client side there is "File Update Center: List the file or folder update logs."
No sure how you would get update logs from NAS side.
hsadry
Starting out
Posts: 10
Joined: Wed Aug 08, 2018 10:50 pm

Re: Time of latest file changed by a user

Post by hsadry »

Thanks all
Qnap answer:
From Qnap gui, if you check Qsync Central, there is a menu called "Event logs". In here you can see this kind of a logs.
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Features Wanted”