Training @Tata Consultancy Services[ILP]

ILP(Initial Learning Program) Experience

This was the first time when i was called for training in one of the largest IT company of India TCS, in beautiful city named as Ahmedabad.
We were tagged with a stream named as BIPM(Business Intelligence & Performance Management).
We were groomed in two different ways, one was technically and other was personally.

Vi Magics

I was working with coder of drupal from past 3 days and had removed 7000 errors from a particular module. But i have done it with VI-Editor by following Commands.

1.For Removing all leading spaces


I have used gc so that it will confirm for every instance on every line.
2. Make an indentation of 2 spaces for every line starting.

:%s!^!  !

3. Replacing



 :%s/,/, /gc

4. For deleting all trialing spaces at the end of line

:%s/ \+$//c

Wrong permissions on configuration file, should not be world writable!

If you install phpMyAdmin on your web host and all you see when you access (or whatever) is “Wrong permissions on configuration file, should not be world writable!” you are supposed to just change the permissions of /phpmyadmin/ to not be world writable (i.e. chmod 755, or by using your FTP client).

sudo: /etc/sudoers is mode 0777, should be 0440 Solved Problem

Today I was getting a Problem in ubuntu that is

sudo: /etc/sudoers is mode 0777, should be 0440
sudo: no valid sudoers sources found, quitting

I solved it in following way :-
I have put Ubuntu onto a LiveCD, boot into the LiveCD, mounted my Ubuntu Partition on the Hard Drive (Open a file browser, like Nautilus, and click your Ubuntu Partition; or click Places->"xxGB Partition/Your Ubuntu Partition").

Then, opened a terminal within the LiveCD session and type these two commands:

cd /media//etc
sudo chmod 0440 sudoers
Thats it :)


Subscribe to Davinder Kumar RSS