Skip to main content

Posts

Showing posts with the label NFS Shares

Linux find accessed and modified files

Finding accessed and modified files might be necessary at times to check or for audit purposes. If files kept in a folder or directory has been accessed or modified but should not be the case then something dubious is going on.  In Linux finding accessed and modified files can be done in a one liner command. find /home -type f -amin -60 || -mmin -60 -print Above command will find or show any files accessed within the last 60 minutes with the option "-amin" and it will show also the files modified within the last 60 minutes with the option "-mmin". A shell script can be created and further processing can be done when files are detected. The time can be adjusted if there's a need, but a more robust solution to check any accessed or modified files should be a file system watcher, but above command is quite helpful to check any activity that should not be occurring. Cheers..till next time!   ================================ Free Android Apps: Click  links below to f...

How to mount NFS shares in Linux

To mount NFS shares in Linux such as NAS NFS shares, Linux NFS shares or other devices which supports NFS sharing. This example command below I used to mount an NFS share from a NAS device. Of course you need to check whether your NAS device supports NFS, you can check this from the admin panel of the NAS device. Consult the manual of your device or visit manufacturer's website. 1. First is to configure NAS which folder to be shared using NFS 2. Set options whether the NFS share would be a read only share or read and write. 3. Once everything is setup on the NAS.    - On the Linux box type this command below: showmount -e 192.168.1.7 change the IP Address to the IP Address of NAS device or the IP Address which has NFS shares. From my environment it has this output: Export list for 192.168.1.7: /c/backup    * /c/Videos (everyone) The output of showmount -e IP.Address basically shows NFS shares. If the output ...