Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to setup very simple file server with Samba.

Security is not concern, as server is only accessible from internal network that's why my configuration problem looks like this:

    guest account = dan
    netbios name = FS
    workgroup = WORKGROUP
    security = share
    smb ports = 139
    path = /storage2
    read only = no
    browseable = yes
    guest ok = yes

Unfortunaly I keep getting:

[2009/12/27 16:54:27, 0] smbd/service.c:make_connection_snum(1012) '/storage2' does not exist or permission denied when connecting to [storage2] Error was Permission denied

Though I can do:

[root@fs samba]# cd /storage2/
[root@fs storage2]# pwd

Both samba and system user dan exist

I can't understand what may be wrong with this simple configuration.

Thank You very much!

share|improve this question
up vote 1 down vote accepted

If you want to allow access by everyone try adding these 2 lines to the share

    create mode = 777
    directory mode = 777
share|improve this answer

Did you check the permissions on the directory itself as well? Look at the permissions of the directory with

ls -la /storage2/

Does the user "dan" have enough permissions?

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.