LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-26-2004, 02:02 PM   #1
mediocre_person
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
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.)
 
Old 05-26-2004, 02:20 PM   #2
camorri
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

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
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
 
Old 05-26-2004, 03:28 PM   #3
mediocre_person
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 05-26-2004, 05:14 PM   #4
camorri
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

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
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.
 
Old 05-26-2004, 09:21 PM   #5
Niblbit
LQ Newbie
 
Registered: May 2004
Location: Fairview, TN
Distribution: Slackware 9.1
Posts: 9

Rep: Reputation: 0
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.
 
Old 06-04-2004, 11:47 AM   #6
camorri
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

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.1 likes to disable IRQs... evilgoddude Linux - Newbie 0 07-28-2005 05:11 PM
Microsoft Likes Open Source nuka_t General 7 08-21-2004 08:20 PM
LILO really, really likes the number 99 MikeZila Linux - Newbie 6 07-02-2004 10:55 PM
Simplified wget? KendersPlace Programming 3 09-08-2003 06:22 PM
Who likes the new website? CragStar General 7 07-20-2001 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration