Andrew Tridgell wrote a SMB [server message block] client and server that he called Samba. Samba is a collection of Linux tools that allow you to communicate with windows systems over a network. Helps in browsing the network resources using host names by name resolution instead of DNS. File and printer sharing is probably the most attractive samba feature.
Packages :
Daemons :
Config file :
/etc/samba/smb.conf
Ports
Samba configuration
Samba configuration
Samba configuration
Samba configuration
The smb.conf file is The windows domain openedor the workgroup name now to edit. name can be given.
Samba configuration
This is the default screen showing the default network for accessing.
Samba configuration
The screen shows that the network 192.168.0 and 192.168.1 can access the samba server.
Samba configuration
At the end of the smb.conf file, shows the example of how to share the linux files.
Samba configuration
The tmp directory is shared to public(full access) as well as write the file.
The var directory is given as the user joe only can access the file from any windows operating system.
The previous example is used here as such like tmp and var directory.
Samba configuration
Password is set for accessing from Samba user name and password the windows stored in system. are operating /etc/samba/smbpasswd file.
Samba configuration
Samba configuration
Samba configuration
The user joe gets logged in by giving password for authentication. ls command is used to list the files shared.
Samba configuration
The screen viewing the listed files. mget command copy the file from shared directory to our machine.
Samba configuration
testparm command is used to show the shared directory of the samba server.
Samba configuration
NIS
files. -
Network information service. NIS stores administrative files in /etc/passwd, /etc/hosts etc., in DB
all
clients
that
are
NIS
client
daemon
(ypbind)
finds
server
for
its
/etc/sysconfig/network (common)
/etc/nsswitch.conf, (client) /etc/yp.conf Port : 111 (assigned by portmap)
Document Name CONFIDENTIAL
Define the NIS domain name that the NIS server will work for. Start the ypserv daemon.
In the /var/yp/Makefile file, set any NIS server options and specify the configuration
files to manage. Use ypinit to create the NIS versions of the configuration file.
NIS Configurations
Query is made to check whether the portmap and ypserv are installed. if not, install the packages
NIS Configurations
To set the nis domain name temporarily, nisdomainname command is used.
NIS Configurations
NIS Configurations
NIS Configurations
NIS Configurations
nopush options is set to true if there is no nis slave server.and it is set to false if there is a slave sever.
NIS Configurations
The minimum user and group Ids are set to 500.
MERGE_PASSWD is to true than the password file and the shadow file will be merge.
MERGE_GROUP is set to true than the group file and the gshadow file will be merge.
NIS Configurations
The files that are shared on the network are listed in the all.
NIS Configurations
This command create the nis database consisting of the nis configuration file.
NIS Configurations
Create a control access file named securents, which enables access by hosts to the nis server.
NIS Configurations
Here we are giving access all the hosts in the network 192.168.0.0 and the localhost.
NIS Configurations
NIS Configurations
NIS Configurations
Select the NIS option and enter the nis domain name and its ip address and press next.
NIS Configurations
Press ok to continue.
NIS Configurations
ypcat lists any NIS configuration file here we can see the password file.
NIS Configurations
ypmatch command is used to view a particular users entry in the configuration file. Open the auto.master file.
NIS Configurations
NIS Configurations
NIS Configurations
Mention the NIS server ip address and the home directory to be mounted.
NIS Configurations
Secure Shell Allows remote logins and remote command execution via secure encrypted connections.
Syntax:
ssh <username>@<hostname>
example.com specified here, enables the machines under example.com domain can access the remote login.
sshd : ALL entered above means that except example .com others are restricted to access.
Open ssh
Open SSH replaces common, insecure network communication skills.
Open ssh
Packages
openssh-clients, openssh-server
Daemons
sshd
Config. Files
/etc/ssh/*, $home/.ssh
Port
22
Open ssh
Open ssh
Open ssh
Keygen is used to generate public and private keys using DSA algorithm.
The generated public key is saved in id_dsa.pub file. The generated private key is saved in id_dsa file.
Open ssh
Open ssh
Create a file named authorized_keys in /root/.ssh directory and give full permission to the owner for .ssh Redirect the public key file directory . id_dsa.pub to the authorized_keys file.
Open ssh
Give read and write permission to owner for the file authorized file.
Open ssh
Now we can access the machine 192.168.0.21 remotely without knowing passwd using public key.
Thank You!