Announcement

Collapse
No announcement yet.

Need help with Samba Sharing configuration

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

    Need help with Samba Sharing configuration

    I can access my Windows shares from Kubuntu 14.04. but when I tried to access my shared directories from windows, windows sees them but prompts me for credentials to connect and I can't seem to find a combination taht works.

    Windows machine is "Maniac" and Kubuntu machine is "Tuxedo".
    The Windows user is Chris
    The Kubuntu user is chris with a different password
    workgroup is MON_RESEAU and configured on both machines

    Should I use credentials Maniac\Chris or Tuxedo\Chris for user Chris?

    Here's my testparm -s output, but I have no idea what I'm doing beyond changing the workgroup and netbios-name. Am I supposed to set up a Samba user in Kubuntu? How?

    Code:
    chris@Tuxedo:~$ testparm -s
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    [global]
            workgroup = MON_RESEAU
            server string = %h server (Samba, Ubuntu)
            server role = standalone server
            map to guest = Bad User
            obey pam restrictions = Yes
            pam password change = Yes
            passwd program = /usr/bin/passwd %u
            passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
            unix password sync = Yes
            syslog = 0
            log file = /var/log/samba/log.%m
            max log size = 1000
            dns proxy = No
            usershare allow guests = Yes
            panic action = /usr/share/samba/panic-action %d
            idmap config * : backend = tdb
    
    [printers]
            comment = All Printers
            path = /var/spool/samba
            create mask = 0700
            printable = Yes
            print ok = Yes
            browseable = No
    
    [print$]
            comment = Printer Drivers
            path = /var/lib/samba/printers
    chris@Tuxedo:~$

    #2
    looks like there is a log for each machine, /var/log/samba/log.maniac is full of error messages like this:

    Code:
    [2014/07/01 11:03:03.736163,  0] ../source3/param/loadparm.c:4365(process_usershare_file)
      process_usershare_file: stat of /var/lib/samba/usershares/video2 failed. Permission denied
    I just don;t know how to fix

    Comment


      #3
      Where can I get help on this? I have been banging my head on the wall trying to fix. Ask questions and help me learn, but I'm completely stuck

      Comment


        #4
        I've not had to do this personally. Some resources that may be of use:

        http://ubuntuguide.org/wiki/Kubuntu_...a_File_Sharing
        https://help.ubuntu.com/community/Samba

        Comment


          #5
          Hi let me tell you a hint, I think you forgot to generate a samba user and password to access the windows file.

          Anyway lets start with the procedure:

          1.Sudo apt-get install samba-doc samba samba-tools
          2. edit the samba config file in /etc/samba/smb.conf to meet your needs and create the folder you will share.

          Example:
          [Kira]
          comment = data
          writable = yes
          path = /home/kira
          browseable = yes
          admin users = kira


          Where Kira is my user.

          3.Now finally add your system user to samba.
          smbpasswd -a kira
          Pleased to help

          Comment

          Working...
          X