삼바 설정관련입니다. 계속 네트워크를 암호를 물어보네요.

kknd345의 이미지

윈도우 98 처음 접속할때 아이디는 Nice 입니다
저의 리눅스에서 /etc/samba/smb.conf 는 아래와 같습니다.

윈도우 98에서 리눅스 삼바 서버에 접속하면 계속 암호를 물어봅니다.
물론 이래 저래 다 적어봤지만 다 틀렸다고 나오네요.
어떻게 해결 할수 없나요?

[global]

workgroup = Zone

client code page = 949

server string = Samba Server %v

printcap name = cups
load printers = yes

printing = cups

printer admin = @adm

log file = /var/log/samba3/log.%m

max log size = 50

hosts allow = 192.168.0.2 127.

map to guest = bad user

security = share

encrypt passwords = no // 이두줄은 주석처리도 해봤는데 계속 암호
물어보네요.
smb passwd file = /etc/samba/private/smbpasswd //

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
writable = no
printable = yes
create mode = 0700
# =====================================
# print command: see above for details.
# =====================================
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.

[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = @adm root
guest ok = yes

[Zone]
comment = Mp3 files
path = /music
public = no
read only=no
writable = yes
valid users= Nice root
printable = no
create mask = 0765

lunatine의 이미지

encrypt passwords 옵션을 설정하게 되면
Windows 98이상에서 레지스트리 등록없이
패스워드를 입력하여 접근이 가능합니다.

encrypt passwords 옵션을 해제하게 되면
삼바패키지에 포함된 reg파일을 실행해서
윈도우가 plain text로 패스워드 값을 전송하도록
해야합니다.

우선 encrypt passwords는 yes로 설정하시면
됩니다.

그리고 혹시 smbadduser명령으로 접근시에
사용하려는 유저ID를 생성하지 않으신건지요.

smb passwd file = /etc/samba/private/smbpasswd을

사용할경우 smbadduser 명령으로 사용자추가 및
smbpasswd 명령으로 패스워드 설정도 해주셔야합니다.

참고로 권장하는 방법은
smb passwd file = /etc/samba/private/smbpasswd 파일을
설정하고
encrypt passwords = yes 로 사용하는겁니다.

================
Lunatine
================

kknd345의 이미지

gentoo 에서 emerge samba 해서
삼바를 깔았는데

smbadduser 파일을 찾아봐도 없어요..

그래서 계정 추가를 못 했어요 ㅜㅜ

1%의 가능성이면 충분하다!
최선을 다하자!

dk의 이미지

삼바 버전이 얼마인지 모르겠지만 3.* 대라는 가정아래..
smbpasswd 명령어로 추가할 수 있습니다.
삼바의 경우 패스워드를 어떻게 저장하는지 여러 방법이 있을텐데
굳이 신경 쓰지 않으셔도 되구요. (man pdbedit)
유닉스에도 같은 이름을 가진 사용자를 추가해야 할거예요.
유닉스 사용자가 필요한 이유는 예를 들어..
그 사용자로 로그인하고 파일을 생성할 때, 파일 소유 맵핑을 할 수 있거든요.

패스워드는 98 사용자가 사용하는 것과 동일한 것을 쓰셔야합니다.

kknd345의 이미지

Pro root # pdbedit -U
Unknown parameter encountered: "client code page"
Ignoring unknown parameter "client code page"
사용법: [옵션...]
-L, --list list all users
-v, --verbose be verbose
-w, --smbpasswd-style give output in smbpasswd style
-u, --user=USER use username
-f, --fullname=문자열(STRING) set full name
-h, --homedir=문자열(STRING) set home directory
-D, --drive=문자열(STRING) set home drive
-S, --script=문자열(STRING) set logon script
-p, --profile=문자열(STRING) set profile path
-U, --user SID=문자열(STRING) set user SID or RID
-G, --group SID=문자열(STRING) set group SID or RID
-a, --create create user
-r, --modify modify user
-m, --machine account is a machine account
-x, --delete delete user
-b, --backend=문자열(STRING) use different passdb backend as
default backend
-i, --import=문자열(STRING) import user accounts from this
backend
-e, --export=문자열(STRING) export user accounts to this backend
-g, --group use -i and -e for groups
-P, --account-policy=문자열(STRING) value of an account policy (like
maximum password age)
-C, --value=정수(LONG) set the account policy to this value
-c, --account-control=문자열(STRING) Values of account control
--force-initialized-passwords Force initialization of corrupt
password strings in a passdb backend

Help options:
-?, --help Show this help message
--usage Display brief usage message

Common samba options:
-d, --debuglevel=DEBUGLEVEL Set debug level
-s, --configfile=CONFIGFILE Use alternative configuration file
-l, --log-basename=LOGFILEBASE Basename for log/debug files
-V, --version Print version

Pro root # pdbedit -a
Unknown parameter encountered: "client code page"
Ignoring unknown parameter "client code page"
Username not specified! (use -u option)

사용자 추가가 안 되요 ㅜㅜ..

예시 하나 들어 주시면 안되나요?

1%의 가능성이면 충분하다!
최선을 다하자!

lunatine의 이미지

smbadduser가 없으시면

"smbpasswd -a 유저명" 으로

추가하실 수 있습니다.

smbpasswd -h 하시면 옵션이 나옵니다.

================
Lunatine
================

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.