AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Raspberry pi create new sudo user8/28/2023 ![]() The user must already exist on the system in this example, I'll use the default pi user: $ sudo smbpasswd -a piįrom another computer, access: smb:///, and enter the username and password you just configured. Scroll down the sshdconfig file to find the PermitRootLogin directive. And finally, use the nano text editor to edit the sshdconfig file: rootraspberrypi-zero :/home/pi nano /etc/ssh/sshdconfig. Then, change into the super user: piraspberrypi-zero : sudo su. Restart Samba so the new shared directory is available: $ sudo systemctl restart smbd First, login to your Raspberry Pi as pi: ssh piraspberrypi-zero.local. Configure Samba to share that directoryĮdit the Samba config file with sudo nano /etc/samba/smb.conf, and add the following: I won't deal with permissions in this post read the Samba docs for that. ![]() This is important, for obvious reasons: $ sudo apt install -y samba samba-common-binĬreate a shared directory $ sudo mkdir /mnt/mydrive/shared If you dont have them, you can connect to your. The pi user has super-user rights so we can switch to the root user. After the first boot, you will need to run sudo raspi-config yourself in order to configure the device. ![]() In it, I'm going to document how I create Samba (SMB) shares in Linux on a Raspberry Pi. If you have connected your Raspberry Pi with a screen and a keyboard you can skip this step and just login as pi. This is a simple guide, part of a series I'll call 'How-To Guide Without Ads'. man adduser for the manual sudo adduser user to actually add a user sudo adduser user group to add a user to a group Add an entry in /etc/sudoers similar to the pi entry to allow them administration privileges. Type the following command: sudo adduser Fill the information (home directory, password, etc.) Done.![]()
0 Comments
Read More
Leave a Reply. |