Saturday, March 22, 2008

Get Vista and Samba to work

Early adopters of Microsoft’s new Vista operating system may notice that it will not connect to Samba share folders out of the box. This will be a bit of a pain for many enterprise customers. The technical reason is because Microsoft Vista’s default security policy is to only use NTLMv2 authentication. According to a Google search Samba doesn’t support this yet.
Update: Some readers have pointed out that NTLMv2 authentication is supported in Samba 3.0. However, this certainly wasn't an option to get this running in my instance.
To get Vista to work with Samba follow the simple instructions below:
1. Open the Run command and type "secpol.msc".
2. Press "continue" when prompted by Vista.
3. Click on "Local Policies" --> "Security Options"
Vista and Samba4. Navigate to the policy "Network Security: LAN Manager authentication level" and open it.
5. By default Windows Vista sets the policy to "NTVLM2 responses only". Change this to "LM and NTLM – use NTLMV2 session security if negotiated".
Vista and SambaOnce you’ve done this Windows Vista will be able to view network drives based on Samba servers and should fix any issues around using Samba as a Primary Domain Controller.

----------- TRY THIS #1

You could simply use the default Vista settings and do the following:
On the *nix box (or ssh onto it) run

vi /etc/samba/smb.conf

then edit the smb.conf file to include the next lines in the GLOBAL section. Make sure the actual domain name (realm) is in UPPER CASE (i.e realm = MYDOMAIN.LOCAL)

idmap gid = 10000-20000
netbios name = yourmachinename
idmap uid = 10000-20000
workgroup = WORKGROUP
os level = 20
security = ADS
encrypt passwords = yes
winbind trusted domains only = yes
winbind enum users = no

Now on the *nix box enter:
/etc/init.d/smb restart
/etc/init.d/nmb restart -(if not restarted by smb)
/etc/init.d/winbind restart

net join -U administrator -S FQDN_of_Server

when requested enter the password and your samba will be a domain member.

----------- TRY THIS #2

KDE Control Panel Samba smb.conf editing utility and I find a tick box to enable NTLMv2, in Advanced tab > Security > Authentification tab .

----------- TRY THIS #3

If you're running a version of Vista that cannot use secpol.msc, you can edit the registry instead. Just change the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\LMCompatibilityLevel from a 3 to a 1.


I have a Centos 5 Server running Samba (latest Redhat SAMBA) which is a member server of a M$ Active Dir Domain and I have found that Vista running SP1 can not connect to any share if you use authenticated users in your SMB.conf eg valid users = domain+username This did work before SP1 was installed on Vista and it does still work on XP. If there is no permissions set on the share then you can go into the share. I have attached a copy of my SMB.conf.
Any help to fix this would be Great.

# Global parameters
workgroup = WORKGROUP
server string =
# security = domain
security = ADS
auth methods = sam, winbind
log file = /var/log/samba/%m.log
preferred master = No
wins server =
ldap ssl = no
default service = homes
idmap uid = 10000-20000
idmap gid = 10000-20000
template homedir = /home/winnt/%D/%U
template shell = /bin/bash
winbind separator = +
dns proxy = yes
winbind nested groups = yes

#for Vista compatibility
client lanman auth = no
client ntlmv2 auth = yes
domain logons = yes
path = /
valid users = "DC+lay" "DC+admin"
admin users = "DC+lay" "DC+admin"
write list = "DC+lay" "DC+admin"
path = /

Saturday, March 15, 2008

Why electrons move around nucleus?

Why electrons move around nucleus?
Are they alive?
What do they eat?
Is there any force that made them move?
Why they just be still?
Is gravity really a force made by electrons or is it the force that made them?
Particles make forces, forces make particles or both? Physic says both, but how?

I'll try to answer these questions.
Below is a simple story of life.

Matter and speed.
I can distinguish matter as matter type-0 like photons, matter type-1 like electrons and quarks, matter type-2 as atoms, matter type-3 living beings, type-4 are black holes and matter type-5 the universe or god it's self.

Matter type-0 is likely no matter at all made of energy only beings like photons. They travel a lot for ever until they are caught by matter type-1. They have "no sense" of time and space and they can move from one side of the space to another. As they are pure energy they only travel, but in some occasions they are trapped and they live like photons for a limited time or they produce matter type-1. Some of us call it "dark matter".
Existence:For ever
Size:None to nearly none

Matter type-1 consist of particles like electrons and quarks and is nearly everywhere, traveling with ultimate speed, exchanging from mass to energy and so forth.
Gravity is a force made by the process of migrating from one atom to another. It tries to belong to an atom, but it has nearly no sense of time and space. Most of it migrates in near by type-1 matter, that's why gravity isn't unlimited. This is their life. Death is became matter type-0.
Existence:Nearly for ever
Size:Very small
Speed:Speed of light
Looseness:Very high

Matter type-2 consists of gravitational particles like nucleus and atoms, that they cannot travel with unlimited speed and have a simple formation. Death is became matter type-1 or type-0.

Matter type-3 are living beings like virus or our selves. Death is to became matter type-2 or less.
Existence:Very limited
Speed:Very Limited
Looseness:Very small

Matter type-4 are black holes.
Existence:Nearly Unlimited
Needs:Self contained
Formation:Very Complex
Information:Very Complex
Looseness:Very little

Matter type-5 is the universe it has only formation but no speed. I think is immortal.
Needs:Self contained
Formation:Very Complex
Information:Very Complex

So formation = information? We need matter type-2 to distribute and expand information.
Is information a living being?

Friday, March 14, 2008


Sun Microsystems is planning to launch software and hardware that will allow her to create virtual PCs which execute Windows and Linux and the users might acquire access via desktop, laptops even mobile telephones.

Open source = Open Mind

My best of Open source: Linux, Firefox, MySQL, Apache, Asterisk, SOX, KDE, Konqueror, WikiMedia, Joomla,

Life equation by Albert Einstein:
Albert_Einstein(MyLife) {
 If(MyLife==Success in life)
  return (A(Work,Play,keep your mouth shut));
  return (B(Work,Play,keep your mouth shut));
A(x,y,z) {
B(x,y,z) {