2009년 8월 28일 금요일

Samba 공유 설정 - 폴더 권한 설정

[data]
path = /home/samba/data
browseable = yes
guest ok = yes
writeable = yes
create mask = 744
valid users = admin mikimous
while the directory mask option shown here will force the permissions of a newly created directory to be at most 755:

[data]
path = /home/samba/data
browseable = yes
guest ok = yes
writeable = yes
directory mask = 755
Alternatively, you can also force various bits with the force create mode and force directory mode options. These options will perform a logical OR against the file and directory creation masks, ensuring that those bits that are specified will always be set. You would typically set these options globally in order to ensure that group and world read/write permissions have been set appropriately for new files or directories in each share.
In the same spirit, if you wish to explicitly set the Unix user and group attributes of a file that is created on the Windows side, you can use the force user and force group options. For example:

[data]
path = /home/samba/data
browseable = yes
guest ok = yes
writeable = yes

create mask = 744
directory mask = 755
force user = joe
force group = accounting

댓글 없음:

댓글 쓰기