samba 설정

SYSTEM 2009. 4. 1. 15:15
1. /etc/samba/smb.conf 수정 (아래는 파일 예제)

2. /etc/rc.d/init.d/smb restart 삼바서버 재시작


;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765

[htdocs]
path = /www/htdocs
writable = yes
createmask = 0664
directory mask = 0775

[ts]
path = /usr/local/ts
writable = yes
createmask = 0664
directory mask = 0775

'SYSTEM' 카테고리의 다른 글

rpm 사용법  (0) 2009.04.02
smbadduser  (0) 2009.04.01
cron  (0) 2009.04.01
날짜 뽑기  (0) 2009.04.01
더쉬운 날짜뽑기  (0) 2009.04.01
Posted by 잘 살아보세
,