[Question] Vấn đề khi cấu hình Samba! |
25/06/2010 07:24:04 (+0700) | #1 | 214014 |
|
vitcon01
Member
|
0 |
|
|
Joined: 29/04/2009 11:28:21
Messages: 306
Offline
|
|
Mong cac anh(chị) giúp đỡ khi em cấu hình samba trên linux fedora 9 thì sử dụng câu lệnh
smbclient //192.168.1.2/tailieu -U hv1 --->ok đựoc
Nhưng khi em sử dụng một hệ điều hành windown xp để vào lấy share của linux f9 thì không được báo lỗi
"The network path was not found"
Đây lấy nội dung file cấu hình smb.conf:
#======================= Global Settings =====================================
[global]
workgroup = MYGROUP
server string = server
netbios name = server
; interfaces = eth0
; hosts allow = 127. 192.168.1. 192.168.2.
# --------------------------- Logging Options -----------------------------
# logs split per machine
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size = 50
# ----------------------- Standalone Server Options ------------------------
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
# ----------------------- Domain Members Options ------------------------
; realm = MY_REALM
; password server = <NT-Server-Name>
# ----------------------- Domain Controller Options ------------------------
; domain master = yes
; domain logons = yes
# the login script name depends on the machine name
; logon script = %m.bat
# the login script name depends on the unix user used
; logon script = %u.bat
; logon path = \\%L\Profiles\%u
# disables profiles support by specifing an empty path
; logon path =
; add user script = /usr/sbin/useradd "%u" -n -g users
; add group script = /usr/sbin/groupadd "%g"
; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
; delete user script = /usr/sbin/userdel "%u"
; delete user from group script = /usr/sbin/userdel "%u" "%g"
; delete group script = /usr/sbin/groupdel "%g"
# ----------------------- Browser Control Options ----------------------------
; local master = no
; os level = 33
; preferred master = yes
#----------------------------- Name Resolution -------------------------------
; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes
; dns proxy = yes
# --------------------------- Printing Options -----------------------------
; load printers = yes
cups options = raw
; printcap name = /etc/printcap
#obtain list of printers automatically on SystemV
; printcap name = lpstat
; printing = cups
# --------------------------- Filesystem Options ---------------------------
; map archive = no
; map hidden = no
; map read only = no
; map system = no
; store dos attributes = yes
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
; writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
; guest ok = no
; writable = No
printable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
;[netlogon]
;comment = Network Logon Service
;path = /var/lib/samba/netlogon guest ok = yes
;writable = no
;share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
; [Profiles]
; path = /var/lib/samba/profiles
; browseable = no
; guest ok = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
[tailieu]
comment = Public Stuff
path = /home/hv1
writeable = yes
printable = no
;write list = +staff
;browseable = no
valid users = hv1, hv2
[Music]
path = /root/Music
writeable = yes
; browseable = yes
guest ok = yes
[/qoute]
Em cảm ơn! |
|
JK - JH
()()()
LTKT - LTT |
|
|
|
[Question] Vấn đề khi cấu hình Samba! |
25/06/2010 08:14:35 (+0700) | #2 | 214017 |
luckyfun
Member
|
0 |
|
|
Joined: 20/03/2008 12:52:22
Messages: 8
Offline
|
|
bạn kiểm tra việc 2 máy đã thông với nhau chưa?
bạn kiểm tra thử xem service smb bạn đã start chưa?
/etc/init.d/smb status
bạn xem xem mình đã add user passwd chưa?
smbpasswd -a user
nếu ok hết mà vẫn fail thì bạn nên kiểm tra file log ...!
Thân ^.^! |
|
|
|