You are not logged in.

#1 2011-08-19 04:43:06

vikrang
Member
Registered: 2010-10-07
Posts: 67

samba config problem

Below is the smb.conf file (imported from a tutorial in ubuntu forums) which is the only one that works for me partially. I am able to view my windows (XP) shared folders in the KDE dolphin manager in Networks ..However I am not able to mount the share ..I get the error "Could not resove address for host VIKRAM : Unknown error" where VIKRAM is the XP computer's name.

From the other perspective , If I share a Linux folder and try to search in Windows network neighbourhood , I am not able to view any folder in the linux box..If I give the IP address to map the drive , it gives the error "could not find //192.168.1.2"

I have tried changing DHCP to static in host , but still it doesnt resolve the issue.. I have also tried utils like SMB4K , XSMBROWSER and SWAT ..I cannot figure how to get the 2 computers to talk to each other..

I have followed the ArchWiki to the letter, but stilll the same problem.(in fact I have a dual boot of Arch and Ubuntu because these are the most popular in terms of package availability as If anything is not available in either , it is not available anywhere in Linux world)

Also , many times , I am being asked for a username and password in which nothing seems to work! i have added a user to samba and If I give that , its not going thru!

[global]
    ; General server settings
    netbios name = YOUR_HOSTNAME
    server string =
    workgroup = YOUR_WORKGROUP
    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 = yes

    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 = /media/samba/
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = YOUR_USERNAME
    force group = YOUR_USERGROUP

Offline

#2 2011-08-19 06:06:39

vikrang
Member
Registered: 2010-10-07
Posts: 67

Re: samba config problem

I think I may be getting closer to the issue.. I am told that this error is becoz the name is not getting converted to IP and that giving IP address instead would solve the issue..This was told by my office network admin , but we have only NT server...So I do not understand how this would apply with Linux.

I dont remember If I ever did anything with the file /etc/hosts where I think you have to define the name and the IP... At the time of Arch install , I was a bit casual and didnt bother abt this part as at that time , there werent any necessity for a network

any hints?

Last edited by vikrang (2011-08-19 06:09:09)

Offline

#3 2011-08-20 06:04:04

vikrang
Member
Registered: 2010-10-07
Posts: 67

Re: samba config problem

[SOLVED]Problem was found to be due to AVIRA software in WIN.. Pl refer link for details

http://forums.linuxmint.com/viewtopic.p … 7&start=20

Last edited by vikrang (2011-08-20 06:04:33)

Offline

#4 2011-08-20 13:06:31

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: samba config problem

Please edit your first post and add [solved] to the title. Thanks.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB