Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Printing CUPS/SAMBA
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Wed Jun 13, 2007 5:08 pm    Post subject: Re Emerging Reply with quote

All,

Since nmbd is not starting correctly, I'm re-emerging SAMBA.

Thanks!

OMR
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Wed Jun 13, 2007 5:35 pm    Post subject: Still not working Reply with quote

All,

The re-emerge did not fix anything, still at the same point of frustration.

OMR
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Wed Jun 13, 2007 6:09 pm    Post subject: IRC Help Reply with quote

All,

GNUtoo, on IRC told me to emerge strace so I did and ran it as follows:
Code:
strace /etc/init.d/samba start
Got errors but the terminal drop so lost the output and have not been able to reproduce it. Afer re-emerging samba again got the error and hang point back at:
Code:
 * samba -> start: smbd ...
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807802c, [], 0}, {0x808730f, [], 0}, 8) = 0
waitpid(-1,


So what does this means? Am I looking for a file "rt_sigaction" or "sig_block"?

OMR


Last edited by OldManRiver on Wed Jun 13, 2007 6:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Wed Jun 13, 2007 6:11 pm    Post subject: Reply with quote

OldManRiver wrote:
localhost ~ # testparm
[global]
workgroup = DAVISOFT
netbios name = GENTOO_NYLE
server string = Samba Server
interfaces = lo, eth0, eth1, eth2
bind interfaces only = Yes
name resolve order = wins lmhosts host bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
hostname lookups = Yes
printcap name = cups
dns proxy = No
wins support = Yes
guest ok = Yes
hosts allow = localhost, 192.168.10.0/24, 192.168.1.0
hosts deny = All
printing = cups
cups options = "raw"
print command = lpr -P'%p' %s; rm %s
lppause command = lp -i '%p-%j' -H hold
lpresume command = lp -i '%p-%j' -H resume
queuepause command = disable '%p'
queueresume command = enable '%p'
use client driver = Yes

[print$]
comment = Printer Drivers
path = /etc/samba/printer # this path holds the driver structure
write list = username,root

[printers]
comment = All Printers
path = /etc/samba/smbprint
printer admin = printer_username, root, 1.*
guest only = Yes
printable = Yes
browseable = No

<snip>

What else do I need to change?

For one this config has some wrong paths based on Gentoo's normal setup. When you use another config as an example you need to adjust such things.

Try this as your whole smb.conf (edit it directly - forget about swat):
Code:
[global]
        workgroup = DAVISOFT
        netbios name = GENTOO_NYLE
        server string = Samba Server
        printcap name = cups
        guest ok = Yes
        printing = cups
        cups options = "raw"
        passdb backend = tdbsam

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
        write list = root

[printers]
        comment = All Printers
        path = /var/spool/samba
        guest ok = Yes
        printable = Yes
        browseable = No
        create mode = 0700

First, I got rid of all the cruft. Second I adjusted the paths of [print$] and [printers] to those that gentoo sets up. Third I suggest using the tdbsam passdb backend instead of smbpasswd (you will have to re-add your users), but you can skip that if you want to for now.

Suggest you also keep your other shares out for now. Add them, as well as other options and changes you think you need, later after everything starts up correctly. Always run "testparm" after any changes.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Wed Jun 13, 2007 6:43 pm    Post subject: Working but hosts still not resolving Reply with quote

Dark,

Thanks for the input! File is now!
Code:
[global]
        workgroup = DAVISOFT
        netbios name = GENTOO_NYLE
        server string = Samba Server
        printcap name = cups
        guest ok = Yes
        printing = cups
        cups options = "raw"
   encrypt passwords = yes
#        passdb backend = tdbsam
   wins support = yes
   hostname lookups = yes

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
        write list = root

[printers]
        comment = All Printers
        path = /var/spool/samba
        guest ok = Yes
        printable = Yes
        browseable = No
        create mode = 0700
and Samba is up but with Windows hosts and shares are not resolving and mounting!

I was told I had to have the
Code:
   wins support = yes
   hostname lookups = yes
if I want hosts to resolve.

Any ideas on this?

Thanks!

OMR
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Wed Jun 13, 2007 6:58 pm    Post subject: Re: Working but hosts still not resolving Reply with quote

OldManRiver wrote:
I was told I had to have the
Code:
   wins support = yes
   hostname lookups = yes
if I want hosts to resolve.

Any ideas on this?

Trust me, you don't want "hostname lookups = yes", dump it.
Normally you run a WINS server when you have a NetBIOS domain and a PDC. I guess you could run one otherwise but it's not normally done AFAIK. You do need to point the clients to the WINS server or it wont do you any good, and how much good it will do w/o a PDC is probably debatable anyway.
I suggest you setup and use DNS instead as WINS will not be all that useful in a peer-to-peer configuration with "modern" clients (>=Win2k).

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Wed Jun 13, 2007 7:39 pm    Post subject: Re: Working but hosts still not resolving Reply with quote

darkphader wrote:
Trust me, you don't want "hostname lookups = yes", dump it.
Normally you run a WINS server when you have a NetBIOS domain and a PDC.


Dark,

I want this box with SAMBA to be the WINS domain controller.

OMR
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Wed Jun 13, 2007 7:48 pm    Post subject: Re: Working but hosts still not resolving Reply with quote

OldManRiver wrote:
I want this box with SAMBA to be the WINS domain controller.
Then read the Samba howto and set it up as a PDC, run WINS, use DNS as well (every modern network needs that) and DHCP to configure the clients. You still don't want "hostname lookups = yes".

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Wed Jun 13, 2007 10:22 pm    Post subject: All that crap Reply with quote

Dark,

That is why I have all that crap in the smb.conf, because the HOWTO said so, including the one you say is forbidden.

Last round with Samba restart produced another error of:
Code:
"Unable to open printcap file cups for read!"
What now?

Also got some input from IRC to look at the host file which contains:
Code:
127.0.0.1   localhost
::1   localhost

10.1.10.19   Server
10.1.10.52   GenToo_Nyle
10.1.10.106   HP4L
10.1.10.152   TechBench
10.1.10.160   GenToo_Carter
which are the old defs for when we were on Time Warner. Is there a way to script this so they auto propagate?

OMR
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Wed Jun 13, 2007 11:09 pm    Post subject: Re: All that crap Reply with quote

OldManRiver wrote:
That is why I have all that crap in the smb.conf, because the HOWTO said so, including the one you say is forbidden.

I have no clue what HOWTO you're reading. None of that junk is in the one at:

http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/samba-pdc.html
nor at:
http://us3.samba.org/samba/docs/man/Samba-Guide/secure.html

Official Samba documentation whch I pointed you to in an earlier post.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Thu Jun 14, 2007 2:04 pm    Post subject: Automate Reply with quote

All,

I think I'm starting to understand at least some of the problem. Since all IPs on my print server and all the Win machines change multiple times daily, these hard coded IPs will never work, so I need to find a way to either autofind the IPs and mount that way or run a script that regens the list here in the "/etc/hosts" file and restarts Samba and remount the Wins shares when run.

Please understand that the 3 monitored lines do not assign in the same IP ranges but instead they assign:
Code:
Connect 1 ==> 192.168.10.x
Connect 2 ==> 192.168.1.x
Connect 3 ==> 192.168.7.x
Any suggestions on this?

Thanks!

OMR
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Thu Jun 14, 2007 2:25 pm    Post subject: IRC Help Reply with quote

All,

Some help from IRC told me to "emerge nmap" and run it, but I don't understand what to do with this command.

Further help said to run IFCONFIG to get root IP address then run the command as:
Code:
nmap -sP 192.168.1.0/24


With results of:
Code:
Starting Nmap 4.20 ( http://insecure.org ) at 2007-06-14 09:40 CDT
Host 192.168.1.1 appears to be up.
MAC Address: 00:16:B6:A8:84:17 (Cisco-Linksys)
Host 192.168.1.100 appears to be up.
MAC Address: 00:18:F3:A0:50:C0 (Asustek Computer)
Host 192.168.1.101 appears to be up.
MAC Address: 00:0C:F1:B1:8B:EA (Intel)
Host 192.168.1.102 appears to be up.
MAC Address: 00:14:2A:0E:CE:FC (Elitegroup Computer System Co.)
Host 192.168.1.103 appears to be up.
MAC Address: 00:14:BF:FC:28:79 (Cisco-Linksys)
Host 192.168.1.104 appears to be up.
MAC Address: 00:16:E6:85:17:CF (Giga-byte Technology Co.)
Host 192.168.1.105 appears to be up.
MAC Address: 00:D0:59:13:8B:46 (Ambit Microsystems)
Host 192.168.1.107 appears to be up.
MAC Address: 00:0E:A6:4E:1D:9A (Asustek Computer)
Host 192.168.1.108 appears to be up.
Nmap finished: 256 IP addresses (9 hosts up) scanned in 5.866 seconds
This can be captured in a file to script against to bring up my
Wins Shares, but checking on some other thing first. Looks like my printer is the second LinkSys address with the router as the first. At least now I can write a script to mount the print correctly. I think this is great progress!

Thnaks!

OMR
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Thu Jun 14, 2007 3:06 pm    Post subject: Re: Automate Reply with quote

OldManRiver wrote:
Since all IPs on my print server and all the Win machines change multiple times daily, these hard coded IPs will never work, so I need to find a way to either autofind the IPs and mount that way or run a script that regens the list here in the "/etc/hosts" file and restarts Samba and remount the Wins shares when run.

I alluded to the proper solution in my post back on Sat Apr 21, 2007 at 2:47 pm. Run your own DNS and DHCP servers for the internal network. A "real" DHCP server can reserve IP addresses based on the MAC address so the systems will always receive the same IP address even thought they are "dynamically" assigned. The DNS server will avoid the messy hosts file issues, always having to keep them mantained with a correct updated copy on every system.

The manual way is only usable with about 5 systems or less (I think it's a hassle for more then 3) and requires that you use static IP addressing and properly complete hosts and lmhosts files and keep an updated, correct copy on every system (including the server). A real pain IMO.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Thu Jun 14, 2007 8:51 pm    Post subject: Past Me Reply with quote

Dark,

Since I'm too noob, some of the things you say leave me clueless, so please give more detail, till I figure out what you are trying to tell me!

In particular, to set the DNS, etc. right what services and files am I looking and and what should they look like, etc.

Right now I've been working on some scripts which are:
Code:
#! /bin/bash
rm /etc/nmap.txt /etc/nmap.txt.new /etc/nmap.shares
$uid = "myadmin"
$pwd = "mypwd"
nmap -sP 192.168.1.0/24 | grep [Hh]ost > /etc/nmap.txt
awk -f /var/shared-files/print_howto/clean_nmap.awk /etc/nmap.txt > /etc/nmap.txt.new
chmod 770 "/etc/nmap.txt.new"
fp=open "/etc/nmap.txt.new" "r"
As far as I've got here. Going to write a "while" loop and use smbclient with the IP address and name to find the Win Shares.

and"
Code:
#####################################################
#                                                   #
# Name:     clean_nmap.awk                          #
# Purpose:  Clean the /etc/nmap.txt file so only    #
#           the name and IP address remain.         #
# Author:   Nyle Davis      Create Date: 06-14-07   #
# Modified:                                         #
# Command:  awk -f clear_nmap.awk /etc/nmap.txt     #
#                                                   #
#####################################################

BEGIN {
#  system ("clear")
}

$1=="Host" && $3!="appears" {
   ilen = length($3)
   ipad = substr($3,2,ilen-2)
   printf "%-20s\t%-8s\n", ipad, $2
}

END {
}


Any feedback here is good!

Thanks!

OMR
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Thu Jun 14, 2007 9:45 pm    Post subject: Re: Past Me Reply with quote

OldManRiver wrote:
Since I'm too noob, some of the things you say leave me clueless, so please give more detail, till I figure out what you are trying to tell me!

In particular, to set the DNS, etc. right what services and files am I looking and and what should they look like, etc.

Apparently you still haven't read the docs I pointed you to.
Sorry, can't do all of your work for you. I'm leaving this thread.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Fri Jun 15, 2007 3:13 am    Post subject: Re: Past Me Reply with quote

Dark,

darkphader wrote:
Apparently you still haven't read the docs I pointed you to.


I did but as noob, some is criptic and some just don't understand yet, plus that was days ago and I forgot all of it.

Sorry!

Looking back for your post to see what I missed, and try again!

Thanks! OMR
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Fri Jun 15, 2007 3:20 am    Post subject: Re: Ipp Reply with quote

Dark,

This was your post on the day you specified! What am I missing here?

darkphader wrote:
jstead1 wrote:
It doesn't need a statuc IP. I know the router has or can be given a host name.
<snip>
When you are asked for the URI, use the http://hostname:631/printers/queue syntax. " So you don't need a static IP, you need a host name.


Not quite so simple. The host name has to be resolvable and CUPS is not going to use NetBIOS broadcasts. Therefore without DNS or hosts (or possibly WINS) resolution a hostname by itself will mean nothing. Basically "servers" should have static/fixed IP addresses (they can be assigned by DHCP but reserved so that they're always the same). In this case I see no reason why the print server in question cannot have a static IP address, it's absurd to have it assigned via DHCP unless it's a reserved address. Easiest solution is to make it static and use hosts resolution (unless you have a DNS server - preferred). If there's some reason to insist on dynamic assignment than use a DNS server configured to support dynamic updates or possibly set Samba up as a WINS server, build it with winbind, set the print server to register itself with the WINS server, then use wins as an option in nsswitch.conf (clearly reaching a bit, maybe workable, and the least desirable option).

I do repeat, for the OP, and with emphasis - give it a static IP address.

Chris
I tried the "http://hostname:631/printers/queue" syntax and still get nothing from the printer. Did I miss something or overlook something here?

Thanks!

OMR
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Fri Jun 15, 2007 3:18 pm    Post subject: Maybe I Got it but have a ! Reply with quote

Dark,

Reading back over you input I found this HOWTO page {http://gentoo-wiki.com/HOWTO_Add_a_gentoo_server_to_a_windows_network} and maybe I got it now, but have a Q on one line in the smb.conf file:
Code:
#        password server = YOUR PDC
which I commented out, because I do not know what I'm supposed to be entering here. Can you help?

File now contains:
Code:
[global]
#-------[ Net Hood Settings ]
        workgroup = DAVISOFT
        netbios name = GENTOO_NYLE
        server string = Samba Server
        socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 IPTOS_LOWDELAY
   wins support = yes
   hostname lookups = yes
   name resolve order = wins lmhosts host bcast

#-------[ Log Level ]
        log level = 2

#-------[ Server Role Settings ]
        guest ok = Yes
        security = DOMAIN
#        password server = YOUR PDC
        encrypt passwords = true

#-------[NT ACL Compatability]
        nt acl support = true
        create mode = 0644
        directory mode = 0755

#-------[ Winbind communication ]
        idmap uid = 15000-20000
        idmap gid = 15000-20000
        winbind use default domain = Yes

#-------[ Printserver information ]
        printcap name = cups
        cups options = "raw"
        disable spoolss = yes
        show add printer wizard = no
        printing = cups
        security mask = 0777

#-------[ All Printer information ]
[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
        write list = root

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No
        create mode = 0700

[HP-4L]
   comment = HP-4L on Windows Server
   writable = no
   browseable = yes
   printable = yes
   public = yes
   create mask = 0777
   # create mode = 0700
   path = /etc/samba/smbprint

#-------[ Shares ]
[install_cds]
   comment = Server Connect = CDs
   path = /var/shared-files/install_cds
   browseable = yes
   writable = yes
   valid users = all my users
   public = no
   printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777

[bids_plans]
   comment = Downloaded Plan Files for Bidding
   path = /var/shared-files/bids_plans
   browseable = yes
   writable = yes
   valid users = all my users
   public = no
   printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777

[print_howto]
   comment = Printing Setup Howto Files
   path = /var/shared-files/print_howto
   browseable = yes
   writable = yes
   valid users = all my users
   public = no
   printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777

[school]
   comment = Folder for North Lake College Unix Classes
   path = /var/shared-files/school
   browseable = yes
   writable = yes
   valid users = all my users
   public = no
   printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777
I found this when I stumbled on the the comment you made about the nsswitch.conf file, which had not registered with me first time through.

My nsswitch.conf file contains:
Code:
# /etc/nsswitch.conf:

passwd:         compat winbind
group:          compat winbind
shadow:         compat

hosts:       files dns wins
networks:    files dns

services:    db files
protocols:   db files
rpc:         db files
ethers:      db files
netmasks:    files
netgroup:    files
bootparams:  files

automount:   files
aliases:     files

netgroup:       nis
Now when I restart Samba I get:
Code:
localhost print_howto # /etc/init.d/samba restart
 * samba -> start: smbd ...                                                                [ ok ]
 * samba -> start: nmbd ...                                                                [ !! ]
 * Error: stopping services (see system logs at /var/log/samba/* )
 * samba -> stop: smbd ...                                                                 [ ok ]
 * samba -> stop: nmbd ...                                                                 [ !! ]

log.smbd
[2007/06/15 10:05:33, 0] smbd/server.c:main(847)
  smbd version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/06/15 10:05:33, 2] param/loadparm.c:do_section(3704)
  Processing section "[print$]"
[2007/06/15 10:05:33, 2] param/loadparm.c:do_section(3704)
  Processing section "[printers]"
[2007/06/15 10:05:33, 2] param/loadparm.c:do_section(3704)
  Processing section "[HP-4L]"
[2007/06/15 10:05:33, 2] param/loadparm.c:do_section(3704)
  Processing section "[install_cds]"
[2007/06/15 10:05:33, 2] param/loadparm.c:do_section(3704)
  Processing section "[bids_plans]"
[2007/06/15 10:05:33, 2] param/loadparm.c:do_section(3704)
  Processing section "[print_howto]"
[2007/06/15 10:05:33, 2] param/loadparm.c:do_section(3704)
  Processing section "[school]"
[2007/06/15 10:05:33, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file cups for read!
[2007/06/15 10:05:33, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file cups for read!
[2007/06/15 10:05:33, 2] lib/interface.c:add_interface(81)
  added interface ip=192.168.1.108 bcast=192.168.1.255 nmask=255.255.255.0
[2007/06/15 10:05:33, 2] lib/tallocmsg.c:register_msg_pool_usage(61)
  Registered MSG_REQ_POOL_USAGE
[2007/06/15 10:05:33, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2007/06/15 10:05:33, 2] smbd/server.c:open_sockets_smbd(384)
  waiting for a connection

log.nmbd
BLANK


I'm assuming the error is because I don't have this PDC statement right?

Thanks!

OMR
Back to top
View user's profile Send private message
Carter McArthur
n00b
n00b


Joined: 21 Nov 2006
Posts: 3

PostPosted: Fri Jun 15, 2007 7:42 pm    Post subject: Me Too! Reply with quote

All/Dark,

Been involved in this with OMR and following along. He and I, since we are on the same network, decided my computer will be the PDC, so posting my smb.conf to make sure, I'm not screwing myself. Could use some help here as we need to resolve our problem. We feel we are close, but still no potato.

smb.conf
Code:
[global]
#-------[ Net Hood Settings ]
     workgroup = Davisoft
   netbios name = Gentoo_Carter
   server string = Samba Server
        # server string = PDC [on Gentoo :: Samba server %v]
        socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 IPTOS_LOWDELAY
   wins support = yes
#   hostname lookups = yes
   name resolve order = wins lmhosts host bcast
#   hosts allow = 192.168.4.0/24 127.0.0.0/8
   encrypt passwords = yes
   interfaces = eth0
   bind interfaces only = yes

#-------[ Log Level ]
        log level = 2
   log file = /var/log/samba/log.%m
   max log size = 150

#-------[ Server Role Settings ]
        guest ok = Yes
        security = DOMAIN
   os level = 65
        password server = Davisoft
        encrypt passwords = true
   domain master = yes
   preferred master = yes
   domain logons = yes
   logon script = login.bat  OR %U.bat
   logon path = \\%L\profiles\%U
   logon drive = H:
   logon home = \\%L\%U\.9xprofile
   time server = yes
   smb passwd file = /var/lib/samba/private/smbpasswd
   dns proxy = no

#-------[NT ACL Compatability]
        nt acl support = true
        create mode = 0644
        directory mode = 0755

#-------[ Winbind communication ]
        idmap uid = 15000-20000
        idmap gid = 15000-20000
        winbind use default domain = Yes

#-------[ User Profiles ]
[profiles]
   path = /var/lib/samba/profiles
   browseable = no
   writeable = yes
   default case = lower
          unix charset = ISO8859-1
   preserve case = no
   short preserve case = no
   case sensitive = no
   hide files = /desktop.ini/ntuser.ini/NTUSER.*/
   write list = @smbusers @root
   create mask = 0600
   directory mask = 0700
   csc policy = disable
   add user script = /usr/sbin/useradd -m %u
   delete user script = /usr/sbin/userdel -r %u
   add group script = /usr/sbin/groupadd %g
   delete group script = /usr/sbin/groupdel %g
   add user to group script = /usr/sbin/usermod -G %g %u
   add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
   passwd program = /usr/bin/passwd %u
   passwd chat = "*New password:*" %n\r "*New password (again):*" %n\r \ "*Password changed*"
#   smbpasswd -a your_user
   smbpasswd -a root

#-------[ User Logins ]
[netlogon]
    path = /var/lib/samba/netlogon
    guest ok = no
    read only = yes
    browseable = no

#-------[ User Default Dir ]
[homes]
    path = /home/%U
    browseable = no
    valid users = %S
    read only = no
    guest ok = no
    inherit permissions = yes

#-------[ Public Defaults ]
[public]
    comment = Public Stuff
    path = /public
    public = yes
    read only = yes
    browseable = yes
    write list = @users

#-------[ Printserver information ]
# [printing]
   encrypt passwords = yes
   lock directory = /usr/local/samba/var/lock
   interfaces = eth0             # the interface to the local network
   security = user
        printcap name = cups
        cups options = "raw"
        disable spoolss = yes
   browseable = yes
   load printers = yes
   use client driver = yes
        show add printer wizard = yes
        printing = cups
        security mask = 0777

#-------[ All Printer information ]
[print$]
   guest ok = no
   browseable = yes
   read only = yes
        comment = Printer Drivers
        path = /var/lib/samba/printers
   #  write list = username,root
        write list = root

[printers]
   comment = All Printers
   path = /var/spool/samba
   public = yes
   # writable = no
   printable = yes
   #  printer admin = printer_username,root
   printer admin = root,
        create mode = 0700
   create mask = 0600
   guest ok = Yes
   printable = Yes
   printer name = HP4L
   use client driver = Yes
   browseable = No

[HP4L]
   comment = Networked HP4L Printer
   path = /var/spool/samba
   # path = //sca18563/p1
   public = yes
   guest ok = yes
   printer admin = root
   printable = Yes
   guest ok = Yes

#-------[ Shares ]
[carter]
   comment = Carter's Folder
   path = /usr/share/carter
   guest = ok
   browseable = yes
   writeable =yes
   valid users = administrator nyle root ironfoot
   public = no
   printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777

[exchange]
   comment = TechBench
   path = /usr/share/exchange
        guest = ok
        browseable = yes
        writeable =yes
        valid users = administrator nyle root ironfoot
        public = no
        printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777

[teststuff]
        comment = TechBench 
        path = /usr/share/teststuff
        guest = ok
        browseable = yes
        writeable =yes
        valid users = administrator nyle root ironfoot
        public = no
        printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777


Thanks All!

Carter/IronFoot
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Mon Jun 18, 2007 8:27 pm    Post subject: PDC? Maybe? Reply with quote

All,

Carter/Ironfoot has most of the PDC configured, I think we still have some tweaking on this at the user creation/dfinition level, but think the rest is running OI. At least SAMBA is up.

So now I guess I still need to work out why I'm getting errors.

OMR
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Mon Jun 18, 2007 9:18 pm    Post subject: Samba Working again! Reply with quote

All,

Got Samba back up! Help from IRC was to run "ps aux" which showed 3 sessions of nmbd running. Killed them and Samba restarted just fine. Now back to the host resolution problem and ultimately the printing!

When I run "nmap" I get:
Code:
Starting Nmap 4.20 ( http://insecure.org ) at 2007-06-18 16:20 CDT
Host 192.168.1.1 appears to be up.
MAC Address: 00:16:B6:A8:84:17 (Cisco-Linksys)
Host 192.168.1.101 appears to be up.
MAC Address: 00:0C:F1:B1:8B:EA (Intel)
Host Server (192.168.1.102) appears to be up.
MAC Address: 00:14:2A:0E:CE:FC (Elitegroup Computer System Co.)
Host HP4L (192.168.1.103) appears to be up.
MAC Address: 00:14:BF:FC:28:79 (Cisco-Linksys)
Host TechBench (192.168.1.104) appears to be up.
MAC Address: 00:16:6F:18:33:0E (Intel)
Host 192.168.1.107 appears to be up.
MAC Address: 00:0E:A6:4E:1D:9A (Asustek Computer)
Host GenToo_Nyle (192.168.1.108) appears to be up.
Host 192.168.1.110 appears to be up.
MAC Address: 00:40:CA:A6:83:68 (First Internat'l Computer)
Nmap finished: 256 IP addresses (8 hosts up) scanned in 5.639 seconds
As you can see the printer shows as 192.168.1.103, but CUPS/IIP does not find it.

I defined 2 printer sessions (HP4L and HP4LJ) one with http://192.168.1.103:631 the other with ipp://192.168.1.103 and neither work. I've also tried the HP JetDirect settings and nothing there either. Since my printer server has 3 ports P1-P3, I've tried the config both with and without the port def and still nothing.

Found nyself in the middle of the HOWTO at: http://gentoo-wiki.com/HOWTO_Add_a_gentoo_server_to_a_windows_network at the point where I enter the commands:
Code:
wbinfo -u
wbinfo -g
getent passwd
getent group
Getting these errors:
Code:
localhost etc # wbinfo -u
Error looking up domain users
localhost etc # wbinfo -g
Error looking up domain groups
We setup PDC on another computer and thought it was right!

Any suggestions on what to do now?

Thanks!

OMR
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Mon Jun 18, 2007 9:55 pm    Post subject: Duh! Reply with quote

All,

Quote:
We setup PDC on another computer and thought it was right!
Man am I asleep or what? Just noticed the PDC is not in the listing. It is GenToo_Carter and I know you don't see it either. Now I have to see why not! Be back after I figure that out!

OMR
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Thu Jun 21, 2007 3:19 am    Post subject: Pastebin Reply with quote

Dark,

I put the file on pastebin at:

http://pastebin.ca/580502

I'm not being lazy. I just copied this whole thing verbatum from a HOWTO, except for my shares, and don't have enough knowledge yet to know what command or parm effects what process, etc.

Had already posted before getting your feedback, because /dev/hdb2 blew and I had to get help from IRC to get fsck to run and fix the /var partition. I'm deleting the printer share and adding it in the printers.conf file, which I found I actually already had defined. Just not sure if that def is right, maybe a pastebin on that is in order?

I could sure use your help if you quickly commented out the lines you think are whacking me and reposted on pastebin.

Thanks!

OMR
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Thu Jun 21, 2007 3:50 am    Post subject: Latest File & Errors Reply with quote

All,

Here is the latest file and errors from restart:
Code:
[global]
#-------[ Net Hood Settings ]
        workgroup = workgroup
        netbios name = NB_Name
        server string = Samba Server
        socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 IPTOS_LOWDELAY
   wins support = yes
   hostname lookups = yes
   name resolve order = wins lmhosts host bcast

#-------[ Log Level ]
        log level = 2

#-------[ Server Role Settings ]
        guest ok = Yes
        security = user
#        security = DOMAIN
#        password server = YOUR PDC
#        encrypt passwords = true

#-------[NT ACL Compatability]
        nt acl support = true
        create mode = 0644
        directory mode = 0755

#-------[ Winbind communication ]
        idmap uid = 15000-20000
        idmap gid = 15000-20000
        winbind use default domain = Yes

#-------[ Printserver information ]
        printcap name = cups
        cups options = "raw"
        disable spoolss = yes
        show add printer wizard = yes
        printing = cups
        security mask = 0777

#-------[ Shares ]
[install_cds]
   comment = Server Connect = CDs
   path = /var/shared-files/install_cds
   browseable = yes
   writable = yes
   valid users = administrator nyle root
   public = no
   printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777

[bids_plans]
   comment = Downloaded Plan Files for Bidding
   path = /var/shared-files/bids_plans
   browseable = yes
   writable = yes
   valid users = administrator nyle root
   public = no
   printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777

[print_howto]
   comment = Printing Setup Howto Files
   path = /var/shared-files/print_howto
   browseable = yes
   writable = yes
   valid users = administrator nyle root
   public = no
   printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777

[school]
   comment = Folder for North Lake College Unix Classes
   path = /var/shared-files/school
   browseable = yes
   writable = yes
   valid users = administrator nyle root
   public = no
   printable = no
        inherit permissions = Yes
        inherit acls = yes
        create mask = 0644
        guest ok = no
        security mask = 0777
Restart gives these errors:
Code:
[2007/06/20 22:30:42, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
 
  Samba name server GENTOO_NYLE is now a local master browser for workgroup DAVISOFT on subnet 192.168.1.108
 
  *****
[2007/06/20 22:30:42, 0] nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name DAVISOFT<1b> for the workgroup DAVISOFT.
  Unable to sync browse lists in this workgroup.
[2007/06/20 22:33:50, 0] nmbd/nmbd.c:terminate(58)
  Got SIGTERM: going down...
We disignated another GenToo box as PDC, thinking we might have PDC def errors on it, causing this.

Any thoughts?

Thanks!

OMR
Back to top
View user's profile Send private message
OldManRiver
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2007
Posts: 79

PostPosted: Wed Jun 27, 2007 1:46 pm    Post subject: Working on Ubuntu Reply with quote

All,

After all the trashing about to find a solutions, found this URI where someone makes it work on Ubuntu (We switched to our PS110 also, but still not working here), even after following this procedure:

http://ubuntuforums.org/archive/index.php/t-225387.html

There is also a related posting at:

http://forum1.netgear.com/showthread.php?t=7489&highlight=linux

What is missing in Gentoo that is present in Ubuntu?

Thanks!

OMR
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum