Samba

Discussion in 'Linux, BSD and Other OS's' started by Willz, Nov 28, 2006.

  1. Willz

    Willz MiCrO$oFt $uK$ :D

    Likes Received:
    36
    Trophy Points:
    48
    Hi, i am trying to share a partition in Kubuntu Linux with my windows computers, the partition is an NTFS partition, i cant format it and make it a Linux partition due to the fact that i have too much stuff on it and have no means of backing it up. So how do i share them, or even get the widnows computers to see the Linux computer?, i guess changing the part in the smb.config (i think thats the name of the file) that is Workgroup = ( ) to Workgroup = Workgroup, but the thing is, i cant change the file as i dont have permissions, i guess i gotta be logged in as root, i logged out and tried to logg in as root but Kubuntu does not allow root loggins.
     
  2. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
  3. Willz

    Willz MiCrO$oFt $uK$ :D

    Likes Received:
    36
    Trophy Points:
    48
    Ok, done it, i can now see the computer in My network Places, i have shared the partition (media/hda1) i open up CELERY (the computer name) in My Network Places, then i click on my files, it says its not accesible and that i might not have permission to use this network resource and that the group name could not be found.
     
  4. Willz

    Willz MiCrO$oFt $uK$ :D

    Likes Received:
    36
    Trophy Points:
    48
    Code:
    [global]
        ; General server settings
        netbios name = CELERY
        server string =
        workgroup = 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 = /home/samba
        browseable = yes
        read only = no
        guest ok = yes
        create mask = 0644
        directory mask = 0755
        force user = Will
        force group = Will 
     
  5. Willz

    Willz MiCrO$oFt $uK$ :D

    Likes Received:
    36
    Trophy Points:
    48
    Any ideas whats wrong?, there must be some way to get it working :(
     
  6. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Could be a Windows issue, since samba seems to be working ok. Also check that you've correctly added the samba users to use the resource.
     
  7. Willz

    Willz MiCrO$oFt $uK$ :D

    Likes Received:
    36
    Trophy Points:
    48
    How do i check, i dont see what i could of done wrong though :s
     
  8. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    You have to create a Samba user who belongs to a group which has at least read access to the share in question. Also, the media must actually be mounted; I don't think you can share a raw device.
     
  9. Willz

    Willz MiCrO$oFt $uK$ :D

    Likes Received:
    36
    Trophy Points:
    48
    The device cant be raw, i can access it, and all my files are in there which indicated its mounted ?

    I found a guide to make all users able to access it, so i did that, changed the path, now its saying the same user is connected more than ones :s, but it is'nt, whats wrong now?
     

Share This Page