Tuesday, July 3, 2012

Add Prefix or Suffix using Notepad++

Notepad++ is a great text document editor.

When a prefix or suffix need to be added to all lines in a text document, search and replace function of Notepad++ can be used.

Check out the image which shows how to do this.


In Find What enter "^(.+)$" without the quotes, in replace with column enter "<Prefix>\1" to add prefix or "\1<Suffix> to add suffix. Where <Prefix> and <Suffix> are the data you want to insert.

Also, make sure to keep the search mode in "Regular expression"

That should do the trick!!!

FTP Users with /bin/false shell not able to login to ftp site

It is common to have user shell under "/bin/false" to restrict ftp users from logging through SSH

It also prevents the user from logging in to ftp also. This can be solved by following below steps.

# vi /etc/pam.d/vsftpd

auth   required        pam_shells.so (Comment this line by adding a "#" in the front)

That should do the trick!!!

Friday, April 6, 2012

Unable to Add Printer in Windows XP

When trying to add a printer you receive a error "Unable to add printer. Operation could not be completed" Error and you receive error 126 in event log for these instance.

Solution:

In "Printers and Faxes" remove all printers and go to File menu, select Server Properties.

In Server Properties, open drivers tab and delete printer drivers

Stop Print Spooler Service.

Then go to %windir%\system32\spool\drivers\w32x86\3 directory

Backup the directory and remove all files and folders inside it

Start Print Spooler Service

Now you will be able to add printers.

If you  have problems with adobe PDF printer after following above steps, copy files related to adobe pdf from backup in the %windir%\system32\spool\drivers\w32x86\3 directory.

That should do the trick!!!

Friday, March 23, 2012

Network stucks at acquiring ip address in Windows XP

In Windows XP, Network does not acquire IP automatically and stucks forever at acquiring network address,

The possibilities are,

1. DHCP Service not running - Go to Start -> Run -> services.msc and start DHCP Client service and make it automatic.
2. Bad Network Cable - Replace Cable
3. Bad NIC Card - Service or Replace Network Card

that should do the trick !!!

Wednesday, March 14, 2012

How to disable Ctrl+Alt+Del restarting in Ubuntu

In Ubuntu, the action taken when Ctrl+Alt+Del pressed is based on the configuration file located in "/etc/event.d/control-alt-delete"
Just disable the line which specifies the restart action.


sudo vi /etc/event.d/control-alt-delete

comment the line

#exec /sbin/shutdown -r now “Control-Alt-Delete pressed”

:wq (save and exit)

that should do the trick!!!

How to disable Ctrl+Alt+Del restarting in CentOS

In CentOS, the action taken when Ctrl+Alt+Del pressed is based on the configuration file located in "/etc/init/control-alt-delete.conf"
Just disable the line which specifies the restart action.
 

vi /etc/init/control-alt-delete.conf

comment the line

#exec /sbin/shutdown -r now “Control-Alt-Delete pressed”

:wq (save and exit)

that should do the trick!!!

Disable Account Changes in Outlook Express

Open registry and create below key

System Key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Outlook Express]
Value Name:
No Modify Accts
Data Type:
REG_DWORD (DWORD Value)
Value Data:
(0 = default, 1 = enable restriction)

If you are an admin managing network computers, before trying to make any changes to account setting use regedit option "connect to network registry" in admin privileged login and change values to enable before going to edit in user login

that should do the trick !!!

Monday, January 9, 2012

Enable / Disable Change Of Date And Time On Windows XP

Go to Start > Control Panel > Administrative Templates

Open Local Security Policy

Go to Local Policy > User Rights Assignments > Change the System time, double click to open it.

Add and remove user groups. Remove the limited users from this list and those limited users will not be able to edit date and time of this compute. Add users who need access to change date / time



that should do the trick!!!