linux下創建VG並增加

[root@app_mf ~]# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00044402

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       13055   104344576   8e  Linux LVM

Disk /dev/sdb: 536.9 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_swap: 16.9 GB, 16911433728 bytes
255 heads, 63 sectors/track, 2056 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_home: 36.2 GB, 36247175168 bytes
255 heads, 63 sectors/track, 4406 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@app_mf ~]# vgs
vgs      vgscan   vgsplit  
[root@app_mf ~]# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "VolGroup" using metadata type lvm2
[root@app_mf ~]# lvscan
  ACTIVE            '/dev/VolGroup/lv_root' [50.00 GiB] inherit
  ACTIVE            '/dev/VolGroup/lv_home' [33.76 GiB] inherit
  ACTIVE            '/dev/VolGroup/lv_swap' [15.75 GiB] inherit
[root@app_mf ~]# 
[root@app_mf ~]# 
[root@app_mf ~]# ls
anaconda-ks.cfg  Desktop  Documents  Downloads  install.log  install.log.syslog  Music  Pictures  Public  Templates  Videos
[root@app_mf ~]# ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sdb
[root@app_mf ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xdce240ae.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-65270, default 1): 
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-65270, default 65270): 
Using default value 65270

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@app_mf ~]# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00044402

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       13055   104344576   8e  Linux LVM

Disk /dev/sdb: 536.9 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdce240ae

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       65270   524281243+  83  Linux

Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_swap: 16.9 GB, 16911433728 bytes
255 heads, 63 sectors/track, 2056 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_home: 36.2 GB, 36247175168 bytes
255 heads, 63 sectors/track, 4406 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@app_mf ~]# ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sdb  /dev/sdb1
[root@app_mf ~]# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00044402

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       13055   104344576   8e  Linux LVM

Disk /dev/sdb: 536.9 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdce240ae

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       65270   524281243+  83  Linux

Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_swap: 16.9 GB, 16911433728 bytes
255 heads, 63 sectors/track, 2056 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_home: 36.2 GB, 36247175168 bytes
255 heads, 63 sectors/track, 4406 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@app_mf ~]# fdisk /dev/sdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@app_mf ~]# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00044402

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       13055   104344576   8e  Linux LVM

Disk /dev/sdb: 536.9 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdce240ae

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       65270   524281243+  8e  Linux LVM

Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_swap: 16.9 GB, 16911433728 bytes
255 heads, 63 sectors/track, 2056 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_home: 36.2 GB, 36247175168 bytes
255 heads, 63 sectors/track, 4406 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@app_mf ~]# pvs
pvs     pvscan  
[root@app_mf ~]# pvscan
  PV /dev/sda2   VG VolGroup   lvm2 [99.51 GiB / 0    free]
  Total: 1 [99.51 GiB] / in use: 1 [99.51 GiB] / in no VG: 0 [0   ]
[root@app_mf ~]# pvcreate /dev/sdb1
  Writing physical volume data to disk "/dev/sdb1"
  Physical volume "/dev/sdb1" successfully created
[root@app_mf ~]# pvscan
  PV /dev/sda2   VG VolGroup        lvm2 [99.51 GiB / 0    free]
  PV /dev/sdb1                      lvm2 [499.99 GiB]
  Total: 2 [599.50 GiB] / in use: 1 [99.51 GiB] / in no VG: 1 [499.99 GiB]
[root@app_mf ~]# pvdisplay /dev/sdb1
  "/dev/sdb1" is a new physical volume of "499.99 GiB"
  --- NEW Physical volume ---
  PV Name               /dev/sdb1
  VG Name               
  PV Size               499.99 GiB
  Allocatable           NO
  PE Size               0   
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               1yLeK9-ikD0-pReB-Px6Q-bmha-3Gc8-vG4kgN
   
[root@app_mf ~]# vgcreate ftpvg /dev/sdb1
  Volume group "ftpvg" successfully created
[root@app_mf ~]# vgdisplay ftpvg
  --- Volume group ---
  VG Name               ftpvg
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               499.99 GiB
  PE Size               4.00 MiB
  Total PE              127998
  Alloc PE / Size       0 / 0   
  Free  PE / Size       127998 / 499.99 GiB
  VG UUID               zCxsZ6-oKK0-GRSb-urkD-KL27-G9LN-lbNqqj
   
[root@app_mf ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G  4.6G   43G  10% /
tmpfs                  16G     0   16G   0% /dev/shm
/dev/sda1             485M   55M  405M  12% /boot
/dev/mapper/VolGroup-lv_home
                       34G  176M   32G   1% /home
[root@app_mf ~]# vgscan 
  Reading all physical volumes.  This may take a while...
  Found volume group "ftpvg" using metadata type lvm2
  Found volume group "VolGroup" using metadata type lvm2
[root@app_mf ~]# lvcreate -L 500G -n lvftp ftpvg
  Volume group "ftpvg" has insufficient free space (127998 extents): 128000 required.
[root@app_mf ~]# lvcreate -L 450G -n lvftp ftpvg
  Logical volume "lvftp" created
[root@app_mf ~]# lvc
lvchange   lvconvert  lvcreate   
[root@app_mf ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G  4.6G   43G  10% /
tmpfs                  16G     0   16G   0% /dev/shm
/dev/sda1             485M   55M  405M  12% /boot
/dev/mapper/VolGroup-lv_home
                       34G  176M   32G   1% /home
[root@app_mf ~]# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00044402

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       13055   104344576   8e  Linux LVM

Disk /dev/sdb: 536.9 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdce240ae

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       65270   524281243+  8e  Linux LVM

Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_swap: 16.9 GB, 16911433728 bytes
255 heads, 63 sectors/track, 2056 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_home: 36.2 GB, 36247175168 bytes
255 heads, 63 sectors/track, 4406 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/ftpvg-lvftp: 483.2 GB, 483183820800 bytes
255 heads, 63 sectors/track, 58743 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@app_mf ~]# mount /dev/mapper/ftpvg-lvftp /tmp/ftp
mount: you must specify the filesystem type
[root@app_mf ~]# mke2fs -j /dev/
Display all 206 possibilities? (y or n)
[root@app_mf ~]# mke2fs -j /dev/vga_arbiter 
anaconda-ks.cfg      .gconfd/             .nautilus/
.bash_history        .gnome2/             Pictures/
.bash_logout         .gnote/              Public/
.bash_profile        .gnupg/              .pulse/
.bashrc              .gstreamer-0.10/     .pulse-cookie
.cache/              .gtk-bookmarks       .recently-used.xbel
.config/             .gvfs/               .spice-vdagent/
.cshrc               .ICEauthority        .ssh/
.dbus/               .imsettings.log      .tcshrc
Desktop/             install.log          Templates/
Documents/           install.log.syslog   Videos/
Downloads/           .lftp/               .xsession-errors
.esd_auth            .local/              
.gconf/              Music/               
[root@app_mf ~]# mke2fs -j /dev/vga_arbiter 
anaconda-ks.cfg      .gconfd/             .nautilus/
.bash_history        .gnome2/             Pictures/
.bash_logout         .gnote/              Public/
.bash_profile        .gnupg/              .pulse/
.bashrc              .gstreamer-0.10/     .pulse-cookie
.cache/              .gtk-bookmarks       .recently-used.xbel
.config/             .gvfs/               .spice-vdagent/
.cshrc               .ICEauthority        .ssh/
.dbus/               .imsettings.log      .tcshrc
Desktop/             install.log          Templates/
Documents/           install.log.syslog   Videos/
Downloads/           .lftp/               .xsession-errors
.esd_auth            .local/              
.gconf/              Music/               
[root@app_mf ~]# mke2fs -j /dev/f
fb          fd0u1040    fd0u1680    fd0u1840    fd0u800     floppy-fd0
fb0         fd0u1120    fd0u1722    fd0u1920    fd0u820     ftpvg/
fd/         fd0u1440    fd0u1743    fd0u360     fd0u830     full
fd0         fd0u1600    fd0u1760    fd0u720     floppy      fuse
[root@app_mf ~]# mke2fs -j /dev/ftpvg/lvftp 
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
29491200 inodes, 117964800 blocks
5898240 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
3600 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
        102400000

Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: 
done

This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@app_mf ~]# 
[root@app_mf ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G  4.6G   43G  10% /
tmpfs                  16G     0   16G   0% /dev/shm
/dev/sda1             485M   55M  405M  12% /boot
/dev/mapper/VolGroup-lv_home
                       34G  176M   32G   1% /home
[root@app_mf ~]# mount /dev/ftpvg/lvftp /tmp/ftp
[root@app_mf ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G  4.6G   43G  10% /
tmpfs                  16G     0   16G   0% /dev/shm
/dev/sda1             485M   55M  405M  12% /boot
/dev/mapper/VolGroup-lv_home
                       34G  176M   32G   1% /home
/dev/mapper/ftpvg-lvftp
                      443G  199M  421G   1% /tmp/ftp
[root@app_mf ~]# cd /tmp/ftp
[root@app_mf ftp]# ls
lost+found
[root@app_mf ftp]# ls
lost+found
[root@app_mf ftp]# ls -clt
total 16
drwx------ 2 root root 16384 Aug 22 18:00 lost+found
[root@app_mf ftp]# mkdir office
[root@app_mf ftp]# mkdir netbill
[root@app_mf ftp]# mkdir tax_client
[root@app_mf ftp]# ls
lost+found  netbill  office  tax_client
[root@app_mf ftp]# ls -clt
total 28
drwxr-xr-x 2 root root  4096 Aug 22 18:06 tax_client
drwxr-xr-x 2 root root  4096 Aug 22 18:06 netbill
drwxr-xr-x 2 root root  4096 Aug 22 18:06 office
drwx------ 2 root root 16384 Aug 22 18:00 lost+found
[root@app_mf ftp]# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
usbmuxd:x:113:113:usbmuxd user:/:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin
avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin
hsqldb:x:96:96::/var/lib/hsqldb:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rtkit:x:499:497:RealtimeKit:/proc:/sbin/nologin
abrt:x:173:173::/etc/abrt:/sbin/nologin
saslauth:x:498:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
avahi:x:70:70:Avahi mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
pulse:x:497:495:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin
gdm:x:42:42::/var/lib/gdm:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
bgs:x:500:500::/tmp/ftp/bgs:/sbin/nologin
office:x:501:501::/tmp/ftp/office:/sbin/nologin
netbill:x:502:502::/tmp/ftp/netbill:/sbin/nologin
tax_client:x:503:503::/tmp/ftp/tax_client:/sbin/nologin
[root@app_mf ftp]# chown office.office office
[root@app_mf ftp]# chown netbill.netbill netbill
[root@app_mf ftp]# chown tax_client.tax_client tax_client
[root@app_mf ftp]# ll
total 28
drwx------ 2 root       root       16384 Aug 22 18:00 lost+found
drwxr-xr-x 2 netbill    netbill     4096 Aug 22 18:06 netbill
drwxr-xr-x 2 office     office      4096 Aug 22 18:06 office
drwxr-xr-x 2 tax_client tax_client  4096 Aug 22 18:06 tax_client
[root@app_mf ftp]# passwd netbill
Changing password for user netbill.
New password: 
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password: 
passwd: all authentication tokens updated successfully.
[root@app_mf ftp]# 

發佈了39 篇原創文章 · 獲贊 4 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章