Search Results

Search: Posts Made By: Abu Rayane
3,626
Posted By Abu Rayane
I'm not sure about layers information: ...
I'm not sure about layers information:


Datacenter
RBX2 - Rack: 21B13 - Server ID: 538852
OS
Xubuntu Desktop 14.04 "Trusty Tahr" (XFCE + x2go) (64bits)
Boot
OVH kernel (includes up-to-date...
3,626
Posted By Abu Rayane
Extend save partition
Hello guys,

I would like to extend a save partition in my ubuntu, I would like to add 20 GB from home partition using command line.


# df -h
Filesystem Size Used Avail Use% Mounted on...
4,755
Posted By Abu Rayane
@Neo: Basically if an IP (range of IP) is...
@Neo: Basically if an IP (range of IP) is whitelisted, it should not be blocked, or may cloudflare are using other IPs than those mentioned in their file
4,755
Posted By Abu Rayane
Cloudflare and iptables
Hello everybody,

I set an IPTables rules to block SYN, Spams, Floods,.. and I added cloudflare IPs (IP4v) (https://www.cloudflare.com/ips-v4) into a whitelist, I always wonder the website generate...
8,048
Posted By Abu Rayane
Well I modified the code replacing: mail ...
Well I modified the code replacing:

mail
find

with

/usr/bin/mail
/usr/bin/find


I checked if the script is running on startup:

ps -eaf | grep shellDetect.sh | grep -v grep


BUT...
8,048
Posted By Abu Rayane
Here you go #!/bin/sh # Some vars here ...
Here you go

#!/bin/sh

# Some vars here

# Dangerous files, extensions and shells
SHELLDETECT=$( find /home/uvid/www/Uploads/ -type f \( -iname "1.*" -o -iname "*eicar*" -o -iname "*.php" -o...
8,048
Posted By Abu Rayane
@Chubler_XL: I dit not use inotify yet, I am just...
@Chubler_XL: I dit not use inotify yet, I am just testing if script is running on reboot, so I can use inotify to watch the directory
8,048
Posted By Abu Rayane
The script is running under root, I don't think...
The script is running under root, I don't think it is running and executing at all
8,048
Posted By Abu Rayane
Well I checked the syslog, there is a red line on...
Well I checked the syslog, there is a red line on that specific script:


Apr 2 16:36:09 SERVER CRON[1151]: (root) CMD (/root/shellDetector/shellDetect.sh >> /root/shellDetector/error.log)
8,048
Posted By Abu Rayane
Well I added this to the cron, rebooted then the...
Well I added this to the cron, rebooted then the cron log is created but empty:


@reboot /root/shellDetector/shellDetect.sh >> /root/shellDetector/error.log
8,048
Posted By Abu Rayane
Thanks for reply and sorry for the delay. I...
Thanks for reply and sorry for the delay.

I did a simple script to monitor after installing inotify-tools, and place it in cron:

@reboot /root/shellDetector/shellDetect.sh


With grep:

ps...
8,048
Posted By Abu Rayane
Execute a script once a file uploaded to directory
Hello guys,

I would like to execute the below script once a file is uploaded to directory:


#!/bin/sh

log=/var/log/apache2/access.log...
931
Posted By Abu Rayane
Well, this is the first part of the script, hope...
Well, this is the first part of the script, hope is good:


#!/bin/bash

dirName='/root/Scripts/Misc'

# Loop through directories
for elems in $(find $dirName -mindepth 1)
do

# if is file...
931
Posted By Abu Rayane
I think I should loop through the specified...
I think I should loop through the specified directory and get all files, this is my last step:


dirName='/root/Scripts/Misc/'

cd $dirName


listFiles=$(find $dirName -iname '*' -exec ls -l...
931
Posted By Abu Rayane
Rsync files check
Hello everybody,

I sent some files a remote server using simple ssh command line:


rsync -e 'ssh -p SSH-PORT' -vr --log-file=/var/log/rsync.log /home/USER/www/* USER@IP:/home/USER/www

...
2,055
Posted By Abu Rayane
So, can I extract only the date / time of these...
So, can I extract only the date / time of these ignored folders?
2,055
Posted By Abu Rayane
Well, I should add the -exec ls -l, I tried, it...
Well, I should add the -exec ls -l, I tried, it returns the same result as I would not expected:


find . -maxdepth 3 -mtime +1095 -type d -exec ls -l \; \( \( $findArgs \) -prune -o -print \)

...
2,055
Posted By Abu Rayane
With this does Not work either: find ....
With this does Not work either:


find . -maxdepth 3 -mtime +1095 -type d -exec ls -l {} \; | grep -vFf "oldExclude" >> older
2,055
Posted By Abu Rayane
Find and exclude what is in file
Hello everyone,

I try to find folders older than 3 years and display them, but excluding some directories, the below code does NOT exclude listed directories:


find . -maxdepth 3 -mtime +1095...
1,700
Posted By Abu Rayane
Anybody can help with the above example?
Anybody can help with the above example?
1,700
Posted By Abu Rayane
I found this tutorial on the net Script to upload...
I found this tutorial on the net Script to upload to Internet Archive (archive.org) - Ask Ubuntu (http://askubuntu.com/questions/32763/script-to-upload-to-internet-archive-archive-org)
1,700
Posted By Abu Rayane
The mechanism is easy, I created an account, I...
The mechanism is easy, I created an account, I sign in using my logins credentials, then I hit the upload button on the top of the website, filling all details about the file that I would like to...
1,700
Posted By Abu Rayane
Using the website archive.org, but I am looking...
Using the website archive.org, but I am looking for a way to do it from my sever using the command line
1,700
Posted By Abu Rayane
I can upload files manually, as all can do, but I...
I can upload files manually, as all can do, but I am looking for a script that I can run, collect files from a specific directory and send them to archive.org
1,700
Posted By Abu Rayane
Archive.org API or Script
Hello everyone,

I have some files on my server, that I would to backup by uploading them into archive.org, is there any API or shell script that can help me with that?

Thanks in advance
Showing results 1 to 25 of 50

 
All times are GMT -4. The time now is 04:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy