Ubuntu samba users and groups11/30/2023 ![]() You can also use existing user accounts on the Ubuntu server.Īfter adding a user, we set a password to be used with the Samba server. This will allow smbuser to access only the Samba shared directory and nothing else. ![]() We have created a new user with the nologin permission. In the previous recipe, we learned how to set up a public share, and in this recipe we have created a private share for a single user. Samba allows various different types of configuration for shared resources. On trying to open that directory, you will be asked for a Samba username and password: Save the changes to the configuration file and reload the Samba server: Next, edit the Samba configuration to add the preceding share: $ sudo chown smbuser:smbuser /var/samba/share/smbuser First, enter your sudo password, followed by the new password for your Samba account, and then verify the password:Ĭreate a shared directory for this user and change its ownership: Now, we need to allocate a Samba password to this new user. $ sudo useradd -d /home/smbuser -s /sbin/nologin smbuser You can use any existing account or add a new Samba only account with the following command. ![]() Make sure that the Samba server is installed and running.įollow these steps to add users to the Samba server:Ĭreate a new user account. You will need access to a root account or an account with sudo privileges. In this recipe, we will learn how to add authentication to the Samba server and password protect shared directories. In the previous recipe, we installed the Samba server and created a public share accessible to everyone.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |