Hallo Honggo, kalo sambanya udah di install, dan sebelum konfigurasi : 1. Buat user 2. Buat user samba 3. setting samba /etc/samba/smb.conf
-- awal [EMAIL PROTECTED] root]# adduser honggo [EMAIL PROTECTED] root]# passwd honggo Changing password for user honggo. New password Retype new password: passwd: all authentication tokens updated successfully. [EMAIL PROTECTED] root]# smbpasswd -a honggo New SMB password: Retype new SMB password: Added user honggo <-- akhir membuat user+user samba -- buat folder yg akan di shared misalnya -- [EMAIL PROTECTED] /]# mkdir test [EMAIL PROTECTED] /]# chown 0770 test \\-- seting konfigurasi samba \\ -- lokasi file /etc/samba/smb.conf [global] log file = /var/log/samba/%m.log load printers = yes <-- no, kalo ngk pake printer smb passwd file = /etc/samba/smbpasswd passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*al obey pam restrictions = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain master = yes encrypt passwords = yes passwd program = /usr/bin/passwd %u dns proxy = no netbios name = SVRLNX3 <-- ganti dengan nama komp server samba kamu server string = IntraNet Server (backup) <--ganti dengan komentar kamu printing = cups unix password sync = yes local master = yes workgroup = IP47-49 <-- ganti dengan nama group komp. jaringan kamu os level = 20 printcap name = /etc/printcap security = user max log size = 0 pam password change = yes domain logons = yes ; interfaces = 169.254.194./24 bind interfaces only = yes hosts allow = 169.254.194. <-- ganti dengan IP Private di jaringan kamu [test] writeable = yes printable = no path = /test write list = @nama_domain_client //misal @honggo.com comment = test samba valid users = @honggo.com public = yes create mode = 0660 directory mode = 0770 allow hosts = 169.254.194. //sesuaikan dengan IP jaringan kamu gudLAK ----- Original Message ----- From: "Honggo" <[EMAIL PROTECTED]> To: "Milis Linux" <[EMAIL PROTECTED]> Sent: 27 July, 2004 2:55 PM Subject: RE: [tanya-jawab] Samba | tolong dibantu ya.. tks | | # This is the main Samba configuration file. You should read the | # smb.conf(5) manual page in order to understand the options listed | # here. Samba has a huge number of configurable options (perhaps too | # many!) most of which are not shown in this example | # | # Any line which starts with a ; (semi-colon) or a # (hash) | # is a comment and is ignored. In this example we will use a # | # for commentry and a ; for parts of the config file that you | # may wish to enable | # | # NOTE: Whenever you modify this file you should run the command | "testparm" | # to check that you have not made any basic syntactic errors. | # | #======================= Global Settings | ===================================== | [global] | log file = /var/log/samba/%m.log | smb passwd file = /etc/samba/smbpasswd | load printers = yes | passwd chat = *New*password* %n\n *Retype*new*password* %n\n | *passwd:*all*authentication*tokens*updated*successfully* | socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 | obey pam restrictions = yes | username map = /etc/samba/user.map | encrypt passwords = yes | passwd program = /usr/bin/passwd %u | dns proxy = no | server string = Samba Server | printing = cups | unix password sync = yes | workgroup = MYGROUP | printcap name = /etc/printcap | security = user | max log size = 0 | pam password change = yes | | [homes] | comment = Home Directories | writable = yes | valid users = %S | create mode = 0664 | path = /home/honggo/share | directory mode = 0775 | | [printers] | comment = All Printers | path = /var/spool/samba | browseable = no | # Set public = yes to allow user 'guest account' to print | guest ok = no | writable = no | printable = yes | | # This one is useful for people to share files | ;[tmp] | ; comment = Temporary file space | ; path = /tmp | ; read only = no | ; public = yes | | # A publicly accessible directory, but read only, except for people in | # the "staff" group | ;[public] | ; comment = Public Stuff | ; path = /home/samba | ; public = yes | ; writable = yes | ; printable = no | ; write list = @staff | | # Other examples. | # | # A private printer, usable only by fred. Spool data will be placed in | fred's | # home directory. Note that fred must have write access to the spool | directory, | # wherever it is. | ;[fredsprn] | ; comment = Fred's Printer | ; valid users = fred | ; path = /home/fred | ; printer = freds_printer | ; public = no | ; writable = no | ; printable = yes | | # A private directory, usable only by fred. Note that fred requires | write | # access to the directory. | ;[fredsdir] | ; comment = Fred's Service | ; path = /usr/somewhere/private | ; valid users = fred | ; public = no | ; writable = yes | ; printable = no | | # a service which has a different directory for each machine that | connects | # this allows you to tailor configurations to incoming machines. You | could | # also use the %U option to tailor it by user name. | # The %m gets replaced with the machine name that is connecting. | ;[pchome] | ; comment = PC Directories | ; path = /usr/local/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 | | On Tue, 2004-07-27 at 13:38, Hardyanto Hidayat wrote: | > file config sambanya mana? | > | > -----Original Message----- | > From: Honggo [mailto:[EMAIL PROTECTED] | > Subject: [tanya-jawab] Samba | > | > hi rekan2, | > tanya samba. saya set samba. di network windows sudah muncul 'my group' | > sudah muncul juga sharing foldernya. tapi bgitu saya mau akses, seperti | > biasa, windows minta username dan passwordnya. username dan password yang | > sudah saya definisikan di konfigurasi samba saya masukkan. tapi ditolak dan | > tetap meminta untuk user dan password lagi. adakah yang bisa membantu? | > terima kasih sebelumnya. | > | | | -- | Unsubscribe: kirim email kosong ke [EMAIL PROTECTED] | Arsip, FAQ, dan info milis di http://linux.or.id/milis.php | Tidak bisa posting? Baca: | http://linux.or.id/wiki/index.php?pagename=ProblemMilisDanSolusi | http://linux.or.id/wiki/index.php?pagename=TataTertibMilis | --- Outgoing mail is certified Virus. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.727 / Virus Database: 482 - Release Date: 26/07/2004 -- Unsubscribe: kirim email kosong ke [EMAIL PROTECTED] Arsip, FAQ, dan info milis di http://linux.or.id/milis.php Tidak bisa posting? Baca: http://linux.or.id/wiki/index.php?pagename=ProblemMilisDanSolusi http://linux.or.id/wiki/index.php?pagename=TataTertibMilis