View Full Version : Samba for linux
Bro, have you setup samba for linux yet ?
Quan
VuThu
09-17-2002, 05:58 PM
yeap...setup samba & with Debian (Linux) trong vo`ng 2 phu't. very simple easy
VuThu
09-17-2002, 06:05 PM
Samba config file
[global]
WORKGROUP = MANDRAKE
server string = Mandrake 8.1 Server
encrypt passwords = True
security = user
smb passwd file = /etc/samba/smbpasswd
log file = = /var/log/samba/log.%m
max log size = 0
socket options = IPTOS_LOWDELAY TCP_NODELAY
deadtime = 15
getwd cache = Yes
lpq cache time = 45
domain master = Yes
local master = Yes
preferred master = Yes
os level = 65
dns proxy = Yes
wins support = Yes
name resolve order = wins lmhosts host bcast
bind interfaces only = True
interfaces = eth0 192.168.0.7/24 127.0.0.1
hosts deny = ALL
hosts allow = 192.168.0. 127.0.0.1
debug level = 1
create mask = 0644
directory mask = 0755
oplocks = True
level2 oplocks = True
read raw = No
write cache size = 262144
[homes]
comment = Home Directories
browseable = No
read only = Yes
invalid users = root bin daemon sync nobody sys tty disk mem kmem
[printers]
comment = Remote Printers
path = /var/spool/samba
browseable = No
printable = Yes
invalid users = root bin daemon sync nobody sys tty disk mem kme
Latest Samba might be a little bit different.
Have fun!
VuThu
09-17-2002, 06:06 PM
One more Smb.conf
Samac:/etc/samba# more smb.conf
;
; /etc/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]
printing = bsd
dns proxy = no
syslog only = no
null passwords = yes
name resolve order = lmhosts host wins bcast
encrypt passwords = yes
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
short preserve case = yes
printcap name = /etc/printcap
invalid users = root
max log size = 1000
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n
security = user
preserve case = yes
unix password sync = false
workgroup = Dolint0
server string = %h server (Samba %v)
syslog = 0;
guest account = nobody
load printers = yes
[homes]
force directory mode = 777
create mode = 0777
directory mode = 0777
force create mode = 777
user = qnguyen,@qnguyen
only user = yes
comment = Home Directories
write list = qnguyen,@qnguyen
[printers]
comment = All Printers
browseable = no
path = /tmp
printable = yes
public = no
writable = no
create mode = 0700
; A sample share for sharing your CD-ROM with others.
;[cdrom]
; comment = Samba server's CD-ROM
; writable = no
; locking = no
; path = /cdrom
; public = yes
;
; The next two parameters show how to auto-mount a CD-ROM when the
; cdrom share is accesed. For this to work /etc/fstab must contain
; an entry like this:
;
; /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
;
; The CD-ROM gets unmounted automatically after the connection to the
;
; If you don't want to use auto-mounting/unmounting make sure the CD
; is mounted on /cdrom
;
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
What is with this php file bro ? Is there a manual for setting up this ?
VuThu
09-17-2002, 06:29 PM
Originally posted by ttkh
What is with this php file bro ? Is there a manual for setting up this ?
php just a tag that VB have built in, by using php Tag easy for user's to see the code. Nothing special
VuThu
09-19-2002, 07:13 PM
:)
pikachu
10-05-2002, 04:06 PM
SAMBA la cai chi zay VuThu ? Xin ban giai thich du`m chut duoc hong?
Lamvuong
10-24-2002, 01:50 PM
samba = file / resources share for linux and windows operating system
if in need help please refer to the online book link provided by vuthu already.... check out the book on linux unleashed it has a whole chapter on samba.
God Damn do lazy to read... heheheh might just copy and paste cai cua vuthu :) bro cai do co bi trogan khong vay hehehe
GiangVu
10-24-2002, 10:15 PM
Originally posted by ttkh
Bro, have you setup samba for linux yet ?
Quan
... if you don't want to mess around with the smb.conf file.... install webmin and let it configure smb for ya :p ...
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.