Page 1 of 1

networking linux host to xp(guest) with samba problem

Posted: 17. Sep 2008, 01:56
by Connekt
I'm attempting to network together my linux host (ubuntu hardy) to my xp guest via samba. The main reason I want to do this is to access a physical drive (slave) formatted in NTFS. I've setup nearly everything until i hit a snag on the last step.

When I go to finish mapping the network drive, it pops up with connect to CONNEKTO (my xp box) with a login setup. I didn't put a password for this box and when i try to hit OK or type in my linux box password it just resets the field.

This is my smb.conf so far:

Code: Select all

[global]
    ; General server settings
    netbios name = Connekt
    server string =
    workgroup = HOME1
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

    passdb backend = tdbsam
    security = user
    null passwords = true
    username map = /etc/samba/smbusers
    name resolve order = hosts wins bcast

    wins support = no

    printing = CUPS
    printcap name = CUPS

    syslog = 1
    syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
    ;valid users = %S
    ;create mode = 0600
    ;directory mode = 0755
    ;browseable = no
    ;read only = no
    ;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
    ;path = /var/lib/samba/netlogon
    ;admin users = Administrator
    ;valid users = %U
    ;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
    ;path = /var/lib/samba/profiles
    ;valid users = %U
    ;create mode = 0600
    ;directory mode = 0700
    ;writeable = yes
    ;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
    path = /var/lib/samba/printers
    browseable = yes
    guest ok = yes
    read only = yes
    write list = root
    create mask = 0664
    directory mask = 0775

[printers]
    path = /tmp
    printable = yes
    guest ok = yes
    browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

[MyFiles]
    path = /dev/sdb1
    browseable = yes
    read only = no
    guest ok = yes
    create mask = 0644
    directory mask = 0755
    force user = connekt
    force group = connekt 
Linux Host is connekt, user (XPguest) being CONNEKTO, and both have the same password.

Question: Should my linux box ip be the local ip (in this case, 127.0.1.1)?
\\127.0.1.1\MyFiles (in Mapping)

As a side note the drive i'm attempting to share is "Unclean". Seeing as I do not have XP dual-booted (I just have it running as a guest through Virtualbox) I am attempting to share this in order to not only access the drive but hopefully defrag it in my XP guest to also be able to mount it in Linux. (If that makes sense)

I've also tried with Wins = Yes (I'm not really sure if I have Dynamic or Static), and with that setup it wouldn't connect to \\connekt\MyFiles, although with both setups I am able to see connekt on the workgroup.

I'll continue to toy around with it, but I hope someone here has done this before and can give me some insight as to why I can't access MyFiles.

Posted: 17. Sep 2008, 19:48
by Sasquatch
You cannot defrag network shares. Only direct hard drives can be defragged. You could use RAW disk access, but it's kinda risky.

Did you create a Samba user? Or at least enabled your own username? You can also access the drive using Shared Folders after you install the GA.