vi /etc/motd
Search found 166 matches
- Sun Jul 14, 2013 2:56 pm
- Forum: SSH
- Topic: How to create ssh banner
- Replies: 0
- Views: 3322
How to create ssh banner
- Sun Jul 14, 2013 2:50 pm
- Forum: HOW TO FIND HACKING
- Topic: How did the hacker got in?
- Replies: 0
- Views: 6830
How did the hacker got in?
Any users managed to get root privilege? perl -n -e '@user = split /:/ ; print "@user[0]\n" if @user[2] == "0";' < /etc/passwd root@localhost[/tmp]# perl -n -e '@user = split /:/ ; print "@user[0]\n" if @user[2] == "0";' < /etc/passwd root sdrtect ghhjtyu roo...
- Fri Jun 21, 2013 10:55 am
- Forum: R1soft
- Topic: How to check if R1soft is running any backup/restore process
- Replies: 0
- Views: 6644
How to check if R1soft is running any backup/restore process
root@server15 [/]# ps auxf | grep agent
root 25992 20.6 0.1 2758084 131752 ? Ssl May31 6236:51 /usr/sbin/r1soft/bin/cdp -s -c /usr/sbin/r1soft/conf/agent_config
root 16597 0.0 0.0 103236 852 pts/5 S+ 01:24 0:00 \_ grep agent
root@server15 [/]#
- Thu Jun 06, 2013 4:21 pm
- Forum: Mysql Basic Commands
- Topic: Mysql monitoring commands
- Replies: 0
- Views: 7541
Mysql monitoring commands
mysqladmin status Uptime: 1914343 Threads: 7 Questions: 189964153 Slow queries: 57635 Opens: 11560430 Flush tables: 1 Open tables: 64 Queries per second avg: 99.232 mysqladmin extended-status +-----------------------------------+------------+ | Variable_name | Value | +------------------------------...
- Tue May 21, 2013 4:03 pm
- Forum: ERRORS
- Topic: Dropping connnection from 153.25.23.25 because of tcp_wrappe
- Replies: 0
- Views: 8112
Dropping connnection from 153.25.23.25 because of tcp_wrappe
Dropping connnection from 153.25.23.25 because of tcp_wrappers at cpsrvd-ssl line 3903 Cannt access WHM and above error in cpanel error logs /usr/local/cpanel/logs/error_log Solution : Check /etc/hosts.allow and /etc/hosts.deny vi /etc/hosts.allow Add the below lines cpaneld: ALL whostmgrd: ALL webm...
- Fri May 17, 2013 2:18 pm
- Forum: Miscellaneous
- Topic: How to change permission for all the cpanel users to default
- Replies: 0
- Views: 3488
How to change permission for all the cpanel users to default
cd /home vi /home/fixpermcustom.sh echo -e "Checking ownership of /home/user \n" for i in `ls /var/cpanel/users/` do if [ "$i" != "root" ]; then chown -R $i:$i /home/$i chown $i:nobody /home/$i/public_html /home/$i/.htpasswds chown $i:mail /home/$i/etc /home/$i/etc/*/s...
- Thu May 16, 2013 1:45 pm
- Forum: Basic Commands
- Topic: Rsync commands
- Replies: 0
- Views: 3240
Rsync commands
Various rsync commands. Check "/home/arun/rsync/1/" and "/home/arun/rsync/2/" and deletes any files in folder "2" which are not in "1". rsync -vrlptD --delete /home/arun/rsync/1/ /home/arun/rsync/2/ Sample output below : sending incremental file list ./ deleti...
- Sun May 12, 2013 3:25 pm
- Forum: Login
- Topic: Automatic mysql login
- Replies: 0
- Views: 6715
Automatic mysql login
vi /root/.my.cnf
[client]
user=root
password=myghs58jgShw
- Sat May 11, 2013 3:01 pm
- Forum: Python
- Topic: How to install pip
- Replies: 0
- Views: 6565
How to install pip
Enable and Install EPEL Repo CentOS6/EL6 version cd /usr/local/src/ wget http://mirror-fpt-telecom.fpt.net/fedora/epel/6/i386/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm CentOS5/EL5 version cd /usr/local/src/ wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-...
- Sat May 11, 2013 1:30 pm
- Forum: Basic Commands
- Topic: How to symlink and unlink that
- Replies: 0
- Views: 2620
How to symlink and unlink that
To symlink a file
To remove the symlink created
This will create a symlink in /home/user/testfile to point to /usr/bin/testfilecd /home/username
ln -s /usr/bin/testfile
To remove the symlink created
unlink testfile