Showing posts with label windows xp. Show all posts
Showing posts with label windows xp. Show all posts

19 December 2010

SAMBA and XP

I was trying to setup public shares (including a printer) and user secured shares on SAMBA, but kept running into problems where XP would not authenticate to the shares.


The first problem was an oversight on my part. I had 2 security settings in my [global] space.


[global]
security = user
.
.
.
security = share



The second problem was actually with XP. It was storing the guest password. I actually had to remove the stored shares using the command line.


net use \\192.168.1.10\jeff /delete




Here is my final smb.conf file:

[global]
security = user
username map = /etc/samba/smbusers
smb passwd file = /etc/samba/smbpasswd
guest ok = yes
guest account = nobody
workgroup = LINUX
server string = Samba Server %v
log file = /var/log/samba/log.%m
max log size = 50
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 127.0.0.1 192.168.1.0/24
hosts deny = 0.0.0.0/0
browseable = yes
map to guest = Bad User
domain logons = no

# follow symlinks
follow symlinks = yes
wide links = yes
unix extensions = no

#printers
printcap name = cups
printing = cups


[printers]
browseable = yes
printable = yes
public = yes
create mode = 0700
guest only = yes
use client driver = yes
path = /tmp

[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 0750
guest ok = no

[nas]
comment = move to here
path = /home/nas
read only = no
public = yes
guest ok = yes

[docs]
comment = documents
path = /home/docs
read only = no
guest ok = no





Don't forget to add passwords for users and enable them:

smbpasswd -a jeff
smbpasswd -e jeff


They also need to exist in your /etc/samba/smbusers file:

jeff = "jeff"

08 February 2010

How to repair a Windows XP installation

I came across a problem where windows XP would not boot, but would blue screen giving me a stop error about a registry hive file being un-readable. I could boot into safe mode with networking by pressing F8 at boot, but even after using system restore the system would boot normally once and then the problem would reappear.

So I created a slipstreamed XP SP3 CD using Autostreamer and then followed these simple steps:
  1. Place the CD in your CD Drive.
  2. Reboot or Turn on your PC.
  3. Press a key when prompted to boot from CD.
  4. Press ENTER to setup windows. You DO NOT want to use the Recovery Console.
  5. Accept the License and have setup search for existing installs.
  6. Select the windows installation directory (normally C:\WINDOWS).
  7. Hit 'R' to repair this installation. If this option does NOT appear Exit Setup immediately!
Now since I was using a SP3 slipstreamed CD, I got several file not found errors that I just skipped, but the install worked great!

Warnings:
  • This will require you to type in your Windows CD Key, so make sure you have it ready before you begin.
  • Always backup your data before proceeding!