samba journey
To set up /var/www
as a Samba share on your Ubuntu machine and allow file transfers, follow these steps:
1. Install Samba (if not already installed)
2. Backup the Samba Configuration
3. Edit Samba Configuration
Open the Samba config file in a text editor:
Scroll to the bottom and add this section:
Replace youruser
with your actual Ubuntu username.
4. Set Permissions
Make sure /var/www
has the correct permissions:
5. Create a Samba User
Samba users are separate from system users. Add your user to Samba:
You'll be prompted to set a password.
6. Restart Samba
7. Access the Share
From your local machine, you can now access the share:
- Linux/macOS:
- Windows:
- Open Explorer and enter
\\ubuntu-machine\www
- Log in with
youruser
and the Samba password.
- Open Explorer and enter
Comments
Post a Comment