Slackware This Forum is for the discussion of Slackware 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-26-2004, 02:02 PM
|
#1
|
LQ Newbie
Registered: May 2004
Posts: 6
Rep:
|
Simplified Samba for the likes of Me?
I have a printer on a Linux box, which I want a Windows ME box on the same network to be able to print to. Could someone who has done this post a stripped down smb.conf that accomplishes this? Is there something I need to do to the Windows ME box (besides upgrade it to Slackware!!!--the user is not "ready") as well?
BTW, before you tell me to RTFM, the trouble with the TFM is that it answers every possible question, when all I want is one specific piece of information which surely to goodness someone out there has done.
Cheers & Such...
Nick
(The guy with the parallel port issue.)
|
|
|
05-26-2004, 02:20 PM
|
#2
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,307
|
Here is a link to some very good doc. There is a section on various flavors of windoze, including ME.
I will poat my smb.conf file. I can print from XP and w98 systems on my home network.
[global]
printing = cups
workgroup = cliffshome
wins support = true
netbios name = sluggy
os level = 20
smb passwd file = /etc/samba/smbpasswd
printcap name = cups
guest account = smbuser
dns proxy = no
log file = /var/log/samba/%m
log level = 2
public = yes
max log size = 50
map to guest = bad user
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
encrypt passwords = yes
server string = Samba Server %v
security = user
printer admin = @adm, cliff ,corinne
load printers = yes
printer = lexmark4039
[homes]
browseable = no
comment = Home Directories
hide dot files = no
directory mask = 0775
write list = cliff
writeable = yes
create mask = 0664
valid users = cliff
[printers]
path = /var/spool/samba
printable = yes
lpq command = lpq -P %p
postscript = no
comment = All Printers
browseable = yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
guest ok = yes
guest only = yes
public = yes
lprm command = cancel %p-%j
create mode = 0700
valid users = cliff,corinne
[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = @adm root cliff corinne
guest ok = yes
# A useful application of samba is to make a PDF-generation service
# To streamline this, install windows postscript drivers (preferably colour)
# on the samba server, so that clients can automatically install them.
[pdf-generator]
path = /var/tmp
guest ok = No
printable = Yes
comment = PDF Generator (only valid users)
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP doc_name &
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I &
[pdf-screen]
copy = pdf-generator
comment = PDF Generator - Screen quality (only valid users)
print command=/usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
[pdf-printer]
copy = pdf-generator
comment = PDF Generator - Print quality (only valid users)
print command=/usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
[pdf-prepress]
copy = pdf-generator
comment = PDF Generator - PrePress quality (only valid users)
print command=/usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
# A publicly accessible directory, but read only, except for people in
# the "cliff" group
[public]
comment = Public Stuff
path = /home/samba/public
public = yes
writable = no
write list = cliff
valid users = cliff, corinne
# Audited directory through experimental VFS audit.so module:
# Uncomment next line.
; vfs object = /usr/lib/samba/vfs/audit.so
[lexmark4039]
printable = yes
path = /var/spool/samba
comment = post script printer
|
|
|
05-26-2004, 03:28 PM
|
#3
|
LQ Newbie
Registered: May 2004
Posts: 6
Original Poster
Rep:
|
Cliff--thanks for that. I didn't get the link to the article you mentioned. In the meantime, a couple of questions:
What sort of users are cliff and corinne? I mean, should I set them up on my linux box with kuser, or are they in that smbpasswd file? Should they match the names of the users on the Windows computers?
Regards,
Nick.
|
|
|
05-26-2004, 05:14 PM
|
#4
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,307
|
Sorry I forgot to put the link in. Here it is.
http://us1.samba.org/samba/docs/using_samba/toc.html
Some thoughts, you will have to change names, to match your network. You will have to think about security, even though it may be a home network will little on no risk. Samba forces you to. I'm using user security with encription. I created users on both systems with the same names and passwords. Windows encripts passwords by default. That is all in the document link I put in.
I'm using cups on my linux system. There are other choices. Make sure local printing is working first.
Hope that gets you going.
|
|
|
05-26-2004, 09:21 PM
|
#5
|
LQ Newbie
Registered: May 2004
Location: Fairview, TN
Distribution: Slackware 9.1
Posts: 9
Rep:
|
Swat
You want simple, right? Follow the link that camorri provided and check out the web interface SWAT provides. I use Cups too. I create accounts for the users that have to use Samba services but I DON'T give them a shell on the box running Samba(they only login to Samba). Yes, create the accounts on the linux box using the names that are the user names on the winbox/s and remember the workgroup. Hope nothing I said was incorrect and please correct me if I'm wrong about any of this. I'm no expert. BTW, don't be afraid to RTM. We all have to and if you're not careful you might get root'd because you didn't RTF Samba Manual. Best of Luck to you.
|
|
|
06-04-2004, 11:47 AM
|
#6
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,307
|
Cliff--thanks for that. I didn't get the link to the article you mentioned. In the meantime, a couple of questions:
What sort of users are cliff and corinne? I mean, should I set them up on my linux box with kuser, or are they in that smbpasswd file? Should they match the names of the users on the Windows computers?
cliff and corinne are our user accounts on Linux, no special status. They are in the smbpassword file, on the Windoze machines I use the same user names and same passwords on both machines. BTW I did install SWAT as another post has suggested.
|
|
|
All times are GMT -5. The time now is 11:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|