Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 have setup a samba share like this:

    path = /home/shared/
    comment = shared
    public = yes
    writable = yes
    printable = no

I can access it from windows, but when I upload files to it, the files I uploaded have the following permission:

-rwxr--r-- 1 nobody nobody 899381 Mar  7 11:59 letter17.rtf

What I would like to see is that, when a user accesses this share, the user acts as if he was a particular user of the samba server(say dave). So that he has access to files that 'dave' has access to, and the files he uploaded belongs to 'dave'.
which option do I use to achieve this?

share|improve this question

add this line to the [Global] section of smb.conf

guest account = dave
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.