Archives

Monthly Archive for: ‘March, 2015’

sudo config

0

sudo is a standard way to give users some administrative rights without giving out the root password. This can also be configured for non root users as well.

Read More

sftp only access (no shell access)

0

Add the following lines to /etc/ssh/sshd_config

Make sure to restart sshd daemon.

Read More

working with 1st or last characters of every line in vim

0

Remove the last char from every line

Insert a * in the beginning/end of every line

Read More

command > some_file.txt 2>&1

0

What does 2>&1 do in a linux console?

Read More

Change the default editor

0

I ran into this with CentOS 5. Where the default editor for the system is set to nano! I like vi and wanted to change the default to it. login to the system vi .bashrc Add the following two lines to .bashrc

run the command, source .bashrc A change to /etc/bashrc will make it a system wide change

Read More

Block insert with vim

0

Vi block insert (i.e // in front of a block of lines)

Read More

Virtualbox dhcp set

0

Read More

Simple all mail relay

0

You have a server who’s IP is already white listed on your mail server & you wanted this server to pass all outgoing mails to the company’s mail server. This method basically eliminates the need for a mail server to be running on the local box.

Read More

increase the loop device count

0

Read More

Put a time stamp in history

0

Read More
Page 1 of 212»
    No Twitter Messages.