Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2004
    uk london

    basic samba stuff...

    Hi there i have a few issues with samba, hopefull a nice dude from here will help.
    I have debain installed and used the version of samba that came with apt get 2 days ago.
    I dont want the box to perfom any server functions yet just some basic file and printer stuff.
    from the windows pc i can connect to the share but when i try to copy the file explorer hangs...
    (ive tried adding random socket options but none seem to help)
    heres my samba.conf

    workgroup = uk
    domain master = no
    server string = st106349b
    log file = /var/log/samba/log.%m
    max log size = 50
    socket options = TCP_NODELAY
    hosts allow = 10.80.2.
    keepalive = yes
    readonly = no
    security = share

    path = /home/allusr_shr
    guest = yes
    public = yes
    writeable = yes
    printable = no

    Heres the log for the connecting client
    [2004/10/21 15:36:35, 1] smbd/service.c:make_connection_snum(64 ( connect to service all_usr_share initially as user nobody (uid=65534, gid=65534) (pid 803)
    [2004/10/21 15:38:13, 0] lib/util_sock.c:read_socket_data(384)
    read_socket_data: recv failure for 4. Error = Connection reset by peer
    [2004/10/21 15:38:13, 1] smbd/service.c:close_cnum(837) ( closed connection to service all_usr_share

  2. #2
    Just Joined!
    Join Date
    Nov 2004
    Even though samba has the dir set to writeable, etc... your local linux file permissions still have perceadence. Thus, you might want to create a local linux group, make all samba users, or those you wish to have access, members of that group, and give that group read/write/and Execute permissions to that folder like what is being done in the following examples (run as root, example group is allusr):
    chgrp -R allusr /home/allusr_shr
    chown -R g+rwx /home/allusr_shr

Posting Permissions

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