Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Samba error??

  1. #1
    Join Date
    Aug 2011
    Beans
    95
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Samba error??

    Hey guys,

    For some reason when I try to copy something to my server from a windows side I keep getting the error message. I followed https://help.ubuntu.com/10.04/server...ileserver.html

    and had a question on the part where it is workgroup = EXAMPLE ... security = user
    i put where it says example workgroup so ... worgroup=workgroup and kept
    security the same way cause I was not sure. other than that this is my share
    Code:
    [share]
    
            comment = where window files will be stored
            path = /home/bstrizzy/share
            browsable = yes
            guest ok = yes
            read only = no
            create mask = 0755

    why still error?!
    Last edited by CharlesA; January 23rd, 2013 at 07:11 PM. Reason: code tags

  2. #2
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Samba error??

    What is the error message?

    What are the permissions of the folder?

    Code:
    ls -al /home/bstrizzy/share
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  3. #3
    Join Date
    Aug 2011
    Beans
    95
    Distro
    Ubuntu 12.04 Precise Pangolin

    Exclamation Re: Samba error??

    Quote Originally Posted by volkswagner View Post
    What is the error message?

    What are the permissions of the folder?

    Code:
    ls -al /home/bstrizzy/share
    bstrizzy@nova:~$ ls -al /home/bstrizzy/share
    total 8
    drwxr-xr-x 2 nobody nogroup 4096 2013-01-22 15:35 .
    drwxr-xr-x 10 bstrizzy bstrizzy 4096 2013-01-22 15:35 ..

    and the error message that comes up says that the file has encountered 1 error and thats it

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Samba error??

    Look in /var/log/samba to see the log files.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Samba error??

    Quote Originally Posted by BStrizzy View Post
    bstrizzy@nova:~$ ls -al /home/bstrizzy/share
    total 8
    drwxr-xr-x 2 nobody nogroup 4096 2013-01-22 15:35 .
    drwxr-xr-x 10 bstrizzy bstrizzy 4096 2013-01-22 15:35 ..

    and the error message that comes up says that the file has encountered 1 error and thats it
    Run this one instead:

    Code:
    ls -ld /home/bstrizzy/share
    The permissions are odd for "." which is the current directory.

    Quote Originally Posted by SeijiSensei View Post
    Look in /var/log/samba to see the log files.
    +1.

    Also running this helps check for problems:

    Code:
    testparm -s
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #6
    Join Date
    Aug 2011
    Beans
    95
    Distro
    Ubuntu 12.04 Precise Pangolin

    Exclamation Re: Samba error??

    Quote Originally Posted by CharlesA View Post
    Run this one instead:

    Code:
    ls -ld /home/bstrizzy/share
    The permissions are odd for "." which is the current directory.



    +1.

    Also running this helps check for problems:

    Code:
    testparm -s
    bstrizzy@nova:~$ cd /var/log/samba
    bstrizzy@nova:/var/log/samba$ ls
    cores log.bstrawt-pc log.nmbd.4.gz log.smbd.2.gz
    log.192.168.1.101 log.greg-pc log.nmbd.5.gz log.smbd.3.gz
    log.192.168.1.103 log.jonny-pc log.nmbd.6.gz log.smbd.4.gz
    log.192.168.1.104 log.nmbd log.nmbd.7.gz log.smbd.5.gz
    log.192.168.1.107 log.nmbd.1.gz log.panama log.smbd.6.gz
    log.192.168.1.108 log.nmbd.2.gz log.smbd log.smbd.7.gz
    log.192.168.1.109 log.nmbd.3.gz log.smbd.1.gz
    bstrizzy@nova:/var/log/samba$ ls -ld /home/bstrizzy/share
    drwxr-xr-x 2 nobody nogroup 4096 2013-01-22 15:35 /home/bstrizzy/share
    bstrizzy@nova:/var/log/samba$

    bstrizzy@nova:/var/log/samba$ testparm -s
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
    Processing section "[printers]"
    Processing section "[print$]"
    Processing section "[share]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    [global]
    server string = %h server (Samba, Ubuntu)
    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

    [printers]
    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    printable = Yes
    browseable = No
    browsable = No

    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers

    [share]
    comment = where window files will be stored
    path = /home/bstrizzy/share
    read only = No
    create mask = 0755
    guest ok = Yes

  7. #7
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Samba error??

    It appears the Ubuntu how to conflicts other Server Docs "Securing a SAMBA file and print server"


    According the the link above you should have:
    Code:
    security = share
    When SeijiSensei said "Look in /var/log/samba to see the log files" you were supposed to actually look inside the relevant files not just the directory. Perhaps reading on of the files matchin the ip address of you client would help.
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  8. #8
    Join Date
    Aug 2011
    Beans
    95
    Distro
    Ubuntu 12.04 Precise Pangolin

    Exclamation Re: Samba error??

    Quote Originally Posted by volkswagner View Post
    It appears the Ubuntu how to conflicts other Server Docs "Securing a SAMBA file and print server"


    According the the link above you should have:
    Code:
    security = share
    When SeijiSensei said "Look in /var/log/samba to see the log files" you were supposed to actually look inside the relevant files not just the directory. Perhaps reading on of the files matchin the ip address of you client would help.
    ok gotchya. I understand what you are trying to say reading one of the files for the matching ip address. I was hoping to make the samba share folder availible for any i.p.
    I am really the only one using the home server so I really just need it for me but I also access my server externally. opened up port 22. would making a samba share via webmin be easier for my situation? or it really shouldnt matter right because of the logic behind it all

  9. #9
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Samba error??

    SAMBA is designed for local LAN access and is not secure for exposing to WAN.

    If you have opened port 22 on your machine to the outside world, it is best to use key authentication, disable root ssh access and disable password ssh auth.

    At the very minimum you should have disabled root ssh access or have a super strong password.


    I'm curious if you have samba working locally by changing the security = share?

    What type of client are you connecting to the server with? If you are using a Linux client, you can simply use ssh or sftp for file level access.

    Ubuntu desktop has a builtin client to connect via ssh/sftp.

    From Nautilus:
    > File > Connect to Server > enter server name or ip address > choose SSH as type (port 22) > leave folder as / or change to /home/shares/documents > enter username and password and connect.

    You can use this method from outside you lan by substituting the servers external ip address.
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  10. #10
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Samba error??

    If you are the only user that needs access to the SAMBA server why not setup the secure method and add yourself to the samba users, change the folder permissions to owner = yourusername.

    To add yourself as a samba user:

    Code:
    smbpasswd username
    If /home/shares/documents is not a separate partition, I'll assume /home has enough available space for your file share. You can just use the [homes] section of smb.conf which will allow you to share your entire home directory.
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •