Chinaunix首页 | 论坛 | 博客
  • 博客访问: 615778
  • 博文数量: 151
  • 博客积分: 4010
  • 博客等级: 上校
  • 技术积分: 1664
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-13 16:37
文章分类

全部博文(151)

文章存档

2010年(16)

2009年(135)

我的朋友

分类: LINUX

2009-10-25 00:29:22

[juju]
       path = /opt/juju
       comment = juju
       public = no
       valid users = @juju
       write list = @juju
       create mask = 0740
       directory mask = 0740
[juju001]
       path = /opt/juju
       comment = juju001
       public = no
       valid users = @juju001
       write list = @juju001      
       create mask = 0770
       directory mask = 0770
 
groupadd juju
useradd juju -g juju -s /bin/false
useradd juju001 -g juju -s /bin/false
mkdir /opt/juju
chgrp juju /opt/juju
chmod 740 /opt/juju
chmod g+s /opt/juju
smbpasswd -a juju
smbpasswd -a juju001
 
[root@localhost opt]# ls -al
总计 48
drwxr-xr-x  5 juju juju  4096 07-11 23:44 .
drwxr-xr-x 25 root root  4096 07-06 22:57 ..
drwxrwxrwx  3 juju juju  4096 07-12 00:31 juju
drwx------  2 juju juju 16384 07-01 17:49 lost+found
drwxr-xr-x  7 juju juju  4096 07-02 04:26 php
[root@localhost opt]# cd juju
[root@localhost juju]# ls -al
总计 24
drwxrwxrwx 3 juju juju 4096 07-12 00:31 .
drwxr-xr-x 5 juju juju 4096 07-11 23:44 ..
drwxr-xr-x 2 juju root 4096 07-12 00:32 juju001
[root@localhost juju]# ls -al
总计 24
drwxrwxrwx 3 juju juju 4096 07-12 00:31 .
drwxr-xr-x 5 juju juju 4096 07-11 23:44 ..
drwxr-xr-x 2 juju root 4096 07-12 00:32 juju001
[root@localhost juju]# cd juju001/
[root@localhost juju001]# ls -al
总计 32
drwxr-xr-x 2 juju root 4096 07-12 00:32 .
drwxrwxrwx 3 juju juju 4096 07-12 00:31 ..
-rwxr----- 1 juju juju    3 07-12 00:32 123.txt
-rwxr----- 1 juju juju    7 07-12 00:41 234.txt
[root@localhost juju001]#

阅读(827) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~