Jump to content
Sign in to follow this  
ciku

Samba

Recommended Posts

Sorry ada hal sikit.

SAMBA BOLEH NAMPAK semua pc server dan semua client tapi taakkan aku selalu kena add (search), dia bukan auto detect ke?. DALAM pc win ok jer nampak server samba sbb dia macam auto detect paling2 refresh aja.

Sepatutnya tak macamni. Aku rasa ada kena mengena dgn username/password.

Ko try set username dan password dalam windows 98...sebijik macam ko ser username/password samba.

Lepas tu ko edit registry :

Win98: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSETUP

Ko tambah 1 dalam DWORD value bagi entry EnablePlainTextPassword.

reboot pc.

root@server:/home/faizul# smbclient -L "ip_client"

Connection to ip_client failed

Sepatutnya ada output.............ni mesti kes samba tak tau mana nak cari. Buat cam kat atas.

biggrin.gif

Edited by oshiri

Share this post


Link to post
Share on other sites

tapi kat pc client win semua ok. cuma samba saja kena selalu add client. tapi share folder ok, semua boleh bukak.

bila aku scan.....mmg tadak apa2 , aku rasa sepatutnya dia ada mapping kan utk pc3/canon tuh.

Share this post


Link to post
Share on other sites

Lepas tu ko edit registry :

Win98: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSETUP

Ko tambah 1 dalam DWORD value bagi entry EnablePlainTextPassword.-->ok dah reboot

Edited by ciku

Share this post


Link to post
Share on other sites

Lepas tu ko edit registry :

Win98: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSETUP

Ko tambah 1 dalam DWORD value bagi entry EnablePlainTextPassword.-->edit kat mana?

Edit dalam registry windows 98 la.

Cari KEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSETUP.

Kalo ko tak reti nak edit registry.......ko patch cam ni:

Guna apa-apa text editor dan buat satu file dgn nama : password.reg

Dalam file tu ko paste benda ni:

REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP]

"EnablePlainTextPassword"=dword:00000001

dan save.

Lepas tu ko pergi Run--->type regedit--->registry editor akan bukak----->Registry---->import registry---->ko import file tadi (password.reg).

Jangan lupa buat user name dan password windows 98. Dalam control panel tak silap aku.

Aku pun dah lama sangat tak guna 98.

Jangan guna Microsoft Family Logon. Tapi guna Microsoft Network logon.

biggrin.gif

Edited by oshiri

Share this post


Link to post
Share on other sites

ok aku dah buat semua tuh. wink.gif

pastuh aku kena buat apa pulak...install printer??

restart komputer server nih???

Edited by ciku

Share this post


Link to post
Share on other sites

PELIK LAH. Aku find server kat find computer kat win98...tadak pulak.ish...atau aku kena restart komputer linux nih??hanya ada pc2 dan pc3 saja. huh.gif

OK dah ada dah.....aku restart komputer server nih. baru OK...dia pening kot. biggrin.gif

Edited by ciku

Share this post


Link to post
Share on other sites

argh!!! tak jalanpon printer tuh........ish. aku rasa biarlah dulu. baik aku cuba tutorial buat mail server dulu lagipon printer tuh bukannya ptg sgt sbb client lain semua boleh run printer sharing tuh.

atau dia beri kesan jugak pada setup lain macam ftp dan mail server????

Share this post


Link to post
Share on other sites

Aku rasa aku tau kat mana problem dia.....

Ko set balik printer tu.............tapi jangan guna ip.

Guna  nama pc dimana printer tu berada

biggrin.gif

memang aku guna nama pc aja. aku set yg ada password laanih.

workgroup : xxx

server : pc3

printer : canon

kat user access setting : ?????? apa?------->aku tinggalkan aja...next

general information :- name : canon

location : pc3

description : CANON BJC255SP-------->sebenanya akunya bjc1000sp

Edited by ciku

Share this post


Link to post
Share on other sites

argh!!! tak jalanpon printer tuh........ish. aku rasa biarlah dulu. baik aku cuba tutorial buat mail server dulu lagipon printer tuh bukannya ptg sgt sbb client lain semua boleh run printer sharing tuh.

atau dia beri kesan jugak pada setup lain macam ftp dan mail server????

Share this post


Link to post
Share on other sites

kat user access setting : ?????? apa?------->aku tinggalkan aja...next

Biar aje.

description : CANON BJC255SP-------->sebenanya akunya bjc1000sp

Driver mesti sama dgn windows.

Selalu-selalu lah run : /usr/bin/tail /var/log/cups/error_log

untuk nengok apa masalahnya.

Kalo takde masalah dia akan keluar camni:

I [05/Feb/2005:00:44:40 -0500] Saving printers.conf...

I [05/Feb/2005:00:44:52 -0500] Setting canon device-uri to "smb://nama_user:password_user@mshome/pc3/canon" (was "file:/dev/null".)

I [05/Feb/2005:00:44:52 -0500] Saving printers.conf...

I [05/Feb/2005:00:44:52 -0500] New printer 'canon' added by ''.

I [05/Feb/2005:00:44:52 -0500] Saving printers.conf...

I [05/Feb/2005:00:44:52 -0500] Printer 'canon' modified by ''.

I [05/Feb/2005:00:44:52 -0500] Saving printers.conf...

I [05/Feb/2005:00:44:52 -0500] Printer 'canon' now accepting jobs ('').

I [05/Feb/2005:00:44:52 -0500] Saving printers.conf...

I [05/Feb/2005:00:44:52 -0500] Printer 'canon' started by ''

Good night

biggrin.gif

Edited by oshiri

Share this post


Link to post
Share on other sites

TUTORIAL HARI KE 15

DEBIAN-SHARING PRINTER

biggrin.gif  biggrin.gif

ada lagi 15 tutorial. biggrin.gif

ftp...15 minit. masalah nya aku kena study discussion ko dgn oshiri dulu. kau ajar la aku. CFU dah tidur.

Edited by ciku

Share this post


Link to post
Share on other sites

Ciku

Ada satu benda lagi yg aku tak tengok........./etc/samba/samba.conf dan /etc/cups/printers.conf

Tolonglah post /etc/samba/samba.conf dan /etc/cups/printers.conf kat sini.

Aku baru buat experiment dgn XP ................guna printer HP.....takde masalah.....dgn syarat supply username dan password.

biggrin.gif

Edited by oshiri

Share this post


Link to post
Share on other sites

; /etc/samba/smb.conf

;

; Sample configuration file for the Samba suite for Debian GNU/Linux

;

; Please see the manual page for smb.conf for detailed description of

; every parameter.

;

[global]

# Do something sensible when Samba crashes: mail the admin a backtrace

panic action = /usr/share/samba/panic-action %d

invalid users = root

; "security = user" is always a good idea. This will require a Unix account

; in this server for every user accessing the server.

security = share

; Change this for the workgroup your Samba server will part of

workgroup = majakir

server string = %h server (Samba %v)

; 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/{smb,nmb} instead. If you want to log through

; syslog you should set the following parameter to something higher.

syslog = 0

; This socket options really speed up Samba under Linux, according to my

; own tests.

socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=4096 SO_RCVBUF=4096

; Passwords are encrypted by default. This way the latest Windows 95 and NT

; clients can connect to the Samba server with no problems.

encrypt passwords = yes

passdb backend = smbpasswd guest

; It's always a good idea to use a WINS server. If you want this server

; to be the WINS server for your network change the following parameter

; to "yes". Otherwise leave it as "no" and specify your WINS server

; below (note: only one Samba server can be the WINS server).

; Read BROWSING.txt for more details.

wins support = no

; If this server is not the WINS server then specify who is it and uncomment

; next line.

; wins server = 172.16.0.10

# If we receive WINS server info from DHCP, override the options above.

include = /etc/samba/dhcp.conf

; Please read BROWSING.txt and set the next four parameters according

; to your network setup. There is no valid default so they are commented

; out.

; os level = 0

; domain master = no

; local master = no

; preferred master = 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

; This will prevent nmbd to search for NetBIOS names through DNS.

dns proxy = no

; Name mangling options

preserve case = yes

; This boolean parameter controlls whether Samba attempts to sync. the Unix

; password with the SMB password when the encrypted SMB password in the

; /etc/samba/smbpasswd file is changed.

unix password sync = no

; For Unix password sync. to work on a Debian GNU/Linux system, the following

; parameters must be set (thanks to Augustin Luton

; <[email protected]> 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' &

; The default maximum log file size is 5 MBytes. That's too big so this

; next parameter sets it to 1 MByte. Currently, Samba rotates log

; files (/var/log/{smb,nmb} in Debian) when these files reach 1000 KBytes.

; A better solution would be to have Samba rotate the log file upon

; reception of a signal, but for now on, we have to live with this.

max log size = 1000

obey pam restrictions = yes

; Some defaults for winbind (make sure you're not using the ranges

; for something else.)

; winbind uid = 10000-20000

; winbind gid = 10000-20000

; template shell = /bin/bash

; ISOLATIN1 with euro sign

unix charset = iso-8859-15

display charset = iso-8859-15

dos charset = 850

restrict anonymous = no

domain master = no

preferred master = no

max protocol = NT

ldap ssl = No

server signing = Auto

[homes]

comment = Home Directories

browseable = no

; By default, the home directories are exported read only. Change next

; parameter to "no" if you want to be able to write to them.

read only = yes

; 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 = 0700

; 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 = 0700

case sensitive = no

msdfs proxy = no

path = /home/faizul/none/New Folder

[print$]

comment = Printer Drivers

path = /var/lib/samba/printers

write list = knoppix

[canon]

printer admin = knoppix

comment = All Printers

browseable = no

printable = yes

create mask = 0700

use client driver = yes

path = //pc3/canon

/etc/cups/printers.conf

# Printer configuration file for CUPS v1.1.23

# Written by cupsd on Sat Feb 5 05:57:31 2005

<DefaultPrinter canon>

Info CANON BJC-255SP

Location pc3

DeviceURI smb://pc3:pc3@majakir/pc3/canon

State Idle

Accepting Yes

JobSheets none none

QuotaPeriod 0

PageLimit 0

KLimit 0

</Printer>

LAANIH AKU ATTACH PRINTER DI W98, KALAU KO DAH BERJAYA KAT PRINTER WINxp , BAGUS AKU TRY ATTACH PRINTER AKU KAT WINXP PULAK.

WINXP KAU SET PASSWORD TAK?? AKU LAANIH TAK SET PASSWORD.

SATU LAGI BILA AKU BOOT, DIA KEKADANG HANG KAT starting printing system service cupsd---->terpaksa aku reboot balik. biggrin.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...