Subscribe For Free Updates!

We'll not spam mate! We promise.

Showing posts with label security. Show all posts
Showing posts with label security. Show all posts

Sunday, 11 May 2014

Scheduling a Cron Job


Hello Guys in this session i am going to tell you about Cron Job.
Cron job is similar like schedule task in windows,this program give you ability to execute a command or a script with a sequence of commands, at a specified date , time or at set intervals.

Although the package is installed by default, check to make sure it is installed on your system

#rpm -qa | grep cron

if. for some reason the package not installed, you can install the same via this command

# yum install -y cronie cronie-anacron crontabs

you also need to look at the config file that

/etc/cron.deny
if this file empty, all users are allow to create cron job.

 Before you start using the crontab command, however, you should look at the cron field description so you better understand how to create and edit cron job.

 ***** command_to _execute

 each star denotes Minute Hour Day_of_Month Month Day_of Week

 Minute = Minute of the hour, 00 to 59. * Will indicate   every minute

 Hour = Hour of the day in 24-hour format, 00 to 23. * Will indicate every hour

 Day = Day of the month, 1 to 31. * Will indicate every day

 Month = Month of the year, 1 to 12. * Will indicate every month

 Day = Day of the week, 3 chars - sun, mon, tue, or numeric (0=sun, 1=mon etc).... * Will indicate every day

 Task = The command you want to execute






Friday, 9 May 2014

ssh loging without password


Hello guys, i am back with my new tutorial, Today i am going to tell you how to configure ssh longing with key authentication,
ssh is basically secure way to transfer data remote Linux UNIX system and you can upload download and manage your server, it is installed by default
you can perform variety of task via this like Automate the longing, making backup, uploading file, downloading file, run commands, 

Scenario :- I have window 8 installed machine and my remote system having cantos (you can use any other flavor like Ubuntu, Kali, SUSE ) so i am going to use putty-gen to create authentication key and putty to connect our remote server,



so first i am creating our authentication key through putty-gen, while generating key keep moving your mouse its speed up the process.



so now you can see our authentication key has been generated, now i am going to save both key Public and private, 
Private key :- Private key contain information about your system (like MAC Address and other) and encryption, the user keep the private key secret and user it to encrypt outgoing data and decrypt incoming data, for the security point permissions for the private key should be set so that only owner can access the key
Public key :- The user share the copy of public key to allow anyone to use encrypting data to be sent to the user and for decrypting data received from the user




this is how key look,



Now time to setup your server, create the file in .ssh folder with the name of authorized_key and copy the key and stop password loging 




Now open the putty and put your server ip and port 


Now we have to locate the private key which we saved 




And here we go :) we are success fully connected with Linux server with ssh key..



Feel free to contact me regarding any queries, ideas and suggestions, I need your valuable ideas,
Thanks :)

Saturday, 15 February 2014

ACL Permission on Linux



Hello Friend’s I am back again with new topic, in this session I am going to talk about ACL,

The Access Control List (ACL) advanced permission feature, through this you can specify permissions for each user and group in your system.

Lets suppose in your company have multiple department like sales, marketing, HR,

Now sales department need to share some files with HR department but not with marketing in this case ACL help us to set access permission in HR department only..



Add Permission on Folder




Now i am going to show you how to add permission by group



 

Wednesday, 29 January 2014

Configure Vsftpd with SSL


Hello Friend’s, In this session I am going to tell you how to configure vsftp with ssl,

Before going to start I want to tell you why we need SFTP, Ftp is a way to transfer file one computer to other computer over the network but in text format, However, Ftp sends all information and file unencrypted so its not secure and SFTP is the best alternate



Now go to client system and set ftp, in my case i am using Filezilla, Click on file and open site manager









Feel free to contact me regarding any queries, ideas and suggestions, I need your valuable ideas,

Thanks :)