MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.