Tuesday, 16 December 2008

How to Lock / UnLock (Enable / Disable) Linux User Account

Before you remove an account from a system, is a good idea lock it for one week to make sure that no one use it.

To lock, you can use the follow command:
# passwd -l username (where username is the login id).
This option is used to lock the specified account and it is available to root only. The locking is performed by rendering the encrypted password into an invalid string (by prefixing the encrypted string with an !).

After that, if someone try to loginusing this account, the system will return:
# su - username
This account is currently not available.

To Unlock the same account
Following command re-enables an account by changing the password back to its previous value i.e. to value before using -l option.
# passwd -u username
This removes the '!' in front of the encrypted password

Tuesday, 2 December 2008

Quick and Simple Samba configuration

The first step is to create a share folder on your hard drive; for instance, /disk2/data. After that, you need to edit the smb.conf file, found in /etc/samba, and make it look something like this:

# Global parameters[global]
workgroup = HOME
netbios name = SAMBA
server string = Samba Server %v
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
dns proxy = No
security = User

# Share[Data]
path = /disk2/data
valid users = nik
read only = No
create mask = 0777
directory mask = 0777

You can copy and paste this into your conf file or make changes to your existing one.

The workgroup name needs to be the workgroup of your Windows computers, or your domain name. The netbios name is what will appear when you access the Linux computer from Windows. I am currently running a Windows domain with this setup, so I have the preferred master and local master set to no to avoid both servers from attempting to be the master browser. This will eliminate network conflicts on your Windows computers that can cause network-related outages.

For the share details, specify the valid users, or set them up later. In that section you can allow users to create their own folder and files for all to access.

The next step is to add users by the following command:

# useradd -c “Sohail Shaikh” soh
# smbpasswd -a soh
New SMB password: secret
Reenter SMB password: secret
Added user soh

Next, run the testparm command to ensure that the conf file is valid.
If it returns no errors, restart Samba with the command /etc/rc.d/rc.samba restart

Now you’re ready to test Samba.

On a Windows computer, you can either map a drive to the Samba server or access the drive using the Start-Run command and typing \\Samba\data,
“Samba” being the server name and “data” being the shared folder.

One disclaimer: this setup serves a small network or a home network. 

Monday, 1 December 2008

The Five Kinds of Computer Backup Storage

There are five kinds of computer backup storage each with its own advantages and disadvantages you should consider. We’ll briefly describe each type of computer backup storage in this article so you can choose the best option for you. I have definitely learned the hard way, over the years, about the importance of backing up files. Many times I thought my files were safe and secure when they actually were not! I also sometimes just simply forgot to backup all the files and now have a list of the mostimportant computer files to backup.
Computer Backup Storage #1: No Backups
Even a few years ago, it would be crazy to suggest to people that they use computers without making regular backups, but today it’s a very real and very legitimate option. Thanks to the prevalence of “cloud” applications from Google and other companies, many users today store all of their files and applications entirely on the Web.
If you use hosted applications for everything, then you have nothing to worry about when your computer fails. You just need to stand up, walk to another computer, and log in to start working where you left off.
This option isn’t for everyone. Anyone who still needs an offline application or wants to keep their files private from Google still needs to store files locally and should make Easy Secure Backups using the methods described later in this article.
We expect a significant rise in the number of users who store all of their data in the cloud when Google releases its upcoming Chrome operating system for computers.
Computer Backup Storage #2: Same Disk Backups
At first, making a backup to the same disk doesn’t make any sense. If the disk fails, you lose both the original and the backup copies. Plus, making a same disk backup will run slowly—hard drives aren’t designed to quickly copy data from one part of the disk to another part of the same disk.
But a same disk backup can give you access to an important computer backup storage feature: the ability to save multiple versions of the same file. For example, you can make a new copy of your accounting Excel worksheet every time you save so that you can always restore an older version if you make a mistake. You probably also want to do this with important Word documents in case you accidentally delete a few paragraphs or pages, your Outlook email files in case you delete an important email, and many other applications.
Although a same disk can be useful, you should always remember that a disk failure will wipe out both original and backup copies, so this method is best used in combination with computer backup storage methods described later in this article.
Computer Backup Storage
Computer Backup Storage #3: External Backup Disks
External backup disks is one of the cheapest methods of computer backup storage and probably also the method that offers the best privacy for your files. Best of all, external backup disks are easy to use with Windows.
Most external disks these days use USB 2.0, although a few disks use Firewire or eSATA. In any case, all you need to do is plug in your external disk and wait for Windows to load it (also called mounting). After you disk mounts, go to the Windows Backup Wizard located in the System and Maintenance menu of the Control Panel. Set up a backup and start it right away.
You have so many choices when buying an external hard drive to use for computer backup storage.
Your first backup to an external drive will take a while, but your second and subsequent backups will go much faster because Windows transfers only the files that have changed.
After you make your backup, you need to safely remove your disk and then store it somewhere safe. It’s no use to you if the same natural disaster that destroys your computer also destroys your backup. You also need to keep the disk safe from attackers or your private files could fall into the wrong hands. For both purposes, we recommend storing your backup disk in a sturdy fire-proof safe.
Thanks to the low price of disk drives, an external backup can cost much less than any of the Internet-based computer backup storage methods mentioned later in this article.
Computer Backup Storage #4: Network Storage
At businesses and even in homes, more and more people are using Network-Attached Storage (NAS), which is simply disk drives accessible over your local network. NAS offers almost all of the benefits of external backup disks and also Internet-based backups for computer backup storage. Many devices made for small and home offices are also very easy to use.
Similar to external disks, a NAS plugs into your computer—but instead of plugging into your computer directly, in plugs into your network router. You can then create a folder on your computer that stores all the files on your NAS. You can backup files to this folder like normal and you can also share files with other people on your same local network.
Because the NAS is separate from your computer, there’s much less chance it will be destroyed by any calamity that strikes your computer. You can even store NASes in a safe place where they’re resist fire damage and thieves while still connected to the network, providing the ultimate in safety and convince.
Computer Backup Storage With RAID
Another great feature available in higher-end NASes is the ability to use a Redundant Array of Independent Disks (RAID) for extra safe backups. If you use your computer for business and worry about losing thousands of dollars of data to a disk drive crash, a NAS with RAID should be an important part of your computer backup storage plan.
RAID is also available for all full-sized PC computers using a special card called a RAID controller computer backup storage, but this method can require a lot of hassle and unskilled users can easily wipe out all their data by choosing the wrong option. With a RAID-enabled NAS, all you usually need to do put a second disk drive in your NAS, browse to a Web interface, and click a button to enable RAID computer backup storage protection.
Computer Backup Storage #5: Internet-Based Backup
The sudden popularity of Dropbox has brought increased attention to the already-established industry of Internet-based backups. Non-geeks will probably appreciate Internet-based backups the most, as very little setup is required. For example, to use Dropbox, all you need to do is install the Dropbox application, create a Dropbox account, and copy your files to a Dropbox folder. Dropbox will do all of the rest.
Dropbox and Mozy both offer free 2Gb storage and promise better security, but you’re still trusting someone else with all of your most important files.  You can get online easy secure backup that is guaranteed against data loss, however it costs an absolute fortune. Livedrive offer unlimited online storage.
The main disadvantage of Dropbox is that you trust the security of your data to Dropbox. Although Dropbox uses high-security technology, any hacker who ever figures out how to get around it will have access to the private files of millions of customers—and that’s an awfully tempting target. In contrast, if you keep your own computer backup storage, you only need to worry about direct threats against your computer.
Conclusion: You Can’t Avoid Computer Backup Storage
Whether you choose to keep your data in the cloud or store it on a high-end NAS, you should still make a clear choice about how you want to keep your computer backup storage before something goes wrong and your data is suddenly gone. If you organize your computer files neatly you will find that any kind of backup is a whole lot easier!!!

Saturday, 1 November 2008

10 Best Internet Safety Tips to Keep Your Computer Secure

Keeping your computer secure is essential to your online internet safety. It minimizes the risks of catching viruses and having spyware installed on your system. Computer security has to take a variety of paths and you should pay attention to all of them to maximize your own safety. With that in mind we’ve put together a list of internet safety tips dedicated to keeping your computer secure. The funny thing is, Internet safety tips are usually easy to implement but are often ignored.
10. Firewall
One of the best internet safety tips is to use your firewall to stop people entering your computer system from outside your location. It also stops programs accessing the internet from your computer if they shouldn’t be. A firewall is active as standard on most computers but you should regularly check that yours is active to avoid having your system compromised. Also your router should have its own firewall and you can enable this by entering the settings by finding the router IP address and logging in.
9. Passwords
Passwords are vital to all computer safety. You should have your computer access itself protected and you should have separate passwords for every online account you make. A strong passwords needs to be a mix of alpha numeric capitals such as 45Te9R7G7 to make it as hard as possible for anyone to break.
8. Encrypted files
Most people do not make use of this internet safety tip and do not realize that you can encrypt files on your home computer fairly easily. Simply right click the folder and choose properties. Here you can find a variety of protection options. This makes files harder to be read by third parties but for added security store important documents on a USB or other portable storage device that is not accessible from your home network.
How to Encryt a file
1. Go to the where the file is stored.
2. Right click on the file and choose properties from the menu.
3. On the General tab click on Advanced.
internet safety
4. Tick the box next to “Encrypt contents to secure data
5. Press OK.
internet safety
7. Update browser for internet safety
Over half of all internet users still use out dated browsers to access the internet. These browsers will not have been updated to the latest security threats and are subsequently much easier for hackers to compromise. It is a good idea to update your browser as soon as an update is made available to maximise your protection.
6. Update software
Out dated software is one of the most overlooked security threats to home computers. Much software accesses the internet and if it is doing so in an out dated way it too is easier to compromise. Hackers often created “back doors” into people’s systems that use out dated software so make sure everything you are using is regularly updated.
5. Protecting your internet connection
It is amazing how many people still use no network security despite the ease with which internet security can be set up and instantly help with internet safety. If you are using wireless broadband then you need make sure you have a security key for it. Simply run set up on your router and choose the security options you want to adjust. Choosing a strong password will stop people hijacking your internet and being able to track your internet use.
4. Updating your antivirus software
New viruses are found on an HOURLY basis and virus removal software is updated on average two or three times a week. If you are using antivirus software (which you should be) then you need to update it at least once a week to protect yourself from new threats. I personally use Avast as I cannot risk a virus infection because my computer is used for important business.
3. Virus scans
Along with the above it’s amazing how many people don’t actually scan there computers regularly. If you use the internet regularly then you need to virus scan regularly. We would recommend you run a full scan at least once a week if you use the internet for more than 5 hours a week.
2. Safe browsing
Safe browsing is essential to keeping your computer secure. If you regularly visit dodgy websites, click advertisements and stream content then you are exposing yourself to high risk. If you think a site doesn’t seem quite right then leave and browse elsewhere. Always search through a reputable search engine and be wary of clicking advertisements.
1. Avoiding downloads
The biggest source of viruses and spyware online comes from downloads both legal and illegal. Whenever you are presented with the option to download something you should make sure you scan it for viruses and also check that the website is reputable by researching it through a search engine. With file transfer and sharing sites you should be extremely vigilant and generally should avoid downloading anything that is illegal.
Computer Gym
The best way to keep secure is to treat your computer as if it is a plant!  Attend to it regularly and care for it, clean it (software and hardware/ inside and out), and feed it the best nourishment in secure updates to maintain your hard-drive health

Wednesday, 1 October 2008

How to Disable Windows Logo Key

i was recently playing games and this nasty windos logo key keep annoying me , cause i often accidently clicked it , and i start to search a solution to solve my problem, and found the following article in microsfot website, and it did work, hope this helps, thanks!


CODE
http://support.microsoft.com/?kbid=181348




or in other articles, u can copy the following messages into ur notepad and save as *.reg, and use it..


Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,5b,e0,00,00,5c,e0,\
00,00,00,00

Next previous home