Hi Shawn,

If you don't care about users having to login (password), then take a look at 
my smb.conf below.

I share files, printers and incoming faxes.
I didn't want to worry about passwords so I set it up for only specific IP 
address's could connect.  That way my users don't need to worry about 
passwords and if we have visitors with laptops they can connect to our 
network to surf the web but not our internal network. But still use the 
printer if they need to.


Hope this is helpful.

Jason


# Global parameters
[global]
        writable = yes
        netbios name = JASON
        public = yes
        security = SHARE
        create mask = 0777
        directory mask = 0777

[printers]
        path = /var/spool/samba
        lprm command = cancel %p-%j
        lpq command = lpstat -o %p
        comment = All Printers
        print command = lpr-cups -P %p -o raw %s -r   # using client side printer 
drivers.
        printable = yes
        create mask = 0700

[user]
        path = /home/razor/User
        comment = User files
        allow hosts = 192.168.0.20 192.168.0.17 192.168.0.18 192.168.0.4 192.168.0.6 
192.168.0.7 192.168.0.200 192.168.0.254 192.168.0.9 192.168.0.15 192.168.0.19

[jose]
        path = /home/jose/Documents
        comment = Jose's files
        allow hosts = 192.168.0.18 192.168.0.4 192.168.0.6 192.168.0.7 192.168.0.200 
192.168.0.254 192.168.0.9 192.168.0.19

[recvq]    
         comment = Fax Receive Queues    
         browsable = yes    
         path = /var/spool/fax/recvq    
         public = yes    
         writable = no








On Monday 10 November 2003 22:47, you wrote:
> Further reading leads me to believe that I need SMB support compiled into
> my kernel.  It's recompiling now, I should know in the next hour or so... 
> I'll post back to the list with the results.
>
> Shawn
>
> -----Original Message-----
> From: Shawn [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 10, 2003 10:15 PM
> To: CLUG (E-mail)
> Subject: (clug-talk) Samba Help?
>
>
> Hi all.
>
> I have Samba 2.2.8 setup on my server, and it is serving as my domain
> controller.  It works great in that I can connect to shares on the Linux
> server from my windows pc.  But....
>
> Today, I have the need to reverse the connection - connect to a windows
> share from the linux server.  This is failing miserably.  I've browsed the
> web and made various tweaks to my smb.conf file, but still no luck...
>
> Here's the Globals section of my smb.conf file:
>
> [global]
>         workgroup = O2S
>         netbios name = SNOW
>         server string = Server Snow
>         security = DOMAIN
>         encrypt passwords = Yes
>         password server = snow
>         log level = 1
>         log file = /var/log/samba/%m.log
>         max log size = 50
>         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>         domain admin group = @sysadmin
>         add user script = /usr/sbin/useradd -d /dev/null -g 100 -s
> /bin/false %u
>         logon script = login.cmd
>         logon drive = h:
>         domain logons = Yes
>         os level = 64
>         preferred master = Yes
>         domain master = Yes
>         dns proxy = No
>         admin users = @sysadmin root sgrover
>
> I'm trying to hook up a share on a Win2k box, where I have both a local and
> network user account, both with the same username (sgrover), and password.
> This name has been set via smbpasswd, and also matches my shell account.
>
> Here's some sample output:
>
> Try 1:
> snow root # smbclient -L peon -U sgrover
> added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0
> Got a positive name query response from 192.168.0.20 ( 192.168.0.20 )
> Password:
> session setup failed: NT_STATUS_LOGON_FAILURE
>
> Try 2:
> snow root # smbmount //peon/backup /root/peon -o
> credentials=//root/smb/cred.txt
> INFO: Debug class all level = 1   (pid 2458 from pid 2458)
> 2458: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
> SMB connection failed
>
> Try 3:
> snow root # mount -t smbfs //peon/backup /root/peon
> INFO: Debug class all level = 1   (pid 2467 from pid 2467)
> Password:
> 2467: session setup failed: ERRDOS - 2215
> SMB connection failed
>
> A search of my logs shows that it can't find a login server (only for these
> tests, otherwise, there's no errors....).  I'm thinking the bug is in my
> smb.conf file, but can't really see anything that looks right.  Any guru's
> see anything glaring?
>
> Thanks in advance for any tips.
>
> Shawn

-- 
~~~~~~~~~~~~~~~~~~~~~
Jason Van Dellen, C.E.T.
Trilogy-Net Inc.
#4; 1935 - 27Ave NE
Calgary, AB
T2E 7E4

www.trilogy-net.com
Phone (403) 219-8868
Fax  (403) 219-8860
Cell (403) 815-1626
Cell Email address:
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~

Reply via email to