Time of latest file changed by a user
-
- Starting out
- Posts: 10
- Joined: Wed Aug 08, 2018 10:50 pm
Time of latest file changed by a user
Hi
I want to know when was the last change made by a user on NAS files.
Thanks
I want to know when was the last change made by a user on NAS files.
Thanks
- 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
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
-
- Starting out
- Posts: 10
- Joined: Wed Aug 08, 2018 10:50 pm
Re: Time of latest file changed by a user
I am using QNAP firmware. Where should I issue this command?OneCD wrote:Code: Select all
stat /etc/config/uLinux.conf
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?"
- 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
you issue this via ssh .. e.g. putty on windows
- 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
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.
Sorry, don't know. I don't use any syncing software on my QTS NAS.
-
- Starting out
- Posts: 10
- Joined: Wed Aug 08, 2018 10:50 pm
Re: Time of latest file changed by a user
1. Is there a graphical interface to do that?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.
2. How can I sort all files in a "share" by modification date&time? (Including all files in folders)
- 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
Not that I know of.
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.
- storageman
- Ask me anything
- Posts: 5507
- Joined: Thu Sep 22, 2011 10:57 pm
Re: Time of latest file changed by a user
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"
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"
-
- Starting out
- Posts: 10
- Joined: Wed Aug 08, 2018 10:50 pm
Re: Time of latest file changed by a user
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
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
- storageman
- Ask me anything
- Posts: 5507
- Joined: Thu Sep 22, 2011 10:57 pm
Re: Time of latest file changed by a user
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.
No sure how you would get update logs from NAS side.
-
- Starting out
- Posts: 10
- Joined: Wed Aug 08, 2018 10:50 pm
Re: Time of latest file changed by a user
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.
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.