14 lines
271 B
Bash
14 lines
271 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [[ "$UID" != 0 ]]; then
|
||
|
echo "USER NOT ROOT"
|
||
|
sudo $0
|
||
|
exit
|
||
|
else
|
||
|
echo "USER IS ROOT"
|
||
|
fi
|
||
|
|
||
|
find /home/liveuser -type f -newermt '2023-10-16 10:20' -ls | grep -v '.cache' | awk '{print $11}' | sed -e "s|/home\/liveuser\/||g" > ./liveuser.txt
|
||
|
|
||
|
|