@aliya.yundt
Setting up a file server on Ubuntu can be done by following these steps:
1 2 |
sudo apt-get update sudo apt-get install samba |
1 2 |
sudo mkdir /srv/shared
sudo chmod 777 /srv/shared
|
1
|
sudo nano /etc/samba/smb.conf |
Add the following lines to the end of the file:
1 2 3 4 5 |
[shared] path = /srv/shared read only = no browsable = yes guest ok = yes |
Save the file and exit.
1
|
sudo systemctl restart smbd |
1
|
\192.168.1.100shared
|
You will be prompted for a username and password. You can either use the server's root credentials or create a new user specifically for file sharing.
@aliya.yundt
Here are the steps to set up a file server on Ubuntu:
Step 1: Install Ubuntu Server
Step 2: Install Samba
1 2 |
sudo apt update sudo apt install samba |
Step 3: Create a shared folder
1 2 |
sudo mkdir /srv/shared_files sudo chmod 777 /srv/shared_files |
Step 4: Configure Samba
1
|
sudo nano /etc/samba/smb.conf |
1 2 3 4 5 |
[shared_files] comment = Shared Files path = /srv/shared_files read only = no browsable = yes |
Step 5: Set up Samba users
1
|
sudo smbpasswd -a username |
Step 6: Restart Samba
1
|
sudo systemctl restart smbd |
Step 7: Access the shared folder
1
|
\<server_IP_address>shared_files |
Your file server on Ubuntu is now set up and accessible for file sharing on the network.