ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÖÕÓÚʵÏÖLinux¿Éд²»¿Éɾ³ý

·¢²¼Ê±¼ä:2008-07-01 20:54:20À´Ô´:ºìÁª×÷Õß:zjh815153665
ÖÕÓÚʵÏÖLinux¿Éд²»¿Éɾ³ý

ͨ¹ýszxsztszkµÄÌáʾ
½ñÌìÖÕÓÚʵÏÖÁËlinux¿Éд²»¿Éɾ³ýµÄÒªÇó¡£
ͬʱÔËÓÃÁËPOSIX ACL

ÎÒÃǹ«Ë¾µÄÒªÇóÊÇÕâÑùµÄ(ÎÒÖ»×ö³öÎÒ¹«Ë¾ÒªÇóµÄ²½Ö裬²»Í¬µÄÒªÇó£¬ÉÔ¼Ó¸ÄÕý¼´¿É)
¹²ÏíĿ¼ To_manager Ö»ÓÐmanagerÕâ¸öÓû§¶Ô´ËĿ¼ӵÓÐÍêȫȨÏÞ¡£
ÆäËüÓû§¶Ô´ËĿ¼ֻÓУº¿ÉÏòÆäÄÚ¸´ÖƲ¢Ð½¨ÎļþµÄȨÏÞ¡£µ«ÊDz»ÄÜɾ³ýÎļþ²»ÄÜcopy³öÎļþ£¬²»ÄܶÁÎļþ¡£

²½Ö裺
1¡£¸ü¸Äsmb.conf ÈçÏÂ



[To_manager]
comment=To_manager
path=/To_manager
writable=yes
create mask =1600
directory mask= 1600


2¡£ÈÃLinuxÖ§³ÖPOSIX ACL (Õâ¸ö POSIX ACL µÄ¹¦ÄÜÔÚ Linux kernel 2.6 Éϱ»Õýʽ֧³Ö£¬Ö®ºóÓÖ±» back-port
µ½ 2.4 kernel ÉÏ¡£´ó¼Ò³£Óõĵµ°¸ÏµÍ³£¬È磺ext3£¬xfs£¬jfs£¬ºÍ ReiserFS£¬¶¼ÄÜʹÓÃ
ACL¡£µ±È»£¬´ó¼ÒÐëÒªÔÚ±àÒë kernel ʱÆô¶¯ ACL¡£)

ÎÒÃÇÒà¿ÉÒÔÔÚ /etc/fstab ÖмÓÈëÑ¡Ï
/dev/sda1 /home ext3 acl 1 2
Èç¹û¶ÔPOSIX ACL ²»ÊìϤÇë¿´http://bbs.chinaunix.net/viewthread.php?tid=760730&highlight=lovegqin

3¡£Ð´¸öС½Å±¾



#!/bin/bash
mkdir /To_manager
chmod 777 /To_manager
chown manager:manager/To_manager
chmod o+t /To_manager
setfacl -m d:u:manager:rwx /To_manager


×îºóÔËÐнű¾£¬ÖØÆôsmb¼´¿É.
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ