I was using debian squeeze and yesterday I did an upgrade to debian wheezy. Everything but samba is working fine.
When I connect to samba and login with the known users I do not have the rights to read and write. Before this was no problem.
The directory rights in /var/www (where I am trying to look into files):
drwxr-xr-x 7 www-data www-data 4096 aug 5 20:15 www-test/
The file rights within /var/www/www-test/:
-rw-r--r-- 1 www-data www-data 2112 aug 5 20:15 composer.json
I changed the rights in the directory to:
drwxrwxr-x
Now I can create files but, although I use for user = www-data the user will be root. So this is not a real option. Besides that I rather have it working like it would normally behave as if you didn't do a chmod/
I would like it to behave as I used to.
I did not change my smb.conf so can anyone have a look and help out to see why I cannot read and write files and why the force user does not work?
here is my smb.conf:
[global]
server string = %h server
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[var]
comment = var
path = /var/
valid users = bart-jan, root
admin users = bart-jan, root
write list = bart-jan, root
force user = www-data
force group = www-data