삼바 재질문, 리눅스에서 피씨연결 및..
글쓴이: son50 / 작성시간: 금, 2004/10/22 - 1:39오후
삼바 세팅을 하고 있습니다.
일단 피씨에서 서버로의 연결은 됩니다.
근데 문제는 /etc/init.d/samba stop 해도
smbd 나 nmbd 가 안죽는군요. 계속 연결이 됩니다.
어떻게 죽이는지 모르겠네요.
또 하나는 워크그룹을 지정해줘도 그룹에 서버이름이 안뜹니다.
무슨 이유인지 모르겠습니다.
그리고 서버에서 윈도우 XP 로 접속이 불가합니다.
좋은 조언 부탁드립니다.
윈도우는 XP pro, 서비스팩 1입니다.
윈도우로 접속시의 메뉴입니다.
smbclient -L mymachine -U myid added interface ip=xxx.xxx.xxx.xxx bcast=xxx.xxx.xxx.xxx nmask=255.255.0.0 Got a positive name query response from xxx.xxx.xxx.xxx ( xxx.xxx.xxx.xxx ) Password: Domain=[______] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- IPC$ IPC Remote IPC print$ Disk 프린터 드라이버 I$ Disk Default share ADMIN$ Disk Remote Admin H$ Disk Default share wwwroot$ Disk Used for file share access to web projects C$ Disk Default share J$ Disk Default share Server Comment --------- ------- Workgroup Master --------- -------
이처럼 Domain 자리가 비어서 나타납니다. 이게 관련이 있을듯한데..
또한 로그화일을 보니 log.smbd 가
[2004/10/20 23:58:51, 0] smbd/server.c:main(698) smbd version 2.2.3a-13 for Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2002 [2004/10/22 18:45:51, 0] smbd/server.c:main(698) smbd version 2.2.3a-13 for Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2002 [2004/10/22 12:06:09, 0] smbd/server.c:main(698) smbd version 2.2.3a-14.1 for Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2002 [2004/10/22 12:06:12, 0] smbd/server.c:main(698) smbd version 2.2.3a-14.1 for Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2002 [2004/10/22 12:08:44, 0] smbd/server.c:main(698) smbd version 2.2.3a-14.1 for Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2002 [2004/10/22 12:08:44, 0] smbd/server.c:main(744) standard input is not a socket, assuming -D option [2004/10/22 12:08:44, 0] lib/util_sock.c:open_socket_in(789) bind failed on port 139 socket_addr = 0.0.0.0. Error = Address already in use [2004/10/22 12:09:12, 0] smbd/server.c:main(698) smbd version 2.2.3a-14.1 for Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2002 [2004/10/22 13:07:21, 0] smbd/server.c:main(698) smbd version 2.2.3a-14.1 for Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2002 [2004/10/22 13:07:21, 0] smbd/server.c:main(744) standard input is not a socket, assuming -D option [2004/10/22 13:07:21, 0] lib/util_sock.c:open_socket_in(789) bind failed on port 139 socket_addr = 0.0.0.0. Error = Address already in use
이렇게 나옵니다. 소켓 주소랑 관련이 있는듯 한데요.
제 세팅은 아래와 같습니다 (smb.conf, debian samba 2.2.3a-14.1 :( ).
#======================= Global Settings ======================= [global] # hangul setting ; unix charset = UTF8 coding system = KS8 client code page = 949 preserve case = yes short preserve case = yes # Change this for the workgroup/NT-domain name your Samba server will part of workgroup = aaa # server string is the equivalent of the NT Description field server string = shon4 # If you want to automatically load your printer list rather # than setting them up individually then you'll need this load printers = yes # You may wish to override the location of the printcap file printcap name = /etc/printcap # 'printing = cups' works nicely printing = cups ; printing = bsd ; guest account = nobody invalid users = root # This tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/log.%m # Put a capping on the size of the log files (in Kb). max log size = 1000 # If you want Samba to log though syslog only then set the following # parameter to 'yes'. Please note that logging through syslog in # Samba is still experimental. ; syslog only = no # We want Samba to log a minimum amount of information to syslog. Everything # should go to /var/log/samba/log.{smb,nmb} instead. If you want to log # through syslog you should set the following parameter to something higher. syslog = 0 # "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # security_level.txt for details. security = user # You may wish to use password encryption. Please read ENCRYPTION.txt, # Win95.txt and WinNT.txt in the Samba documentation. Do not enable this # option unless you have read those documents encrypt passwords = true ; null passwords = true # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting ; include = /home/samba/etc/smb.conf.%m # Most people will find that this option gives better performance. # See speed.txt and the manual pages for details # You may want to add the following on a Linux system: # SO_RCVBUF=8192 SO_SNDBUF=8192 socket options = TCP_NODELAY # --- Browser Control Options --- # Please _read_ BROWSING.txt and set the next four parameters according # to your network setup. The defaults are specified below (commented # out.) It's important that you read BROWSING.txt so you don't break # browsing in your network! # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply ; local master = yes # OS Level determines the precedence of this server in master browser # elections. The default value should be reasonable ; os level = 20 # Domain Master specifies Samba to be the Domain Master Browser. This # allows Samba to collate browse lists between subnets. Don't use this # if you already have a Windows NT domain controller doing this job ; domain master = auto # Preferred Master causes Samba to force a local browser election on startup # and gives it a slightly higher chance of winning the election ; preferred master = auto # --- End of Browser Control Options --- # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server ; wins support = no # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ; wins server = w.x.y.z # This will prevent nmbd to search for NetBIOS names through DNS. dns proxy = no # What naming service and in what order should we use to resolve host names # to IP addresses ; name resolve order = lmhosts host wins bcast # For Unix password sync. to work on a Debian GNU/Linux system, the following # parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for # sending the correct chat script for the passwd program in Debian Potato). passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . # The following parameter is useful only if you have the linpopup package # installed. The samba maintainer and the linpopup maintainer are # working to ease installation and configuration of linpopup and samba. ; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' & obey pam restrictions = yes #======================= Share Definitions ======================= [homes] comment = Home Directories browseable = no # By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. writable = yes ; valid users = %S # File creation mask is set to 0700 for security reasons. If you want to # create files with group=rw permissions, set next parameter to 0775. create mask = 0664 # Directory creation mask is set to 0700 for security reasons. If you want to # create dirs. with group=rw permissions, set next parameter to 0775. directory mask = 0775 [printers] comment = All Printers browseable = no path = /tmp printable = yes public = no writable = no create mode = 0700
Forums:
일단 저기 한국어 관련된 설정을 지워보시고, 테스트해보시고,삼바
일단 저기 한국어 관련된 설정을 지워보시고, 테스트해보시고,
삼바 기동 스크팁트(/etc/init.d/smbd) 내용도 점검해 보시기 바랍니다.
혹시 samba swat를 사용하시면,
보다 쉽게 설정을 고치실 수 있습니다.
참고로 swat는 로컬 서버 root로 로그인을 해야
정상적으로 서버세팅을 고칠 수 있습니다.
There is no spoon. Neo from the Matrix 1999.
저도 처음에 삼바 꼼지락거린다고 하루 반을 투자한 적이 있습니다. 보통
저도 처음에 삼바 꼼지락거린다고 하루 반을 투자한 적이 있습니다. 보통 시중의 책들의 설명은 빼먹은 부분이 많더군요...-.-
그래도 시간 투자를 해보세요 그러면 분명 얻는게 있을 겁니다. 건투를 빕니다~
남으로 창을 내겠소.
밭이 한참갈이 괭이로 파고 호미론 김을 메지요.
구름이 꼬인다 갈리있소. 새들의 노래는 공으로 들으랴오.
강냉이가 익거든 와자셔도 좋소.
왜 사냐건 웃지요.
한글 관련은 원래 없던겁니다
한글 관련은 원래 없던 겁니다. 제가 나중에 넣은 겁니다.
별 상관이 없을듯 하구요.
테스트로 smbclient -L myserver -N 하면 에러메시지가 나옵니다.
이렇군요. 중복지정이 된듯하여 /etc/inetd.conf 내의
netbios-ns 항목들은 comment out 하였습니다.
swat 도 제대로 지정한거 같은데 안뜨는군요. 설치방법 문서만 뜹니다.
도와주실분...
:?
계정과 암호를 입력하시면 별탈없이 됩니다.만약에 계정을 입력안하시
계정과 암호를 입력하시면 별탈없이 됩니다.
만약에 계정을 입력안하시면 아마도
guest 계정으로 접속 되는듯한데
guest 계정이라도 암호를 알면 별 탈 없이 접속이 가능합니다.
참 그리고 한글계정은 잘 안되는듯한데 혹시 되시면 여기에 올려주세요
참 그리고 서버에서 pc로 접속하는거는 삼바서비스의 두가지 서버들(smbd 나 nmbd )과는 무관하고..
위에서 두서버가 안죽으면 kill 로 죽이시면 됩니다^^
pc에서 서버로 들어올때나 삼바파일시스템으로 마운드 할때나 해당되는 예기입니다.
그리고 도메인이 안나오는것하고는 별 상관 없습니다
ip로 들어가면 되니까요...
administrator의 암호를 알면 $로 표시된 숨김 공유도 접속가능하니 참고하세요..
그리고 95, 98, 2000, xp 에 따라서 윈도의 내부 정책이 조금씩 틀립니다... 그냥 참고하시면 됩니다.
물론 계정과 암호는 입력했지요.
그래도 문제는 여전합니다.
말씀드린 것처럼 workgroup 이름이 안나옵니다.
이게 다른 네트웍 문제까지 야기시키고 있는 모양입니다.
이걸 어떻게 나오게 할 수는 없는지.
그리고 이상하게 smbd 는 죽는데, nmbd 는 안죽더군요.
smbd 가 죽어있어도 연결은 또 됩니다.
그리고 /etc/init.d/samba restart 등의 명령어를
주어도 메시지가 전혀 안뜨네요.
/etc/init.d/samba 내용을 보면 뜨도록 되어 있는거 같은데...
이것도 한번 올려봅니다.
samba데몬이 죽지 않는다는건...crontab을 확인해보시거나 x
samba데몬이 죽지 않는다는건...
crontab을 확인해보시거나 xinetd.d에서 지정했는지를 확인해 보시는게 좋겠네요.
주기적인 체크로 봐서는 cron에 있을 확률이 높아보입니다.
------------------------------
좋은 하루 되세요.
삼바 메뉴얼에도
삼바 메뉴얼에도 안나오는건 ...
http://wiki.debian.org/SambaDomainController#Explainsmb.conf
위 주소 참고해 보시죠
.conf 파일에 workgroup=aaa라고 되어 있는데, 이 항목은 도메인명이나 워크그룹명이 가능하다고 합니다.
두 이름이 모두 aaa 가 아니라면 aaa 가 아닌, 다른 쪽 이름을 넣어보세요
*******************************
데비안과 세벌식 사용자입니다
*************************************
*******************************
데비안과 세벌식 사용자입니다
*************************************
댓글 달기