Skip to main content

Posts

Showing posts with the label samba

Samba Centos root share error - You do not have permission to access in windows

Description: You have a Centos PC and trying to access the root user's Desktop from a Windows PC. You can see the shared folder in the \Network\Centos_PC_IP, but can't access the folder when you double click. The pop window arise with a error - You do not have permission to access in windows \\CENTOS_IP\\root. Contact your network administrator to request access.   Solution:   First you need to check you samba settings in your centos pc by command -   testparm   After that you need to do a little change o your /etc/samba/smb.conf file. Find the folder you shared from root in this file. It will be like -- [root] path = /root/Desktop read only = No Change it to - [root]   force user = root force group = root  path = /root/Desktop read only = No  And restart the samba by -- /sbin/service smb restart   And you are d...

How to share (read/write) any folder with root permissions in centos 6 or linux

Question: Now a days many people like software developers uses 2 or more OS. So the people who have multiple PC's with different OS need to share the files or folder between them. So how? Solution: Requirement: i.  Samba ii. LAN connection Step 1. Install samba by giving command in centos console -    yum install samba Step 2. Configure samba by opening smb.conf  vi /etc/samba/smb.conf i. Create a workgroup in which you are going to share the files/folders. by default it is like - workgroup = MYGROUP change it to -                                  netbios name = your_host_name workgroup = workgroup because windows system has default group named as WORKGROUP . ii. Now create a shared resource , wher...