HOW TO OPEN SHARE FOLDER OF WINDOWS PC ON UBUNTU PC
Step 1 - open Ubuntu PC Terminal by pressing button
Ctrl + Alt + T
Step 2 -- Update your Ubuntu OS by using command
sudo apt-get update
Step 3 -- Install samba on PC by using command
sudo apt-get install samba -y
Step 4 -- Check samba running status by using command
systemctl status nmbd
Step 5 -- Make two folder one for public share folder and one for private share folder as below
mkdir foldername
Step 6 -- Create samba user with system user name
sudo smbpasswd -a system_user_name
Step 7 -- Edit samba configuration file by using command
sudo nano /etc/samba/smb.conf
go to end of file
for example if created folder name is primms_folder then write below line of code
[primms_folder]
path = /home/primms/primms_folder
read only = no
valid users = primms
press ctrl+x then it will ask save Y/N.
If you want to save press Y, if not press N. And press enter to exit the editor.
Step 8 -- Restart samba service by using command
sudo systemctl restart smbd
Step 9 -- Go to Window OS go to file explorer
type IP Address of Ubuntu PC as below
if for example IP address 192.68.1.4 then type IP address in address bar as below
\\192.168.1.4
Enter Network Credentials
Type user and password of Ubuntu samba User and password
Step 10 -- Now to check create folder and file inside Ubuntu share folder.
Step 11 -- Create root user folder as public_folder by using command
sudo mkdir public_folder
write password of current user
Step 12 -- Check user profile of Ubuntu system by using command
ls -l
Step 13 -- Change ownership permission for public_folder from root permission to everyone like permission of windows by using command
sudo su
sudo chown nobody:nogroup public_folder
Step 14 -- Provide write permission to nobody and nogroup by using command
sudo chmod g+w,o+w public_folder
Step 15 -- Edit samba configuration file by using command
sudo nano /etc/samba/smb.conf
go to end of file
for example if created folder name is public_folder then write below line of code
[public_folder]
path = /home/primms/public_folder
guest ok = yes
read only = no
force user = nobody
press ctrl+x then it will ask save Y/N.
If you want to save press Y, if not press N. And press enter to exit the editor.
Step 16 -- Restart samba service by using command
sudo systemctl restart smbd
Comments
Post a Comment