Thank you, Buffalo Tech for the new Linkstation Pro Duo firmware v1.58 for LS-WVL/E which I have recently upgraded from.
uname -aLinux LS-WVL0XX 2.6.31.8 #1 Fri Apr 6 14:14:26 JST 2012 armv5tel unknown
However, I realize that when I try to create a new folder (read-and-write-able) for example "users" from the root of /mnt/array1 and try to make it accessible to Windows users via samba installed by default in LS-WVL, the Windows clients are only able to browse/read the folder and execute any file from it but they cannot write to it. Because of the issue, the Windows user will get "Access is denied" for error message "Unable to create new folder".
I think next time, the Linkstation firmware designer needs to make sure the smb.conf created at /etc/samba by LinkStation program /usr/local/sbin/nas_configgen should include samba parameter write list = <list of samba users and groups> when writeable = yes via Linkstation web GUI.
In addition, the newly created folder must be correctly assigned the correct Linux group permission when it is configured via Linkstation web GUI. The best is to use the default hdusers group since Linkstation will update the users under this group as well. The Linux user permission shall be default to root user with chmod -R 777.
/etc/samba/smb.conf
[users] comment = user personal folders path = /mnt/array1/users browsable = yes printable = no writable = yes valid users = user1, user2, @hdusers read list = user1, user2, @hdusers write list = user1, user2, @hdusers force create mode = 775 force security mode = 775 force directory mode = 777 force directory security mode = 777 csc policy = manual vfs objects = recycle, audit recycle:repository = trashbox recycle:keeptree = 1 recycle:versions = 1 recycle:directory_mode = 777 recycle:minsize = 1 audit:facility = LOCAL6 audit:priority = INFO
###users###
Suggested Linux user/group permission setup:
ls -al /mnt/array1/*drwxr-xr-x 9 root root 106 Jun 22 00:28 .drwxrwxrwx 8 root root 4096 Jun 21 22:41 ..dr-x------ 5 root root 52 May 28 2011 .hierophantdr-x------ 10 root root 136 Jun 16 10:38 .midbeansdrwx------ 2 root root 22 Jun 21 22:41 mt-daapddrwxrwxrwx 8 root root 140 Jun 21 22:27 sharedrwxr-xr-x 5 root root 41 Jun 16 01:10 spooldrwxrwxrwx 4 root hdusers 37 Jun 21 23:24 users
LinkStation samba view from a Windows SMB client
This configuraton must be persistent whenever Linkstation is rebooted.
Other related issue is that the users are also unable to do create a sub-folder under the newly created folder via Linkstation FTP service. It is probably due to incorrect user write permission setting for the FTP service by Linkstation.
Response: 257 "/array1/users" is the current directoryStatus: Creating directory '/array1/users/New directory'...Command: MKD New directoryResponse: 550 New directory: Permission deniedCommand: MKD /array1/users/New directoryResponse: 550 /array1/users/New directory: Permission denied
Currently, it is set as followed at /etc/proftpd/proftpd.conf by LinkStation program /usr/local/sbin/nas_configgen with duplicated names (bug?) when it should allowUser under hdusers and AllowGroup hdusers group as well...
/etc/proftpd/proftpd.conf<Directory /mnt/array1/users> <Limit ALL> DenyAll AllowUser admin,user1,user2 AllowGroup hdusers AllowUser user1,user2,user1,user2,nobody </Limit> <Limit READ> AllowUser admin,user1,user2 AllowGroup hdusers AllowUser user1,user2,user1,user2,nobody </Limit> <Limit WRITE> Order deny,allow DenyUser admin,user1,user2 DenyGroup hdusers DenyUser user1,user2,user1,user2,nobody DenyAll </Limit></Directory>
Thank you.
Related reference:
Custom Samba Configuration
SMB.CONF Parameters
Linux File & Folder Permissions
ProFTPD Example Configurations