Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running Ubuntu 11.10 on my Virtual Machine as a web server. I've mounted the W:/ drive in Win 7 to my /www folder in Ubuntu.

I can read the files, but I'm not able to write to the files.

In Samba, I have created the following user:

<www-data> = "<www-data>" 

And given guest ok for the www folder:

[www]
comment = Ubuntu WWW area
path = /var/www
browsable = yes
guest ok = yes
read only = no
create mask = 0755
;directory mask = 0775
force user = www-data
force group = www-data

I've also run sudo chmod -R 755 www to make ensure correct rw access.

What am I missing in order to get write access to my ubuntu files from Windows?

share|improve this question
What does the logs say? – quanta Sep 4 '12 at 15:32
Which SMB user connects to the share? Is the user member of www-data? Are guests mapped to nobody? – Ansgar Wiechers Sep 4 '12 at 15:37
@AnsgarWiechers Where can see this? – Steven Sep 4 '12 at 15:39
@quanta which log file should I look at? – Steven Sep 4 '12 at 15:45
@Steven In the output of smbstatus -b. In /etc/group. In /etc/samba/smb.conf. – Ansgar Wiechers Sep 4 '12 at 15:46
show 6 more comments

closed as off topic by John Gardeniers, Brent Pabst, Scott Pack, SvW, Tom O'Connor Nov 9 '12 at 10:50

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

I can only guess without having the ls -l output of /var/www.

You are still under Unix type permissioning when accessing the file, thus unless the owner is correct (i.e. www-data) then you will not be able to access the directory and create files.

There is a bit of information missing here that would provide a clear picture of what is happening.

share|improve this answer
I'm able to access folder and read files. I'm just not allowed to write to the files. What more info do you need? – Steven Sep 5 '12 at 9:29

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