0

I can see my /home directory with Windows 7 machine but I can only read it. There's no write permission.

  1. I created a user called tw8 with this command:

    sudo useradd -g users -G lp [nameofnewuser] -M

  2. Converted unix users from Webmin>Servers>Samba Windows File Sharing>Convert Users

  3. Created a share http://i.imgur.com/hm0Mc4X.png

  4. Security and access control of this share http://i.imgur.com/s7B99SH.png

  5. Files permissions of this share http://i.imgur.com/nw3z0MP.png

So any ideas what's wrong? Like I said I can browse what ever is inside /home folder but just can't seem to write.

  • There are setings for sharing hoe dirs in /etc/samba/smb.conf, basically, you uncomment a few lines, restart samba, and it's done. I hope someone knows what those screenshots are, I've never seen anything like that in Ubuntu, so it is probably something non-default. – mikewhatever Sep 13 '15 at 13:49
  • Those screenshots are from Webmin interface. – emrecnl Sep 13 '15 at 13:50
  • Please do NOT share home. I have several horror stories about companies doing that where Windows users did not know what all those files starting with dot are and decided to delete them. I know you know what they are but it is so damn easy to make a mistake where you mess up an important file used for the logging in into that user I would advice to never use /home/ as a share. – Rinzwind Sep 13 '15 at 14:39
  • @Rinzwind it's a closed home network. – emrecnl Sep 13 '15 at 15:14
  • @emrecnl so? Windows single user mentality should stay on Windows. In Linux you share a separate directory for users to use; not /home/ You will end up with a broken system whenever anyone from the Windows side decides to remove a crucial file in /home/ (Windows for instance also does not care for the hidden files in /home/*) – Rinzwind Oct 12 '15 at 13:46
0

Permissions in Samba are a mix of Samba permissions and unix permissions. In your case, I suppose the directory /home was already created when you decided to share it. Only, it belongs to a specific user (normally 'root'). You must then grant all users (Unix) write access to that directory. You can do it by using the Java file manager in webmin, by selecting the /home directory and clicking the 'Information' button. There, modify as appropriate.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.