This means that because user1 has permissions to write to folder /home/user1 - he can do that, but in my case user2 has only read permissions to folder /home/user1 which means that he can only read it. This actually means only that if user has permission to write to this folder on server - this user can write to this folder using this network share. read only = no - allow to write to this share.hide dot files = yes - show dot files as hidden files in Windows.In other case you will need to know that this folder exists and you will need directly go to the \\myserver\user1. browsable = yes - we want to show this folder when user goes on \\myserver, so it will be listed. Install Samba Server Add shares to the config / adjust any config options you want Create and/or set passwords for SMB users Enable and (re)start the SMB.Let’s take a look on most interesting settings Assuming you want to mount your Samba scans on a Linux system, you need to do a few steps. It means you can access the folders present in Linux in one system from another system having Windows using Samba. Samba is a utility present in Linux that allows sharing of folders and printers across different operating systems over a network. In my case I have only two users on my Ubuntu server and I want to allow each user to see other users home directories in read-only mode (the same way as I configured AFP server in previous part). Start the Samba server service and enable it for restart: sudo systemctl start smb sudo systemctl enable smb Create a Samba user Create your Samba user and a password for it: sudo smbpasswd -a tux Enter your password at the prompt. 1 Not using Ubuntu 20.04 Choose a different version or distro. Comment = user1 path = /home/user1 browsable = yes hide dot files = yes read only = no create mask = 0775 directory mask = 0775 valid users = user1 user2 comment = user2 path = /home/user2 browsable = yes hide dot files = yes read only = no create mask = 0775 directory mask = 0775 valid users = user1 user2
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |