Page 5 of 106 FirstFirst ... 345671555105 ... LastLast
Results 41 to 50 of 1059

Thread: HOWTO: Setup Samba peer-to-peer with Windows

  1. #41
    Join Date
    Dec 2005
    Location
    Vienna, Austria
    Beans
    155
    Distro
    Ubuntu

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Quote Originally Posted by cpk1 View Post
    I followed all the steps but samba still doesnt seem to be cooperating. In windows when I try to map the drive using \\roxxor\home\kateandalex\sharedsamba<snip>
    The mapping is wrong ...
    Could I bug you to try again with: \\roxxor\roxxorshared

    You need to use the name of the share as you specified inside the brackets...

    [roxxorshared] <--- THIS ONE HERE!!!
    path = /home/alexandkate/sambashared <--- *NOT* THIS!!!
    force user = alexandkate
    force group = alexandkate
    create mask = 0644

  2. #42
    Join Date
    Jul 2006
    Beans
    9

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    thank you for the quick reply, unfortunatly \\roxxor\roxxorshared gets the same result =\

    edit: sorry i forgot to mention i have swat installed but am not using it, but i am under the impression it wont change my .conf file unless i access the webpage?

  3. #43
    Join Date
    Dec 2005
    Location
    Vienna, Austria
    Beans
    155
    Distro
    Ubuntu

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Wait a moment ... I overlooked this one here ...

    Code:
    cpk1@roxxor:/etc/samba$ smbclient -L roxxor -U%
    Domain=[TEAMAWESOME] OS=[Unix] Server=[Samba 3.0.22]
    tree connect failed: NT_STATUS_LOGON_FAILURE
    AND

    Code:
    cpk1@roxxor:/etc/samba$ testparm
    Load smb config files from /etc/samba/smb.conf
    Processing section "[print$]"
    Processing section "[printers]"
    Processing section "[roxxorshared]"
    Loaded services file OK.
    WARNING: passdb expand explicit = yes is deprecated
    The first error message usually only shows up when a firewall (do you have Firestarter running?) is blocking the traffic or if eth0 and/or lo isn't up.

    EDIT: Did you add AND enable your useraccount in samba (NT_STATUS_LOGON_FAILURE)?

    The second error message is new to me ... did you specify that parameter inside your smb.conf (testparm doesn't show everything)? Hmm ... need to look into this.

    Please post the whole contents of your smb.conf!


    And about the access rights ...

    force group and force user has NOTHING to do with access rights to the share; it has to do with local filesystem permissions! The parameter you were thinking about is "valid users" (valid users = user1, user2, user3 ...)

    Without specifying "valid users =" ALL authenticated users will be able to access the share.

    -Storm
    Last edited by Stormbringer; July 19th, 2006 at 06:31 AM.

  4. #44
    Join Date
    Jul 2006
    Beans
    9

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    here is my full conf

    cpk1@roxxor:/etc/samba$ cat smb.conf
    [global]
    ; General server settings
    netbios name = ROXXOR
    server string =
    workgroup = TEAMAWESOME
    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

    [roxxorshared]
    path = /home/alexandkate/sambashared
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = alexandkate
    force group = alexandkatecpk1@roxxor:/etc/samba$

    not sure which account you mean when you say useraccount, i had alexandkate added and enabled when i first went through and just now added cpk1, still same output from smbclient -L roxxor -U% no firewall that I can see on ps aux, plus i think it would be blocking apache and mysql if there was one running. once again thank you for your direct help!

  5. #45
    Join Date
    Jul 2006
    Beans
    9

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    good news! got rid of everything and tried going through it all again and it worked! I think trying to use swat might have messed things up? That or I just made a typo/mistake and didnt notice it. I wasnt able to map the drive in windows by start > right click my computer > map network drive. I just found my linux box in network places and mapped it from there, login worked and everything! thank you for the help and the well written guide!

  6. #46
    Join Date
    Apr 2005
    Location
    Canada
    Beans
    245
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Quote Originally Posted by Stormbringer View Post
    No, you mustn't have the same login/password - it's just a recommendation to keep things simple.

    Only IF you have the same useraccounts on, to follow your example, your desktop and laptop life would be a lot easier if both accounts would have the same passwords.
    Ok, now I think I understand the trick with the accounts.
    On my home network I have a desktop (running ubuntu only) and a laptop (running XP and ubuntu in dual boot).
    On my laptop, I have the same login/pswd for ubuntu and for XP (let say it's lap/xxx) and on my desktop i have the following login/pswd : desk/yyy.
    My problem is : I can access the share folder I created on my desktop from my laptop under ubuntu ... but not under XP (same IP for XP and ubuntu on the laptop btw).
    I really don't understand. Just to be sure I removed the firewall on my XP box ... and nothing changed.
    Do you think the problem can be caused by the fact that XP is a smb server by itself ?

  7. #47
    Join Date
    Apr 2005
    Location
    Canada
    Beans
    245
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    I have done a little bit of XP network configuration using the XP's network wizard, and I disabled all the shared folders ... then suddenly the shared folder from my desktop appeared.
    So the problem was really to have XP as a smb server on the same network.
    Looks like my problem is solved

  8. #48
    Join Date
    Jul 2006
    Beans
    5

    Question Re: HOWTO: Setup Samba peer-to-peer with Windows

    hi Stormbringer

    tnx 4 givin such a good help.
    u make samba so easy dat any novice user can configure it .

    bt i hv 1 doubt dat i want to add group.

    i hv tried dat with followin commands

    groupadd -r groupname
    adduser -r -g trust -d/dev/null/-s/dev/null compname$

    which we always use in redhat linux
    bt. not workin in ubuntu

    and 1 more thing i wanna make MSHOME as domain rather than workgroup.
    what changes i hv to make in smb.conf?

    i tried dat with



    domain master = yes

    bt. not getin.

    pls........... help me out.
    tnx

  9. #49
    Join Date
    Jul 2006
    Location
    Kent, UK
    Beans
    46
    Distro
    Ubuntu 6.06

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    I've just found this thread & wanted to say thank you

    You've just solved 25% of my ubuntu issues & made me look really clever in front of my boss.

    Cheers!

    Justice
    Duel boot XP & Linspire installed Ubuntu on work PC cause I was told to 'because it's free' no idea what I'm doing - only programing experience is BASIC from back in 1987.

  10. #50
    Join Date
    Feb 2006
    Beans
    151
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Worked great for me only question is how does one tie in a mac into this server (seeing as mac sort of runs on unix)?
    Never let your sense of morals prevent you from doing what's right.
    Isaac Asimov

Page 5 of 106 FirstFirst ... 345671555105 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •