Announcement

Collapse
No announcement yet.

samba problems, networking problems?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    samba problems, networking problems?

    hey guys, i have been trying to setup a samba share on my newly installed kubuntu 10.10. i have followed several different how-tos on the web, trying to get a little something from each of them. i want to change my IP to static, but this is all that is present...

    Code:
    sudo kate /etc/network/interfaces
    Code:
    auto lo
    iface lo inet loopback
    i assume that since i am connected to the internet with this machine, and my samba shares are visible in other computers browsers, that eth0/eth1 should be present somewhere?

    secondly, from either mac os, winxp, or even other linux VM's, i cannot login to the share. i have added users, set/reset passwords, enabled users, and even used GADMIN to verify permissions. but i still get incorrect uname/pword when trying to login.

    Code:
    sudo kate /etc/samba/smb.conf
    Code:
    [global]
    workgroup = MSHOME
    interfaces = 192.168.2.1/8
    
    [drive_c]
    comment = C
    path = /home/chris/drive_c/
    read only = no
    create mask = 0600
    directory mask = 0700
    guest ok = yes
    valid users = chris,christopherhagmaier
    admin users = chris
    hosts allow = 192.168.2.0/5
    only user = yes
    Code:
    chris@chris-Dimension-4600i:~$ lscpu
    Architecture:     i686
    CPU op-mode(s):    32-bit
    CPU(s):        2
    Thread(s) per core:  2
    Core(s) per socket:  1
    CPU socket(s):     1
    Vendor ID:       GenuineIntel
    CPU family:      15
    Model:         3
    Stepping:       4
    CPU MHz:        2992.811
    L1d cache:       16K
    L2 cache:       1024K
    DISTRIB_RELEASE=10.10

    KDE 4.5.1

    GRUB
    Version: 0.97-29ubuntu60
    Description: GRand Unified Bootloader (Legacy version)

    any help or direction is appreciated.


    EDIT

    i thought i would also point out my current addressing scheme.

    DSL modem 192.168.1.1
    wireless router 192.168.2.1
    kubuntu box 192.168.2.2 (will be static)
    macbook 192.168.2.3
    xp laptop 192.168.2.4

    should it read?
    Code:
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth1 inet static
    address 192.168.2.2
    gateway 192.168.2.1
    netmask 255.255.255.0
    network 192.168.2.0
    broadcast 192.168.2.255
    is NOT going back to microshaft!

    #2
    Re: samba problems, networking problems?

    One thing at a time!

    First, static ip: Personally, ditch knetworkmanager all-together. It's basically a piece of crap (IMO). There are several threads on how to do it. Then, if you have a wireless card on a particular box, install wicd. If you have only ethernet, no need to install wicd. Edit /etc/network/interfaces to read
    Code:
    # The primary network interface
    auto eth0
    iface eth0 inet static
    address 192.168.2.2
    gateway 192.168.2.1
    netmask 255.255.255.0
    The reason your interfaces file is empty is because your network manager is controlling your device(s). Another opinion: unless there's some special reason to do so, you don't really have to have a static IP for samba's use. Just properly defined host names.

    As far as samba goes, could be lots of reasons. My smb.conf looks totally different than yours. Here's pertinent parts of mine - however, note I am using the LAMP server installation on a dedicated Ubuntu Server box, not my Kubuntu desktop.

    Code:
    [global]
        log file = /var/log/samba/log.%m
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        obey pam restrictions = yes
        map to guest = bad user
        encrypt passwords = true
        passwd program = /usr/bin/passwd %u
        passdb backend = tdbsam
        dns proxy = no
        netbios name = Smiths
        netbios aliases = server
        server string = %h server (Samba, Ubuntu)
        unix password sync = yes
        workgroup = WORKGROUP
        os level = 20
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
        usershare allow guests = yes
        max log size = 1000
        pam password change = yes
    
    [home]
        path = /mnt/home
        comment = Home Directories
        browsable = yes
        public = yes
        writable = yes
        security mask = 0700
        create mask = 0700
    
    [shared]
        path = /mnt/shared
        comment = Shared Files
        browsable = yes
        public = yes
        writable = yes
        inherit permissions = 0755
        create mask = 0755
        security mask = 0755
        guest ok = yes
    I remember workgroup being very important.

    Please Read Me

    Comment


      #3
      Re: samba problems, networking problems?

      Originally posted by oshunluvr
      One thing at a time!

      First, static ip: Personally, ditch knetworkmanager all-together. It's basically a piece of crap (IMO). There are several threads on how to do it. Then, if you have a wireless card on a particular box, install wicd. If you have only ethernet, no need to install wicd. Edit /etc/network/interfaces to read
      Code:
      # The primary network interface
      auto eth0
      iface eth0 inet static
      address 192.168.2.2
      gateway 192.168.2.1
      netmask 255.255.255.0
      The reason your interfaces file is empty is because your network manager is controlling your device(s). Another opinion: unless there's some special reason to do so, you don't really have to have a static IP for samba's use. Just properly defined host names.
      Had a huge problem sharing files from my Desktop. this seems to have solved it. I thought it was solved once before, so I'm crossing my finger hoping it doesn't get lost again.

      Comment

      Working...
      X