Search This Blog

Friday, December 23, 2011

HAPPY X' MAS

:)

How To Add Users To Your Samba Domain - PART13


Adding users to a domain has three broad phases. The first is adding a Linux user on the Samba server, the second is creating a Samba smbpasswd that maps to the new Linux user created previously, and the third is to map a Windows drive letter to the user's Linux home directory. Let's take a closer look:

Adding The Users In Linux

First, go through the process of adding users in Linux just as you would normally. Passwords won't be necessary unless you want the users to log in to the Samba server via telnet or ssh.

Create the user

To create the user, use the command:
[root@bigboy tmp]# useradd -g 100 peter

Give them a Linux Password

Giving them a Linux password is only necessary if the user needs to log into the Samba server directly. If the user does, use this method:
[root@bigboy tmp]# passwd peter
Changing password for user peter.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@bigboy tmp]#

Mapping The Linux Users To An smbpassword

Next, you need to create Samba domain login passwords for the user
[root@bigboy tmp]# /usr/bin/smbpasswd -a username password
The -a switch adds the user to the /etc/smbpasswd file. Use a generic password then have users change it immediately from their workstations in the usual way.
Remember the smbpasswd sets the Windows Domain login password for a user, which is different from the Linux login password to log into the Samba box.

Mapping A Private Windows Drive Share

By default, Samba automatically gives each user logged into the domain an H: drive that maps to the /home/username directory on the Linux box.

Mapping Using "My Computer"

If the auto-mapping doesn't work then try:
  1. Let the user log into the domain.
  2. Right-click on the "My Computer" icon on the desktop.
  3. Click on "Map Network Drive".
  4. Select a drive letter.
  5. Browse to the HOMENET domain, then the Samba server, then the user's home directory.
  6. Click on the check box "Reconnect at Logon", to make the change permanent

Mapping from the Command Line

If you find the "My Computer" method too time consuming for dozens of users or if the PC doesn't have the feature available, then you can use the command-line method and possibly make it into a script.
1. Create a master logon batch file for all users
[root@bigboy tmp]# vi /home/samba/netlogon/login.bat
2. Add the following lines to mount the user's share as drive P: (for private).
REM Drive Mapping Script
net use P: \\bigboy\
3. Make the file world readable using:
[root@bigboy tmp]# chmod 644 /home/samba/netlogon/login.bat
4. Linux and Windows format text files slightly differ. As the file resides on a Linux box, but will be interpreted by a Windows machine, you'll have to convert the file to the Windows format. Use the unix2dos command.
[root@bigboy tmp]# unix2dos /home/samba/netlogon/login.bat
unix2dos: converting file /home/samba/netlogon/login.bat
to DOS format ...
[root@bigboy tmp]#
5. The final step is to edit your smb.conf file's [global] section have a valid entry for the logon script parameter. This can be done using SWAT via the Globals menu.
[global]
  logon script = login.bat
Now your users will have additional disk space available on a Windows P: drive whenever they login.

Setup Microsoft Windows 2008 R2 Failover Cluster in VMware Workstation - PART1


Microsoft Windows 2008 R2 Failover Cluster
Here you can see how to setup Microsoft Windows 2008 R2 failover cluster in VMware Workstation.This article contains step by step method on Microsoft windows 2008 R2 failover cluster with freenas iscsi disks in VMware workstation just on your computer.  if you search on internet about setting up Windows 2008 R2 cluster in any desktop virtualization software, you can’t find it in one place.
Installation and setup procedure for MS windows 2003 cluster and earlier versions are available on internet, but not Windows 2008 or R2 failover cluster. Everybody including me stuck in one place while setting up Windows 2008 or R2 cluster in Virtualization environment, which is Cluster disk validation.  This is the main issue on MS windows 2008 R2 cluster in VMware workstation or Sun virtual box desktop virtualization software.
Windows 2008 and R2 failover clusters require SCSI-3 persistent reservation target disks as their cluster disks. Now question is how to setup SCSI-3 persistent reservation cluster disks in VMware workstation? I already wrote an article on setting up SCSI-3 persistent reservation cluster  iSCSI disksin VMware workstation using FreeNAS. Before continue reading this post, please read my previous article and create cluster disks in your VMware workstation according to cluster need.
Let’s start the installation and setup of Windows 2008 or R2 Failover cluster in desktop virtualization software VMware workstation.
Required Software
a)      VMware workstation
b)      Windows 2008 or R2 Operating System
c)       FreeNAS
Prerequisites setup
a)      Installation of Windows 2008 or R2 Operating System in VMware Workstation ( Three Windows 2008 R2 Server virtual machines required.  One as domain controller and other twos as cluster nodes)
b)      Setup domain on one server and join other two servers with domain. Use domain administrator login for servers. ( in this example, domain name is sysprobs.net and cluster server names are vm-clus1 and vm-clus2)
c)       Install failover cluster feature in two windows 2008 or R2 servers you are going to setup failover cluster in VMware workstation.
d)      Install second network card in both cluster servers. Give two separate IP addresses, so both servers can communicate through this network also. This network will be used as ‘heart beat’ network for both servers. Make sure, this network name is identical in both servers. (in this example, heart beat network named as ‘ internal’ on both servers)
e)      Create cluster disks in your FreeNAS virtual machine.   Read my previous post on creating SCSI-3 persistent reservation target iSCSI disks in FreeNAS.
( in this example,
Qurom disk – 512MB,
Storage disk1- 2GB,
Storage disk 2- 2GB,
Storage disk 3 – 2GB,
and Backup disk 4GB)
Microsoft Windows 2008 R2 Failover Cluster

Wednesday, December 21, 2011

Make Your PC Clients Aware Of Your Samba PDC (SAMBA) - PART12


There are many types of Windows installed on people's PCs and each version has its own procedure for joining a domain. The next sections show you how to add the most popular versions of Windows clients to your domain:

Windows 95/98/ME and Windows XP Home

Windows 9x machines do not implement full domain membership and therefore don't require machine trust accounts. Here's what you need to do:
  1. Navigate to the Network section of the Control Panel (Start ->Settings->Control Panel->Network)
  2. Select the Configuration tab
  3. Highlight "Client for Microsoft Networks"
  4. Click the Properties button.
  5. Check "Log onto Windows NT Domain", and enter the domain name.
  6. Click all the OK buttons and reboot!

Windows NT

For Windows NT, you must first create a manual Samba machine trust account as explained earlier, then follow these steps:
  1. Navigate to the Network section of the Control Panel (Start ->Settings->Control Panel->Network )
  2. Select the "Identification" tab
  3. Click the "Change" button
  4. Enter the domain name and computer name, do not check the box Create a Computer Account in the Domain. In this case, the existing machine trust account is used to join the machine to the domain.
  5. Click "OK". You should get "Welcome to <DOMAIN>" message as confirmation that you've been added.
  6. Reboot.
You can now log in using any account in the /etc/smbpasswd file with your domain as the domain name.

Windows 200x and Windows XP Professional

For the 200x and XP Professional varieties of Windows, create a dynamic Samba machine trust account, then go through these steps:
  1. Press the Windows and Break keys simultaneously to access the System Properties dialogue box.
  2. Click on the 'Network Identification' or 'Computer Name' tab on the top.
  3. Click the "Properties" button.
  4. Click on the "Member of Domain" button.
  5. Also enter your domain name and computer name and then click "OK"
  6. You will be prompted for a user account and password with rights to join a machine to the domain. Enter the information for your Samba administrator. In this home environment scenario, the user would be root with the corresponding smbpasswd password. Now, you should get a "Welcome to <DOMAIN>" message confirming that you've been added.
  7. Reboot.
Log in using any account in the /etc/smbpasswd file with your domain as the domain name.
Note: With Samba version 2 you may also have to make a few changes to your system's registry using the regedit command and reboot before continuing.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]
"requiresignorseal"=dword:00000000
"signsecurechannel"=dword:00000000

Friday, December 16, 2011

Is That Grinding Sound the Death of My Hard Drive?


Ericuse165 has a friend with a PC that's making a grinding noise. Eric asked the Hard Drives, NAS Drives, Storage forum for advice.

First, backup that hard drive. And I mean now! That drive could die any minute, and when it does, it will cost hundreds or even thousands of dollars to retrieve your files--if the files can be retrieved.

Do a full image backup of the entire drive, including all partitions. EASEUS Todo Backup andMacrium Reflect Free are both free and either one will do the job just fine. You'll need an external hard drive to back the images onto.

Both programs also have an option for creating a bootable CD from which you can restore the backup. Create that CD.

Backed up? Good. Now you need to determine if it’s the hard drive making the noise, or just a fan.

If the PC is a desktop, open it up, turn it on, and try to locate the location of the noise. If you can't, find yourself a hollow tube--the cardboard one from a used-up paper towel roll works. Holding one end of tube to your ear, point the other end to various locations in the PC, especially towards the hard drive and fans. You'll easily pinpoint the source of the grinding.

Laptops aren't that easy. If you feel comfortable opening yours, use the desktop instructions above. Otherwise, try to determine the location of the fan and the hard drive from the outside. The fan is probably near a vent. Most laptops are designed to make hard drives easy to remove and replace. If you can't find where the drive is located, check your model's online manual.

Once you know where everything is, use the cardboard tube method described above.

If the noise is coming from a fan, and the PC is open, look for something obstructing the fan. Remove it if you find it. If the fan is loose; tighten it. Otherwise, replace it.

But if a fan is making the noise, and you're not comfortable opening the laptop, bring it to a professional and explain the problem.

And if it really is the hard drive making the noise? Buy a new hard drive, install it, and restore Windows and your files from that image backup.

Read the original forum discussion.

Contributing Editor Lincoln Spector writes about technology and cinema. Email your tech questions to him at answer@pcworld.com, or post them to a community of helpful folks on the PCW Answer Line forum. Follow Lincoln on Twitter, or subscribe to the Answer Line newsletter, e-mailed weekly.