Hi,
well, thanks to this great firmware, by logging in via putty everything can be diagnosed perfectly so far.
The problem of adding shares via GUI still exists and I really have no clue why. Anything that I can check for?
fvdw: there is a file in the folder /etc/inc with name globals.inc in that file there is a line
"debug" => false
change false in true and reboot
now syslog is activated and you can find it in /var/log/messages
It should mentions when it fails to create a share
I did not get any error message. I am using IE9 with Win 7 Enterprise (EN), 64 Bit.
I also use win7 (ultimate) 64 bits and IE9, but have no problems :scratch Clicking on "Create" just seems to do nothing at all. Can I look into any log file to see whether something happens at all?
fvdw: I assume you mean create new folder button, that should open a new windwo where you can enter sharenamame and grant access per use. After clicking accept the share should be created.
see above for remark how to activate syslog and after trying to create a share look in syslog what happened (if you use winscp don't forget to clear caches as otherwise it will opne the the file it has in cache)
this what I see in syslog when creating a share with name test-fw
- Code: Select all
Jul 8 21:13:34 (none) local0.warn API[2012/07/08 22:13:34] nasapi.inc(27)[4817]: calling mrvlAddShare test-fw hallo private 1000 0 0 0 0
Jul 8 21:13:35 (none) local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/global ; USER=root ; COMMAND=/bin/mkdir -p /share/1000/test-fw
Jul 8 21:13:35 (none) local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/global ; USER=root ; COMMAND=/bin/chmod 0777 /share/1000/test-fw
Jul 8 21:13:36 (none) local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/global ; USER=root ; COMMAND=/usr/bin/smbcontrol nmbd reload-config
Jul 8 21:13:39 (none) local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/global ; USER=root ; COMMAND=/usr/bin/smbcontrol smbd reload-config
Jul 8 21:13:43 (none) local0.warn API[2012/07/08 22:13:43] nasapi.inc(541)[4817]: mrvlAddShare test-fw Return Code: 0
Jul 8 21:13:44 (none) local0.warn API[2012/07/08 22:13:44] nasapi.inc(27)[4817]: calling mrvlSetShareUsersPrivileges test-fw fvdw,full
Jul 8 21:13:45 (none) local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/global ; USER=root ; COMMAND=/usr/bin/smbcontrol nmbd reload-config
Jul 8 21:13:50 (none) local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/global ; USER=root ; COMMAND=/usr/bin/smbcontrol smbd reload-config
Share "public" is there with 0777 mask in "/share/1000" which are themselves with mask 0777. As root I could now manually add my shares the way I like it, no problem. "mount" lists (among others):
/dev/sda8 on /share/1000 type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
fvdw: ok so it seems to bemounted properly (rw) and with permissions 777 the firmware user (nobody) should be capabable to create a folderBy manually fine tuning some things I can now operate my new NAS "so là là" which is still much mich more than with the original firmware.
fvdw: indeed but all this should be possible by using the web interface What I did so far / did have to do via SSH as I could not via GUI:
* Added users into "/etc/passwd" with passwords containing special characters like "$", "#"
fvdw: after rebooting the /etc/passwd file will be recreated and using password as stored in the nas data base file, so the changes you made are overwritten* Manually adding them via "smbpasswd [user]" and setting the same password
fvdw: same as for passwd. It will be rewritten during reboot, you need to edit the nas database file to keep the passwords-> Hint: that perfectly works - so I see no need why this is limited on the GUI of the NAS???
fvdw: in the past we didn't have utf8 support, this was as it was implemented in the base firmware were we started from. But we will adapt it -> Hint: even comments on shares work with blanks in it - Samba allows this!
-> Question: does your PHP Code add the users and passwords at both locations (etc/passwd AND smbpasswd)? I am wondering as I initially could not connect with any of the new users to restricted shares under Win7.
fvdw: yes it does, dependent on the right you gran per user r/w, ro or no access-> Question: With German Umlauts the version of Samba which is installed seems to have problems. It looks like it cannot decode the password correctly (something like "MD4 decode problem" in the log file log.smbd).
Do you plan to integrate a much newer version of Samba (3.0.24 seems quite outdated). Especially due to Windows 7 support and maybe more bug fixes I would recommend to use a newer version anyway.
fvdw: plan yes, whether we will have sufficient time is something different* Manually adding the shares I want into "/usr/lib/smb.conf"
* Changing "/rw_fs/etc/nas_conf_db.xml" to UTF-8 encoding and then adding the passwords with special characters (i.e. in Notepad++ on Windows). Also adding the user rights and share names there to keep everything in sync for the case that once the GUI will accept it correctly.
-> Question: why is the password for the users stored there again? Is this needed to push them from here into "/etc/passwd" and via "smbpasswd"?
fvdw: at boot the the startup script reads the passwords form the database and creates passwd file and smbpassword file. This is done to be able to keep settings after firmware upgrade* Restarting the smbd to see whether everything is fine. Ok.
* After ensuring that restarting the NAS to see if it is still fine. Ok.
fvdw: this is strange passwd file should be recreated, it could work ok if you have edited the passwords as well in the nas database fileSo as conclusion: great stuff, great work - and great support here! High flexibility. If all of the above could be achieved via GUI I would really be happy!
But it's okay for me right now to login via SSH and do it manually.
fvdw: this should not be necessary the webgui should be capabable to to thisfvdw: so you can create users using the web interface , correct ? if so it means that the nas database file is writable for the webgui. Why it can not create shares is very odd, hopefully the syslog message gives some information