/etc/passwd
[..]
seagate:x:1000:1001:,,,:/mnt/seagate/:/bin/false
medion:x:1002:1003:,,,:/mnt/medion:/bin/false
seagate_ro:x:1001:1002:,,,:/mnt/seagate:/bin/false
wwwusr:x:1003:1005:,,,:/var/www:/bin/false
/etc/group
[..]
www-data:x:33:www-usr
seagate:x:1001:
medion:x:1003:
seagate_ro:x:1002:
wwwusr:x:1005:
pdbedit -L
[..]
wwwusr:1003:
medion:1002:
seagate:1000:
seagate_ro:1001:
/etc/samba/smb.conf
[global]
netbios aliases = refly1 refly2 refly3 refly4 refly5
workgroup = WORKGROUP
server string = %h server (Samba %v)
log file = /var/log/samba/log.%m
max log size = 1000
encrypt passwords = true
invalid users = root
socket options = TCP_NODELAY
security = user
unix extensions = yes
[homes]
comment = Home Directories
browseable = no
valid users = %S
writable = no
write list = seagate medion wwwusr
create mode = 0600
directory mode = 0700
testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
In windows explorer
M: \\refly2\medion
S: \\refly3\seagate
W: \\refly1\wwwusr
ls -ld /var/www
drwxr-xr-x 2 777 www-data 4096 Mai 9 13:29 /var/www
Problem:
Can not create, delete or rename files with wwwusr
. If I use seagate
, seagate_ro (ro = read only)
or medion
to access their home directories they do their job perfectly. So where is the problem?
To setup my samba I used this guide.
/var/www
?ls -ld /var/www
and provide result