melawy-skel-root/00_find_modified.sh

17 lines
281 B
Bash
Raw Normal View History

2023-10-22 04:12:20 +05:00
#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo "$0"
exit
else
echo "USER IS ROOT"
fi
2023-10-29 00:36:30 +05:00
find /home/liveuser -type f -newermt '2022-10-21 17:30' -ls |
2023-10-22 04:12:20 +05:00
grep -v '.cache' |
awk '{print $11}' |
2023-11-05 21:07:09 +05:00
sed -e "s|/home\/liveuser\/||g" > ./root.txt
2023-10-22 04:12:20 +05:00
2023-11-05 11:06:44 +05:00
echo "Ready"