Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any per
Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission. # cp /etc/fstab /var/tmp/ # chgrp admin /var/tmp/fstab # setfacl -m u:user1:rwx /var/tmp/fstab # setfacl -m u:user2:— /var/tmp/fstab # ls -l -rw-rw-r–+ 1 root admin 685 Nov 10 15:29 /var/tmp/fstab
Add users: user2, user3.
Add users: user2, user3. The Additional group of the two users: user2, user3 is the admin group Password: redhat # useradd -G admin user2 # useradd -G admin user3 # passwd user2 redhat # passwd user3 redhat
Add user: user1, set uid=601
Add user: user1, set uid=601 Password: redhat The user’s login shell should be non-interactive. # useradd -u 601 -s /sbin/nologin user1 # passwd user1 redhat
Add admin group and set gid=600
Add admin group and set gid=600 # groupadd -g 600 admin
Download ftp://192.168.0.254/pub/boot.iso to /root, and mounted automatically under /media/cdrom and which tak
Download ftp://192.168.0.254/pub/boot.iso to /root, and mounted automatically under /media/cdrom and which take effect automatically at boot-start. # cd /root; wget ftp://192.168.0.254/pub/boot.iso # mkdir -p /media/cdrom # vim /etc/fstab /root/boot.iso /media/cdrom iso9660 defaults,loop 0 0 # mount -a mount [-t vfstype] [-o options] device dir
Create a volume group,and set 8M as a extends. Divided a volume group containing 50 extends on volume group lv
Create a volume group,and set 8M as a extends. Divided a volume group containing 50 extends on volume group lv (lvshare), make it as ext4 file system, and mounted automatically under /mnt/data. And the size of the floating range should set between 380M and 400M. # fdisk # partprobe # pvcreate /dev/vda6 # vgcreate -s […]
Create a 512M partition, make it as ext4 file system, mounted automatically under /mnt/data and which take eff
Create a 512M partition, make it as ext4 file system, mounted automatically under /mnt/data and which take effect automatically at boot-start. # fdisk /dev/vda n +512M w # partprobe /dev/vda # mkfs -t ext4 /dev/vda5 # mkdir -p /data # vim /etc/fstab /dev/vda5 /data ext4 defaults 0 0 # mount -a
Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel
Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel available. # cat /etc/grub.conf # cd /boot # lftp it # get dr/dom/kernel-xxxx.rpm # rpm -ivh kernel-xxxx.rpm # vim /etc/grub.conf default=0
Create a volume group, and set 16M as a extends. And divided a volume group containing 50 extends on volume gr
Create a volume group, and set 16M as a extends. And divided a volume group containing 50 extends on volume group lv, make it as ext4 file system, and mounted automatically under /mnt/data. # pvcreate /dev/sda7 /dev/sda8 # vgcreate -s 16M vg1 /dev/sda7 /dev/sda8 # lvcreate -l 50 -n lvm02 # mkfs.ext4 /dev/vg1/lvm02 # blkid […]
Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set b
Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set between 280 and 320. (This logical volume has been mounted in advance.) vgdisplay (Check the capacity of vg, if the capacity is not enough, need to create pv , vgextend , lvextend) # lvdisplay (Check […]