[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]#
阅读(867) | 评论(0) | 转发(0) |