dpkg-reconfigure tzdata 修改时区
gpm 支持鼠标
service gpm restart
mods-enabled
a2enmod rewrite
a2enmod php5 ssl
a2dismod 关闭
debian5.0添加acl功能
1.debian默认没有安装
下面来安装apt-get install acl
安装之后用fidisk -l
sa:~# fdisk -l
Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 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: 0xd274d274
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4660 37431418+ 83 Linux
/dev/hdb2 4661 4865 1646662+ 5 Extended
/dev/hdb5 4661 4865 1646631 82 Linux swap / Solaris
加载到hadb1 盘下面
mount -o remount,acl /dev/hdb1
setfacl -m g:test:rw data 指行没有报错
------------------------------------------------------------------------------
参照文档如下
Fully patched Kernel version 2.4 or 2.6
Having the ACL utilities
Having a slightly modified version of file utils.
We are going to work with kernel version 2.6 because 2.6 series of kernels makes some attempts to standardise the ACL methods.
Verifying Kernel support for ACL
Checking log files
#cat /boot/config-2.6.15.1-386 | grep _ACL
This should give the below results
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_XFS_POSIX_ACL=y
Install ACL in Debian
#apt-get install acl
Activating ACL support in a partition (Ext3)
By default kernel version 2.6 supports ext2, ext3, jfs, xfs filesystems for ACL
If you have already partition(ex:-hda6) in your hard disk you need to use the following command
#mount -o remount,acl /dev/hda6
Now we need to modify the /etc/fstab file and add the ACL options
/dev/hda6 / ext3 `acl`,defaults,errors=remount-ro 0 1
Adding and Modifying ACL
In Order to use ACL under linux you need to use two commands setfacl and getfacl
Now we will see each one with an example