Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have set up a server with Samba and added a bunch of folders I wanted to be shared in this server. Till a week ago the server was okay, but somehow, I don't know how, it is no longer working. Can you help me?

Here is my configuration file:

    netbios name = illusion-server
    server string = illusion-server
    workgroup = illusion-pp
    security = user
    hosts allow =
    interfaces =
    bind interfaces only = yes
    remote announce =
    remote browse sync =
    printcap name = cups
    cups options = raw
    log file = /var/log/samba/samba.log
    max log size = 1000
    password level = 6
    unix password sync = yes
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    local master = no
    domain master = no
    os level = 33
    logon drive = m:
    logon home = \\%L\homes\%u
    logon path = \\%L\profiles\%u
    logon script = %G.bat
    name resolve order = wins lmhosts bcast
    dns proxy = no
    client use spnego = no
    client signing = no
    client schannel = no
    server schannel = no
    allow trusted domains = no
    obey pam restrictions = yes
    follow symlinks = no
    update encrypted = yes
    passwd chat timeout = 120
    username map = /etc/samba/smbusers
    passwd program = /usr/bin/passwd '%u'
    passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
    add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
    add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
    add group script = /usr/sbin/groupadd '%g'
    delete user script = /usr/sbin/userdel '%u'
    delete user from group script = /usr/sbin/userdel '%u' '%g'
    delete group script = /usr/sbin/groupdel '%g'
    add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
    machine password timeout = 120
    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431
    template shell = /dev/null
    winbind use default domain = yes
    winbind separator = @
    winbind cache time = 360
    winbind trusted domains only = yes
    winbind nested groups = no
    winbind nss info = no

    comment = Network Logon Service
    path = /home/netlogon
    locking = no
    strict locking = no
    valid users = illusion, nobody, rede, root, smbguest

    comment = All Printers
    path = /var/spool/samba
    printable = yes
    locking = no
    strict locking = no

    path = /media/DIGITAL-FILES
    comment = digitalfiles
    valid users = user1 smbguest daemon illusion
    read only = no
    available = no
    browseable = no
;   guest ok = no
    printable = yes
    locking = no
    strict locking = no

    path = /media/SERVER/illusion01
    comment = illusion01
    writeable = yes
;   available = yes
;   browseable = yes
    guest ok = yes
    printable = yes
    locking = no
    strict locking = no

    path = /media/SERVER/illusion02
    comment = illusion02
    writeable = yes
;   available = yes
;   browseable = yes
    guest ok = yes
    printable = yes
    locking = no
    strict locking = no

Now I used to have the IP for the server in but I know it has changed because when I go to terminal and ask for IP of this server, I get the following:

illusion@SERVER-ILLUSION:~$ nmblookup -I illusion-server
querying illusion-server on illusion-server<00>

I went to multiple Windows PC's or Mac's and no matter what I can't access

Can you figure out if something it's messed up within the configuration files?

share|improve this question
Not to directly answer your question, but you I'm assuming you are on a personal network connected to a router which gives out the IPs via DHCP. It would be wise to go into the router's configuration and manually assign the server an IP address that it will give it every time based on it's MAC address, that way you won't have to edit any config files pertaining to the server's IP. Also it might help resolve your issue. When you say you can't access, do you mean you can't access your SAMBA share that way ? (i.e. in windows explorer (or w/e you're using)) when you type \\\192.168.1. –  user163030 May 30 '13 at 11:51
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.