LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Samba on mandrake 9.2 (https://www.linuxquestions.org/questions/mandriva-30/samba-on-mandrake-9-2-a-126950/)

Flipn 12-18-2003 11:18 AM

Samba on mandrake 9.2
 
Hey guys.. Newbie question.. What is the easiest and best way to setup Samba on Mandrake 9.2 .... I want Madrake to be the server.. Thanks in advance



Flipn :newbie:

michaelk 12-18-2003 11:26 AM

Install samba from CD if not already.
Install swat webserver application from CD if not already.

Use Mandrake control center to start services at boot.

Configure smb.conf file using swat from your web browser.

See www.samba.org for documentation.

courtrrb 12-18-2003 01:30 PM

I was given an example of a working smb.conf file to place in the /etc/samba directory. Here is a copy of my samba file. This will also allow your printing to be done from a windows machine. Replace all item between ( and ) and the ( and ) with the text you want to use.
---------------------------------------------
# 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 many any basic syntactic errors.
#
[global]
workgroup = (The workgroup name you want to use)
server string = (Your Server Description)
security = share
encrypt passwords = Yes
log file = /var/log/samba/log.%m
max log size = 50
force group = (One of Your Groups)
force user = (One of Your Users)
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
# wins server = 192.168.0.250
printing = cups

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No

; public = yes
; writable = true
; browseable = no
; available = ye

[Music]
browseable = true
path = /Music
public = true
guest only = true
writable = true
only user = no
comment = All Accounts

[Home]
browseable = true
path = /home
public = true
guest only = true
writable = true
only user = no
comment = All Accounts

[Backup]
browseable = true
path = /Backup
public = true
guest only = true
writable = true
only user = no
comment = All Accounts


All times are GMT -5. The time now is 11:29 AM.