0

OK, I have installed Ubuntu server 16.04 on a separate machine (with an account wijnand with password ) and mounted a removable hard disk for my website data on /media/alf4all. Configurated Apache2 so that the websate data is seen from Apache2. Added wijnand to the group www-data, change ownership of /media/alf4all to www-data:www-data and chmod of /media/alf4all to g+rwX. That works perfect. To edit the website data on my Windows machine, I have configurated Samba so that /media/alf4all is seen on my Windows machine. Questions: 1. Is the stategy around www-data OK? 2. What to do in smb.conf so that user wijnand logged in on the Windows machine with the same username and password can edit in /media/alf4all? 3. Is there a recommandation for this? Thanks and regards...

  • I do not have experience with Apache, but with respect to Samba I think you are referring to smbpasswd. On your SMB host issue: sudo smbpasswd wijnand and obviously: man smbpasswd for more details. – user680858 May 5 '17 at 15:50
  • I found a nice tutorial on Ubuntu documentation: help.ubuntu.com/community/… – Wijnand May 7 '17 at 12:46
  • I was only surprised that, if the username and password for Samba on the Ubuntu server is the same as on the Windows client site, there is no login session and the directory is direct accessible for editing. Is that normal? – Wijnand May 7 '17 at 12:51
  • There is no login session period. Samba shares local resources (folders, printers) to remote computers. The user in Samba must be present in the host system, but it can be a restricted user (askubuntu.com/questions/536977/create-a-user-for-samba-only-cli). The directory that is only shared as writable if you define it so. I.o.w. guest access read-only is one of many options. Have a look at this for more info: help.ubuntu.com/community/… – user680858 May 7 '17 at 13:11
  • Now I understand how it works. Reading manuals is not my best side... ;) Thanks and regards. – Wijnand May 8 '17 at 20:45

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.