If Samba is installed, the rpm command will generate output similar to the following: samba-3.5.4-68.el6_0.1.x86_64 To check whether Samba is installed, open a terminal window ( Applications -> System Tools -> Terminal) and run the following rpm command: rpm -q samba Unless you specifically requested that Samba be installed it is unlikely that you have Samba installed on your system. The default settings used during the CentOS 6 installation process do not install the samba package. In this chapter we will look at the steps necessary to share file system resources and printers on a CentOS 6 system with remote Windows and Linux systems. In addition to providing integration between Linux and Windows systems, Samba may also be used to provide folder sharing between Linux systems (as an alternative to NFS which was covered in the previous chapter). This is achieved using technology called Samba. In order for a CentOS 6 system to serve such resources over a network to a Windows system and vice versa it must, therefore, support SMB. Windows systems share resources such as file systems and printers using a protocol called Server Message Block (SMB). Similarly, shared folders and printers residing on Windows systems must also be accessible from CentOS based systems. It is a common requirement, therefore, that files on a CentOS 6 system be accessible to Linux, UNIX and Windows based systems over network connections. It is also extremely common for CentOS and Windows systems to be used side by side in networked environments. It is not surprising therefore that CentOS 6 has the ability to act as a file server. Learn more.Īlthough Linux is increasingly making inroads into the desktop market, its origins are very much server based. Purchase a copy of the fully updated CentOS 8 edition in eBook ($24.99) or Print ($36.99) formatĬentOS 8 Essentials Print and eBook (ePub/PDF/Kindle) editions contain 31 chapters and over 260 pages. I am still getting the same "Do not have permission to access" error in Windows when I try to connect it to the linux machine.You are reading a sample chapter from the CentOS 6 Essentials Essentials book. However, now I cannot even get the first part to work, that is, getting an anonymous share. So I deleted all the shared folders I created in /srv/samba, I deleted secure_group_smb using sudo groupdel secure_group_smb, and started over following the instructions in the tutorial linked earlier. I did everything else as instructed there, but when I tried to connect to the CentOS machine from Windows, I got the "Do not have permission to access" error message.Īfter googling around for a while I tried a bunch of stuff and I still got the same error. I used username (my existing CentOS administrator user) instead of linuxuser (a new user, which is what I think the tutorial is suggesting to do) I use this same group name in the smb.conf file laterĢ) At the point where the tutorial adds a user for samba server sudo useradd -g secure_group linuxuser The few things I did different from the linked tutorial when making a secure server are:ġ) At the point where it adds a secure group $ sudo groupadd secure_group I then tried making a secure server and ran into problems. There were some problems in the beginning but using hints from here it was ultimately fixed. The first half, creating an annonymous share (not secured) worked, as expected. I am trying to setup a Samba file sharing server in Centos 8
0 Comments
Leave a Reply. |