Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Topic: How to Create shared folders in Ubuntu PC.
- What is samba according to google?
- Samba enables Linux / Unix machines to communicate with Windows machines in a network. Samba is open-source software. Originally, Samba was developed in 1991 for fast and secure file and print sharing for all clients using the SMB protocol. Since then it has evolved and added more capabilities
- - Access shared files in the same network
- - Hard Disk/Directory Sharing
- - Windows7/10/xp Android Linux
- - Access via network
- - Password-protected directory
- - Public Directory
- - User RS File on Play Store to access samba files https://play.google.com/store/apps/details?id=com.rs.explorer.filemanager&hl=en&gl=US
- ========= CREATE PASSWORD PROTECTED DIRECTORY
- # Install samba in Ubuntu
- $ sudo apt install samba -y
- # Start samba service
- $ sudo systemctl enable --now smbd
- $ sudo smbdpasswd -a demo
- # Check samba service status
- $ sudo systemctl status smbd
- # Create directory in home to share
- $ cd; mkdir shared
- # Create new user in samba
- $ sudo smbpasswd -a demo
- # Edit samba configuration file and enter the shared folder details
- $ sudo nano /etc/samba/smb.conf #add text at the end
- [Host_shared]
- path = /home/demo/shared
- read only = no
- valid users = demo
- # Reload Samba service
- $ sudo systemctl restart smbd
- # Access folder in linux
- smb://IPADDRESS/
- # Access folder in windows
- \\IPADDRESS
- ========= CREATE PUBLIC DIRECTORY
- # Create a directory shared_shared
- $ sudo mkdir shared_shared
- # Change owner permissions
- $ sudo chown nobody:nogroup shared_shared
- $ sudo chmod g+w,o+w shared_shared
- # Do the changes in Samba config file
- $ sudo nano /etc/samba/smb.conf # add at the end of file
- [Host_public]
- path = /home/demo/shared_shared
- guest ok = yes
- read only = no
- force user = nobody
- # Reload the samba service
- $ sudo systemctl restart smbd
- # Reload Samba service
- $ sudo systemctl restart smbd
- # Access folder in linux
- smb://IPADDRESS/
- Telegram post https://t.me/efxtv/2718
- EFXTV Hacking Channel (https://t.me/+O_PSFKW8-Lw0M2Rl)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement