Professional Documents
Culture Documents
Linux 2
Linux 2
$ su
Password:
# cd /home
Managing Processes
ps : To show all current users
ps -l
ps -a
ps aux :Tabular form with 11 columns having information about all processes
Creating Backup
# tar -cvf /tmp/etc.tar /etc
Create repository
# mkdir /repo
# cd /media/RHEL[tab]/P[tab]
# cp * /repo
#createrepo /repo
Working With User and Groups
# useradd [username]
# passwd [password]
# userdel [username]
# usermod [username]
# groupadd [groupname]
# groupdel [groupname]
Network Configuration
# cd /media/RHEL[tab]/P[tab]
# cd /home
# mkdir nfsserver
# cd nfsserver
(Press ctrl+c)
# chmod -R 777 .
# vi /etc/exports
(press i)
/home/nfsserver * (rw,sync)
:wq
# setenforce 0
# showmount -e 192.168.1.4
Client Side
Network Configuration
# cd /home
# mkdir nfsclient
# cd nfsclient
# ls
# cat nfsserverfile
DHCP Configuration
Nertwork Configuration
# cd /media/RHEL[tab]/P[tab]
# cp /usr/share/doc/dhcp*/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
# vi /etc/dhcp/dhcpd.conf
:se nu
Line 7- “it.com”
Line 8- server.it.com
Line 22 #
Line 28 #
Line 32 subnet 192.168.1.0 netmask 255.255.255.0
Line 34 #
:wq
# setenforce 0
Network Configuration
# ifconfig
FTP Configuration
# cd /media/RHEL[tab]/P[tab]
# rpm -ivh ftp*
# rpm -ivh vsftpd*
# vi /etc/vsftpd/vsftpd.conf
:se nu
Line 12: YES
Line 27: YES
Line 109: YES
:wq
#service vsftpd restart
# setsebool allow_ftpd_anon_write=1
# setsebool ftp_home_dir=1
# service vsftpd restart
# ftp 192.168.1.3
Name: ftp
Password: tahkur
ftp> ls-a
bye
# vi /etc/vsftpd/user_list
Name: ftp