Configure client to use ntp-server 192.168.0.4
|
1 |
# nano -w /etc/ntp.conf |
|
1 2 |
Add line: server 192.168.0.4 iburst |
|
1 2 3 4 |
Remove lines: server 0 .... server 1 .... server 2 .... |
|
1 2 |
# service ntpd restart # chkconfig ntpd on |
Resize logical volume (lv) mounted at /home
Reboot single usermode
Comment out /home in /etc/fstab
|
1 |
# init 1 |
Kill all services that are running by users other than root
|
1 2 |
# ps aux | grep -v "root" # killall -u |
List logical volumes, find mapper, resize removing 1 gigabyte (this includes filesystem resize):
|
1 2 3 |
# lvdisplay # ls -l /dev/mapper # lvresize -r -L-1G /dev/mapper/vg-somevg_lv-home |
mount ldap user
Configure ldap
|
1 |
# system-config-authentication & |
Test ldap
|
1 2 3 4 5 6 |
# getent passwd username # cat /etc/auto.master /home/guests /etc/auto.guests # cat /etc/auto.guests * -rw instructor.example.com:/home/guests/& |
Restart autofs
|
1 |
#service autofs restart; chkconfig autofs on |
Enable IP Forwarding
Open /etc/sysctl.conf file using a text editor, enter:
|
1 |
# nano -w /etc/sysctl.conf |
Set net.ipv4.ip_forward to 1, enter:
|
1 |
net.ipv4.ip_forward = 1 |
Save and close the file. Reload the changes by typing the following command:
|
1 |
# sysctl -p |
find files
find files under /home, its owner is user2 but is not in gourp user2, copy these file to /root/backup
|
1 2 |
# mkdir /root/backup # find /home -user user2 !-group user2 -exec cp -ar{} /root/backup \; |