Re: Samba setup or alternative?

2017-03-13 Thread Dan Purgert
Eduardo M KALINOWSKI wrote:
> On 11-03-2017 09:35, Johann Spies wrote:
>> Is there not a better way to mount spyker's home directory on my laptop?
>>
>
> If you can access it via ssh, you can try sshfs.
>

There's also NFS, which I find to be a little more tolerant of me :).

-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281



Re: Samba setup or alternative?

2017-03-11 Thread Johann Spies
On 11 Mar 2017 2:45 PM, "Eduardo M KALINOWSKI" 
wrote:

On 11-03-2017 09:35, Johann Spies wrote:
> Is there not a better way to mount spyker's home directory on my laptop?
>

If you can access it via ssh, you can try sshfs.


Thanks. I forgot about that. I did use it at work about 8 years ago.

Regards
Johann


Re: Samba setup or alternative?

2017-03-11 Thread Eduardo M KALINOWSKI
On 11-03-2017 09:35, Johann Spies wrote:
> Is there not a better way to mount spyker's home directory on my laptop?
>

If you can access it via ssh, you can try sshfs.


-- 
We just joined the civil hair patrol!

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Samba setup or alternative?

2017-03-11 Thread Johann Spies
As I do not use Windows, I was never fond of samba.

Now I want to have access from my laptop to my home directory on my Desktop
computer(home network server) which both run Debian Sid other than just ssh.

I want to be able to mount that directory on my laptop when needed.

I have worked through a number of Debian-related howto's on how to set up a
Samba server.  BTW most of them seems to me a bit outdated.

Anyhow, this is what I get:

$ smbclient -L //192.168.0.1/home/js/ -U js
Enter js's password:
Domain=[SPYKER] OS=[Windows 6.1] Server=[Samba 4.5.4-Debian]

Sharename   Type  Comment
-     ---
print$  Disk  Printer Drivers
IPC$IPC   IPC Service (Samba 4.5.4-Debian)
js  Disk  Home Directories
PDF Printer   PDF
Samsung-ML-191x-252x-Series Printer   Samsung ML-191x 252x Series
Domain=[SPYKER] OS=[Windows 6.1] Server=[Samba 4.5.4-Debian]

Server   Comment
----
SPYKER   Samba 4.5.4-Debian

WorkgroupMaster
----
SPYKER   SPYKER
14:23:25 js@spyker:/etc/samba$ smbclient  //192.168.0.1/home/js/ -U js
Enter js's password:
Domain=[SPYKER] OS=[Windows 6.1] Server=[Samba 4.5.4-Debian]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

>From what I have found searching on Duckduckgo.com the failure message
indicates a permission problem.  Apparently the permissions should be
0755.  I am not prepared to do that to my home directory on the Desktop
Computer.

Now my questions:

Why on earth is the OS indicated as Windows 6.1?
Is it possible to share my home directory on the Desktop (spyker) without
changing it's permissions?
Is there not a better way to mount spyker's home directory on my laptop?


My configuration in the 'homes'  section of smb.conf

[homes]
   comment = Home
Directories

   browseable = no
   read only =
no

   create mask =
0700

   directory mask =
0700



Regards
Johann


-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)


Re: Question about samba setup in Sarge

2005-09-29 Thread Aaron Maxwell
On Monday 26 September 2005 03:10 pm, Paul E Condon wrote:
 I am attempting to create a samba server on a Sarge box
 using pure Debian. I am looking at the /etc/samba/smb.conf

 I cannot find a file, ENCRYPTION.txt, on my computer or as part of
 any of the packages that I installed. Where can I obtain a copy of
 this file?

Hi,

I found this:
http://www.samba-tng.org/docs/tng/textdocs/ENCRYPTION.txt
It's dated August 2000.  I found some older versions, but nothing newer.  
This may be the most recent revision.

BTW, I found this through Google's advanced search, looking for URLs 
that contained samba and ENCRYPTION.txt.  

Also, if you speak Japanese, 'samba-doc-ja' contains a Japanese 
translation :)

-- 
Peace,
Aaron Maxwell - http://redsymbol.net
Skills for higher math - http://InnerAlgebra.com
COMING SOON: Retail Worker's Survival Guide - http://rwsg.us


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



RE: Question about samba setup in Sarge

2005-09-27 Thread Florian Dorpmueller

I cannot find a file, ENCRYPTION.txt, on my computer or as part of any
of the packages that I installed. Where can I obtain a copy of this file?


Have you tried to ask google?

Florian



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Question about samba setup in Sarge

2005-09-27 Thread Josh Battles
Paul E Condon said:
 I am attempting to create a samba server on a Sarge box
 using pure Debian. I am looking at the /etc/samba/smb.conf
 that was set up by the samba package and have a question
 about a comment in it, namely
 quote
 # You may wish to use password encryption. Please read ENCRYPTION.txt,
 # Win95.txt and WinNT.txt in the Samba documentation. Do not enable this
 /quote

 I cannot find a file, ENCRYPTION.txt, on my computer or as part of any
 of the packages that I installed. Where can I obtain a copy of this file?

Did you try looking in /usr/doc/samba?

-- 
- Josh
www.omg-stfu.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Question about samba setup in Sarge

2005-09-27 Thread Paul E Condon
On Tue, Sep 27, 2005 at 10:54:27AM -0500, Josh Battles wrote:
 Paul E Condon said:
  I am attempting to create a samba server on a Sarge box
  using pure Debian. I am looking at the /etc/samba/smb.conf
  that was set up by the samba package and have a question
  about a comment in it, namely
  quote
  # You may wish to use password encryption. Please read ENCRYPTION.txt,
  # Win95.txt and WinNT.txt in the Samba documentation. Do not enable this
  /quote
 
  I cannot find a file, ENCRYPTION.txt, on my computer or as part of any
  of the packages that I installed. Where can I obtain a copy of this file?
 
 Did you try looking in /usr/doc/samba?
 

I used locate to search for a file whose name contained ENCRY.  I found nothing.
And I do have samba-doc installed.

-- 
Paul E Condon   
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Question about samba setup in Sarge

2005-09-27 Thread Paul E Condon
On Tue, Sep 27, 2005 at 07:14:38AM +, Florian Dorpmueller wrote:
 I cannot find a file, ENCRYPTION.txt, on my computer or as part of any
 of the packages that I installed. Where can I obtain a copy of this file?
 
 Have you tried to ask google?
 

Yes, and I found only advice emails that tell people to look at it, not
a link to the actual file.

-- 
Paul E Condon   
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Question about samba setup in Sarge

2005-09-26 Thread Paul E Condon
I am attempting to create a samba server on a Sarge box
using pure Debian. I am looking at the /etc/samba/smb.conf
that was set up by the samba package and have a question
about a comment in it, namely
quote
# You may wish to use password encryption. Please read ENCRYPTION.txt,
# Win95.txt and WinNT.txt in the Samba documentation. Do not enable this
/quote

I cannot find a file, ENCRYPTION.txt, on my computer or as part of any
of the packages that I installed. Where can I obtain a copy of this file?

TIA
-- 
Paul E Condon   
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: samba setup tips?

2005-07-14 Thread David Clymer
On Wed, 2005-07-13 at 21:54 -0500, Josh Battles wrote:
 David Clymer said:
  Please remember to reply to the list, not to the individual. I
  will reply on-list so that everyone can (hopefully) benefit
  from our exchange.
 
 Sorry about that.
 
  On Tue, 2005-07-12 at 08:42 -0500, Josh Battles wrote:
  David Clymer said:
 
   When you say that you can't log on, do you mean that your
   username/password is rejected, or that you just dont see any shared
   folders? What error messages are you getting on the clients when they
   attempt to log on?
 
  My username and password is rejected.  My Debian desktop picked up almost
  instantly a folder called shared on beer (beer is the server hostname)
  and
  popped it on the desktop when I booted.  I'm able to see that same folder
  in
  Win2k but not access it from either OS.
 
  For each computer (NT,2k,XP) that logs on to your domain, you will need to
  have set up a trust account:
 
  $ adduser --home /dev/null --shell /bin/false --ingroup machine
  --force-badname --no-create-home --disabled-login --gecos Machine Trust
  Account MYCOMPUTER$
  $ smbpasswd -m -a MYCOMPUTER
 
 So, if I'm going to add a user called cletusjones to my box called beer
 it would go something like this:
 
 adduser cletusjones --home /dev/null --shell /bin/false --ingroup machine
 --force-badname --no-create-home --disables-login --gecos Machine Trust
 Account BEER
 

no. you add the user account and machine accounts separately, and the
unix computer account must end with a dollar sign. As per my examples.

 and:
 
 smbpasswd ** -m -a BEER
 
 correct?

no.

in unix, most commands have a manual page explaining their options,
syntax, etc. please read the man page to find out what is wrong with
your usage. type:

$ man smbpasswd

 
  for each user that logs on or accesses shares, you need to have a unix and
  samba account:
 
  $ adduser --shell /bin/false --disabled-login userbob
  $ gpasswd -a userbob samba
  $ smbpasswd -a userbob
 
 For these statements, I'm replacing userbob with my usernames and that
 should just be it, yes?

yes.

You might find this helpful:

http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/

-davidc

-- 
gpg-key: http://www.zettazebra.com/files/key.gpg


signature.asc
Description: This is a digitally signed message part


Re: samba setup tips?

2005-07-13 Thread Josh Battles
David Clymer said:
 Please remember to reply to the list, not to the individual. I
 will reply on-list so that everyone can (hopefully) benefit
 from our exchange.

Sorry about that.

 On Tue, 2005-07-12 at 08:42 -0500, Josh Battles wrote:
 David Clymer said:

  When you say that you can't log on, do you mean that your
  username/password is rejected, or that you just dont see any shared
  folders? What error messages are you getting on the clients when they
  attempt to log on?

 My username and password is rejected.  My Debian desktop picked up almost
 instantly a folder called shared on beer (beer is the server hostname)
 and
 popped it on the desktop when I booted.  I'm able to see that same folder
 in
 Win2k but not access it from either OS.

 For each computer (NT,2k,XP) that logs on to your domain, you will need to
 have set up a trust account:

 $ adduser --home /dev/null --shell /bin/false --ingroup machine
 --force-badname --no-create-home --disabled-login --gecos Machine Trust
 Account MYCOMPUTER$
 $ smbpasswd -m -a MYCOMPUTER

So, if I'm going to add a user called cletusjones to my box called beer
it would go something like this:

adduser cletusjones --home /dev/null --shell /bin/false --ingroup machine
--force-badname --no-create-home --disables-login --gecos Machine Trust
Account BEER

and:

smbpasswd ** -m -a BEER

correct?

 for each user that logs on or accesses shares, you need to have a unix and
 samba account:

 $ adduser --shell /bin/false --disabled-login userbob
 $ gpasswd -a userbob samba
 $ smbpasswd -a userbob

For these statements, I'm replacing userbob with my usernames and that
should just be it, yes?


-- 
- Josh
www.omg-stfu.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: samba setup tips?

2005-07-12 Thread David Clymer
Please remember to reply to the list, not to the individual. I
will reply on-list so that everyone can (hopefully) benefit
from our exchange.

On Tue, 2005-07-12 at 08:42 -0500, Josh Battles wrote: 
 David Clymer said:
 
  When you say that you can't log on, do you mean that your
  username/password is rejected, or that you just dont see any shared
  folders? What error messages are you getting on the clients when they
  attempt to log on?
 
 My username and password is rejected.  My Debian desktop picked up almost
 instantly a folder called shared on beer (beer is the server hostname) and
 popped it on the desktop when I booted.  I'm able to see that same folder in
 Win2k but not access it from either OS.

For each computer (NT,2k,XP) that logs on to your domain, you will need to have 
set up a trust account:

$ adduser --home /dev/null --shell /bin/false --ingroup machine --force-badname 
--no-create-home --disabled-login --gecos Machine Trust Account MYCOMPUTER$
$ smbpasswd -m -a MYCOMPUTER

for each user that logs on or accesses shares, you need to have a unix and 
samba account:

$ adduser --shell /bin/false --disabled-login userbob
$ gpasswd -a userbob samba
$ smbpasswd -a userbob

The only password that matters to the user is the samba password.
The unix account provides a way to map users to unix permissions.

In order for a user to access a samba share, they must have
appropriate unix permissions on the folder, and also
meet any additional requirements set up in the share's
configuration in smb.conf

 
  What version of windows are you refering to? Win XP, 98?
 
 Win2k and WinXP
 
  This option conflicts with the encrypt passwords = true that you have
  set above. You may as well comment this out, since pam is ignored when
  passwords are encrypted (see man smb.conf).
 
 I must have missed that, I read that man page several times.  I'll comment it
 out.
 

There's a lot to read. It's easy to miss stuff.

 
  Your samba config does not have this directory shared.
 
 Using swat, I was able to create this share but am still unable to log into 
 it.
 
  I'm new to this, I've only used linux as a desktop before, but since my old
  NT4 server died I thought I'd give it a try and see what it's got to offer
  there as well.  I'm fairly familiar with configuration for desktop stuff
  but
  as all this server stuff is new to me I'm lost.  Thanks in advance.
 
  Was your NT server acting as a PDC? In other words, are you hoping to
  have samba work as a domain controller or just a win 95/98 type file
  server?
 
 Yes, the NT server was actind as a domain controller.  I was hoping to setup
 this server as the same but I've not gotten that far yet.  Should I be
 setting it up as a domain controller before I setup samba?
 

You probably want to set it all up at once. Here are the main portions
of my config to get you started.



#=== Global Settings ===

[global]

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d

# Change this for the workgroup/NT-domain name your Samba server will part of
   workgroup = MAINST

# server string is the equivalent of the NT Description field
   server string = File server
   netbios name = VADER

# allow connections from all localnets except mail server and firewall
   hosts allow = 192.168. 10.0.1.2 EXCEPT 192.168.10.2

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   load printers = yes

# You may wish to override the location of the printcap file
;   printcap name = /etc/printcap

# 'printing = cups' works nicely
   printing = bsd
   print command = lpr -P %p -h %s ; rm %s
   lpq command = lpq -P %p
   lprm command = lprm -P %p %j
#   lppause command =
#   lpresume command =

#

;   guest account = nobody
;   invalid users = root

# user maps
   username map = /etc/samba/usermap.conf

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 2000

# Set level of logging
   log level = 2

# If you want Samba to log though syslog only then set the following
# parameter to 'yes'. Please note that logging through syslog in
# Samba is still experimental.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smb,nmb} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# security = user is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# security_level.txt for details.
   security = user

# You may wish to use password encryption. Please read ENCRYPTION.txt,
# Win95.txt and WinNT.txt in the Samba documentation. Do not enable this
# option unless you have read those 

Re: samba setup tips?

2005-07-10 Thread David Clymer
On Sat, 2005-07-09 at 15:12 -0500, Josh Battles wrote:
 I'm having a few problems setting up samba on my server and I was hoping that
 the list would be able to shed some light on my issue for me and point me in
 the right direction.
 
 I've installed all the required pieces of samba and started the daemons and
 set each user's samba password by using the command smbpasswd -a username. 
 I can see the samba share from every other pc on my network but am unable to
 log into it from either linux or windows.  What am I missing?
 

When you say that you can't log on, do you mean that your
username/password is rejected, or that you just dont see any shared
folders? What error messages are you getting on the clients when they
attempt to log on?

What version of windows are you refering to? Win XP, 98?

 Here's my samba.conf file:
 

 
 
 ### Authentication ###
 
 # security = user is always a good idea. This will require a Unix account
 # in this server for every user accessing the server. See
 # /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
 # package for details.
security = user
 
 # You may wish to use password encryption.  See the section on
 # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
encrypt passwords = true
 
 # If you are using encrypted passwords, Samba will need to know what
 # password database type you are using.
passdb backend = tdbsam guest
 
obey pam restrictions = yes
 

This option conflicts with the encrypt passwords = true that you have
set above. You may as well comment this out, since pam is ignored when
passwords are encrypted (see man smb.conf).


 
 Oddly enough, the directory /shared is what I'm trying to share via samba.
 

Your samba config does not have this directory shared.

 I'm new to this, I've only used linux as a desktop before, but since my old
 NT4 server died I thought I'd give it a try and see what it's got to offer
 there as well.  I'm fairly familiar with configuration for desktop stuff but
 as all this server stuff is new to me I'm lost.  Thanks in advance.

Was your NT server acting as a PDC? In other words, are you hoping to
have samba work as a domain controller or just a win 95/98 type file
server?

-davidc

-- 
gpg-key: http://www.zettazebra.com/files/key.gpg


signature.asc
Description: This is a digitally signed message part


samba setup tips?

2005-07-09 Thread Josh Battles
I'm having a few problems setting up samba on my server and I was hoping that
the list would be able to shed some light on my issue for me and point me in
the right direction.

I've installed all the required pieces of samba and started the daemons and
set each user's samba password by using the command smbpasswd -a username. 
I can see the samba share from every other pc on my network but am unable to
log into it from either linux or windows.  What am I missing?

Here's my samba.conf file:

#=== Global Settings ===

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = bacon

# server string is the equivalent of the NT Description field
   server string = %h server (Samba %v)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
;   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast


 Debugging/Accounting 

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


### Authentication ###

# security = user is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
# package for details.
   security = user

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
   passdb backend = tdbsam guest

   obey pam restrictions = yes

;   guest account = nobody
   invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
;   unix password sync = no

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton [EMAIL PROTECTED] for
# sending the correct chat script for the passwd program in Debian Potato).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
;   pam password change = no


## Printing ##

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;   printing = cups
;   printcap name = cups

# When using [print$], root is implicitly a 'printer admin', but you can
# also give this right to other users to add drivers and set printer
# properties
;   printer admin = @ntadmin


 File sharing 

# Name mangling options
;   preserve case = yes
;   short preserve case = yes


 Misc 

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
# for details
# You may want to add the following on a Linux system:
# SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c 

Re: samba setup tips?

2005-07-09 Thread Marty

Josh Battles wrote:


   obey pam restrictions = yes


Is PAM correctly configured?  Have you tried it without PAM?
I don't use it myself, so I won't be of much help if you need
that option.

As for setup tips, from the looks of your smb.conf it seems
you are not using SWAT, and have started from a very old default
setup.  I think SWAT is nearly indispensible for beginners, and
it may highlight some config details you are overlooking.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: samba setup tips?

2005-07-09 Thread Greg Madden
On Saturday 09 July 2005 12:12 pm, Josh Battles wrote:
 I'm having a few problems setting up samba on my server and I was
 hoping that the list would be able to shed some light on my issue for
 me and point me in the right direction.

 I've installed all the required pieces of samba and started the
 daemons and set each user's samba password by using the command
 smbpasswd -a username. I can see the samba share from every other
 pc on my network but am unable to log into it from either linux or
 windows.  What am I missing?

 Here's my samba.conf file:

 #=== Global Settings ===

 [global]

 ## Browsing/Identification ###

 # Change this to the workgroup/NT-domain name your Samba server will
 part of workgroup = bacon

 # server string is the equivalent of the NT Description field
server string = %h server (Samba %v)

 # Windows Internet Name Serving Support Section:
 # WINS Support - Tells the NMBD component of Samba to enable its WINS
 Server ;   wins support = no

 # WINS Server - Tells the NMBD components of Samba to be a WINS
 Client # Note: Samba can be either a WINS Server, or a WINS Client,
 but NOT both ;   wins server = w.x.y.z

 # This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

 # What naming service and in what order should we use to resolve host
 names # to IP addresses
 ;   name resolve order = lmhosts host wins bcast


  Debugging/Accounting 

 # This tells Samba to use a separate log file for each machine
 # that connects
log file = /var/log/samba/log.%m

 # Put a capping on the size of the log files (in Kb).
max log size = 1000

 # If you want Samba to only log through syslog then set the following
 # parameter to 'yes'.
 ;   syslog only = no

 # We want Samba to log a minimum amount of information to syslog.
 Everything # should go to /var/log/samba/log.{smbd,nmbd} instead. If
 you want to log # through syslog you should set the following
 parameter to something higher. syslog = 0

 # Do something sensible when Samba crashes: mail the admin a
 backtrace panic action = /usr/share/samba/panic-action %d


 ### Authentication ###

 # security = user is always a good idea. This will require a Unix
 account # in this server for every user accessing the server. See
 # /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
 # package for details.
security = user

 # You may wish to use password encryption.  See the section on
 # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
encrypt passwords = true

 # If you are using encrypted passwords, Samba will need to know what
 # password database type you are using.
passdb backend = tdbsam guest

obey pam restrictions = yes

 ;   guest account = nobody
invalid users = root

 # This boolean parameter controls whether Samba attempts to sync the
 Unix # password with the SMB password when the encrypted SMB password
 in the # passdb is changed.
 ;   unix password sync = no

 # For Unix password sync to work on a Debian GNU/Linux system, the
 following # parameters must be set (thanks to Augustin Luton
 [EMAIL PROTECTED] for # sending the correct chat script for the
 passwd program in Debian Potato). passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
 *Retype\snew\sUNIX\spassword:* %n\n .

 # This boolean controls whether PAM will be used for password changes
 # when requested by an SMB client instead of the program listed in
 # 'passwd program'. The default is 'no'.
 ;   pam password change = no


 ## Printing ##

 # If you want to automatically load your printer list rather
 # than setting them up individually then you'll need this
 ;   load printers = yes

 # lpr(ng) printing. You may wish to override the location of the
 # printcap file
 ;   printing = bsd
 ;   printcap name = /etc/printcap

 # CUPS printing.  See also the cupsaddsmb(8) manpage in the
 # cupsys-client package.
 ;   printing = cups
 ;   printcap name = cups

 # When using [print$], root is implicitly a 'printer admin', but you
 can # also give this right to other users to add drivers and set
 printer # properties
 ;   printer admin = @ntadmin


  File sharing 

 # Name mangling options
 ;   preserve case = yes
 ;   short preserve case = yes


  Misc 

 # Using the following line enables you to customise your
 configuration # on a per machine basis. The %m gets replaced with the
 netbios name # of the machine that is connecting
 ;   include = /home/samba/etc/smb.conf.%m

 # Most people will find that this option gives better performance.
 # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
 # for details
 # You may want to add the following on a Linux system:
 # SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY

 # The following parameter is useful only if you have the linpopup
 package # installed. The samba 

SAMBA setup from newbie

2003-08-09 Thread Terence Ng
Hi!

I have just install Samba by running:
apt-get -t testing install samba

then I would like to try listing the shares available
on my server by running:
smbclient -L knight(myhostname)

but the computer output:
bash: smbclient: command not found

after I run testparm it outputs:
Load smb config files from /etc/samba/smb.conf
Processing section [homes]
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
 workgroup = GODDESS OFFICE
 server string = %h server (Samba %v)
 obey pam restrictions = Yes
 passdb backend = tdbsam, guest
 passwd program = /usr/bin/passwd %u
 passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword: %n\n .
 syslog = 0
 log file = /var/log/samba/log.%m
 max log size = 1000
 dns proxy = No
 wins support = Yes
 panic action = /usr/share/samba/panic-action %d
 invalid users = root

[homes]
 comment = Home Directories
 create mask = 0700
 directory mask = 0700
 browseable = No


I am also using Windows XP.  I can see my linux
computer in XP, but it never activate when I typed in
login and password.  I just want to work the files
between XP and linux, and store the files in linux.

Best regards,
Terence

___
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: SAMBA setup from newbie

2003-08-09 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sat, Aug 09, 2003 at 07:25:26PM +0800, Terence Ng wrote:
 smbclient -L knight(myhostname)
 
 but the computer output:
 bash: smbclient: command not found

apt-get install smbclient

- -- 
 .''`. Paul Johnson [EMAIL PROTECTED]
: :'  :proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than fix a system
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/NN/isClmdIs2Ki8RAoV4AJ95X1Vl/zx3Rgk3vznXLk8eL7YazwCeMhCm
iwnF+3exG1v44h7/kuS1yqA=
=vXpQ
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Samba setup question: security setting

2003-01-01 Thread Kent West


Quoting Bill Moseley [EMAIL PROTECTED]:
 

I suppose this has nothing to do with Debain, but what does it mean to be
a Primary Domain Controler?  And does that apply to Win98 and WinME
machines or only W2K/XP/NT machines?


   


In a networked environment using WinNT, 2K, XP Pro (and perhaps 98 and 
ME, and 95 with some ugliness), the Primary Domain Controller (and 
Backup Domain Controller(s) - PDC  BDC(s) respectively) serve as a 
central authentication server. For example, in a college environment, 
you might have 1000 faculty/staff and 6000 students, many of them going 
from one computer lab to another. The lab machines are configured not to 
authenticate users themselves, but to look to the domain controllers to 
determine if Joe Student is a valid user and has a valid password and is 
logging in at a valid time from a valid place and can use this printer 
but not that one and can mount this network drive share but not that one.

Samba can function as a PDC, so that you don't have an unreliable 
Windows box in the server room performing this essential task.

As indicated above, I'm not sure how well the Win9x/ME series plays in 
the mix, and I believe the WinXP Home (not Pro) also has some issues 
playing in such an environment.


Kent



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Samba setup question: security setting

2003-01-01 Thread Clive Standbridge
On Tue 31 Dec 2002 07:33:26 +(-0800), Bill Moseley wrote:
 
 Also, when I followed the instructions for setting up CUPS for printing
 trying to print from Windows to linux asked for a password.  Password for
 what user??
 
 This is what I finally setup for my printer to allow access:
 
 [printers]

comment = All Printers
browseable = no
path = /tmp
printable = yes
 # change to public
public = yes
guest ok = yes
writable = no
create mode = 0700

Bill, I think you also need guest only = Yes to suppress the password.
This works for me from Windows 95a, and with share level security.

Here's my printers section:

[printers]
comment = All Printers
path = /tmp
create mask = 0700
guest only = Yes
guest ok = Yes
printable = Yes
printing = cups
print command = lpr -oraw -r -P'%p' %s
browseable = No


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba setup question: security setting

2003-01-01 Thread Lourens Steenkamp
Lourens replying to Bill Moseley [EMAIL PROTECTED] wrote:

[snipped]

I suppose this has nothing to do with Debain, but what does it
mean to be a Primary Domain Controler?  And does that apply to
Win98 and WinME machines or only W2K/XP/NT machines?

Some may argue that for a small home LAN it might not be necessary to do
the PDC thing. It takes little extra time to setup and there are
advantages using the Domain model - wrt Doze, i.e.


Unfortunately, Samba documentation seems to lag somewhat, the principles
are the however the same:

IBM TUTORIAL: USING SAMBA AS A PRIMARY DOMAIN CONTROLLER
http://www-1.ibm.com/servers/esdd/tutorials/samba.html?t=gr,l=335,p=SambaTutorial

CROSSNODES: BUILD A PRIMARY DOMAIN CONTROLLER WITH SAMBA, PART 2
Part 1 is also there grin
http://networking.earthweb.com/netos/article/0,,12083_1151091,00.html

There's a good Samba resource from the University of Oregon called The
Unofficial Samba HOWTO (http://hr.uoregon.edu/davidrl/samba.html)
(This is a great doc)

Using Samba as PDC
Nice article in the Feb 2002 edition of Linux Magazine,
http://www.linux-mag.com

Should you wish to use a GUI tool to configure Samba, you are IMHO
better off with Webmin. The last time I looked, SWAT removed all of the
usefull comments from smb.conf

HTH

***

Treat yourself with Debian Linux and Open Source Software
http://www.debian.org/social_contract

***

Lourens Steenkamp
R.S.A.











-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Samba setup question: security setting

2002-12-31 Thread Bill Moseley

I've read many Samba HOWTOs but I always have trouble -- and never really
sure if I have it right.

On my home LAN I have two Windows machines (Win98 and WinME).  Neither are
setup with passwords -- well nothing that I would call a password.  I
think one machine gives a login prompt but I just hit enter.

Samba comes configured with user level security which I always have a hard
time getting setup.  I suppose it's my lack of understanding of Windows
networking.  

The other day I setup Samba for a friend who's running WinXP, and I
used user level access and (IIRC) used smbpasswd to add a password for
his account.  I think I had to setup an account on linux that matched the
username he had on WinXP, too.  Frankly, I just messed with it until it
worked.

Anyway, my question is about my home LAN.  Since the Windows machines do
not match users on the linux box I'm using share level access.  But I
think that's probably insecure.  For one thing, I had a share on directory
on the linux machine and when I connected from Windows it asked for the
password (for that user's directory).  I entered the password, asked
Windows NOT to keep the password, yet now I can always connect to that
share without a password![1]

Is it possible (and is it recommended) to move to security = user on my
home LAN when the Windows machines don't really have a password?  I guess
what I'm asking is how best to setup Samba and the Windows machines I'm
running.  And, more importantly, why I need to setup it up a given way.

Also, when I followed the instructions for setting up CUPS for printing
trying to print from Windows to linux asked for a password.  Password for
what user??

This is what I finally setup for my printer to allow access:

[printers]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
# change to public
   public = yes
   guest ok = yes
   writable = no
   create mode = 0700


[1] And why that stinks is that once the Windows machine got a virus and
was then able to write junk all over that share on the Linux machine.

-- 
Bill Moseley [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba setup question: security setting

2002-12-31 Thread Wim De Smet
On Tue, 31 Dec 2002 07:33:26 -0800 (PST)
Bill Moseley [EMAIL PROTECTED] wrote:

 
 I've read many Samba HOWTOs but I always have trouble -- and never really
 sure if I have it right.
 
 On my home LAN I have two Windows machines (Win98 and WinME).  Neither are
 setup with passwords -- well nothing that I would call a password.  I
 think one machine gives a login prompt but I just hit enter.
 
 Samba comes configured with user level security which I always have a hard
 time getting setup.  I suppose it's my lack of understanding of Windows
 networking.  
 
 The other day I setup Samba for a friend who's running WinXP, and I
 used user level access and (IIRC) used smbpasswd to add a password for
 his account.  I think I had to setup an account on linux that matched the
 username he had on WinXP, too.  Frankly, I just messed with it until it
 worked.
 
 Anyway, my question is about my home LAN.  Since the Windows machines do
 not match users on the linux box I'm using share level access.  But I
 think that's probably insecure.  For one thing, I had a share on directory
 on the linux machine and when I connected from Windows it asked for the
 password (for that user's directory).  I entered the password, asked
 Windows NOT to keep the password, yet now I can always connect to that
 share without a password![1]
 
 Is it possible (and is it recommended) to move to security = user on my
 home LAN when the Windows machines don't really have a password?  I guess
 what I'm asking is how best to setup Samba and the Windows machines I'm
 running.  And, more importantly, why I need to setup it up a given way.
 
 Also, when I followed the instructions for setting up CUPS for printing
 trying to print from Windows to linux asked for a password.  Password for
 what user??
 
 This is what I finally setup for my printer to allow access:
 
 [printers]
comment = All Printers
browseable = no
path = /tmp
printable = yes
 # change to public
public = yes
guest ok = yes
writable = no
create mode = 0700
 
 
 [1] And why that stinks is that once the Windows machine got a virus and
 was then able to write junk all over that share on the Linux machine.
 
 -- 
 Bill Moseley [EMAIL PROTECTED]
 
 

Hi,

Although I can't help you with internal filtering (I guess this is possible) I would
suggest to limit the allowed ip-range to that of your own network (if you haven't
already done this off course). No external scans will expose your shares then, and
because they don't know they're there, nobody will try to connect to them (since they
don't know their netbios name anyhows).
there is a general option to set this, you can probably find it by just looking through
an example config file (eg the standard smb one?).

mvg,
Wim


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba setup question: security setting

2002-12-31 Thread Mike Egglestone
Quoting Bill Moseley [EMAIL PROTECTED]:
 
 Is it possible (and is it recommended) to move to security = user on my
 home LAN when the Windows machines don't really have a password?  I guess
 what I'm asking is how best to setup Samba and the Windows machines I'm
 running.  And, more importantly, why I need to setup it up a given way.

Hi Bill,
99% of my samba networks use security = user. My samba server acts as a PDC and 
I have all workstations login to the domain. I like this as you can setup login 
scripts to execute apon login. 
Check out:
http://ca.samba.org/samba/docs/man/smb.conf.5.html

Here's a small example that should work:

[global]
   printing = lprng
   security = user
   workgroup = foobar
   encrypt passwords = true
   domain master = yes
   netbios name = Samba
   domain logons = yes
   logon script = login.bat
   logon drive = h:#(This line can pounded out if no XP machines)
   local master = yes
   preferred master = yes
   preserve case = yes
   passwd program = /usr/bin/passwd %u
   unix password sync = true
   passwd chat = *new*password* %n\n *new*password* %n\n *updated*
   min password length = 4
 
[eps440]
printable = yes
public = yes
path = /tmp

[netlogon]
path = /usr/local/share/netlogon
create mode = 0755
writeable = yes

[homes]
browseable = no
read only = no
create mode = 0755

Note: for XP on domain logins you'll need to add the XP machines to smbpasswd.
If you had an XP machine named xpname, you'll need to run:
# useradd XPNAME$
# smbpasswd -am XPNAME$

Then, you can join the xp machine to the domain. You may need a root smpasswd 
entry for this. 
There's also a XP registry hack out on the web that you may need.
You could probably hunt it down at google.


 Also, when I followed the instructions for setting up CUPS for printing
 trying to print from Windows to linux asked for a password.  Password for
 what user??
LPrng has always worked fine for me so far and so I don't know much about cups.
but I think this is a samba thing and nothing to do with cups.


Hope this helps,

Cheers,
Mike



-
This mail sent through IMP: http://horde.org/imp/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba setup question: security setting

2002-12-31 Thread Bill Moseley
On Tue, 31 Dec 2002, Mike Egglestone wrote:

 Quoting Bill Moseley [EMAIL PROTECTED]:
  
  Is it possible (and is it recommended) to move to security = user on my
  home LAN when the Windows machines don't really have a password?  I guess
  what I'm asking is how best to setup Samba and the Windows machines I'm
  running.  And, more importantly, why I need to setup it up a given way.
 
 Hi Bill,
 99% of my samba networks use security = user. My samba server acts as a PDC and 
 I have all workstations login to the domain. I like this as you can setup login 
 scripts to execute apon login. 

I suppose this has nothing to do with Debain, but what does it mean to be
a Primary Domain Controler?  And does that apply to Win98 and WinME
machines or only W2K/XP/NT machines?

-- 
Bill Moseley [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba setup question: security setting

2002-12-31 Thread Mike Egglestone
Quoting Bill Moseley [EMAIL PROTECTED]:
 
 I suppose this has nothing to do with Debain, but what does it mean to be
 a Primary Domain Controler?  And does that apply to Win98 and WinME
 machines or only W2K/XP/NT machines?
 

This will help setup control for your network.
This applies to all Billy's OS's since win95.

You may want to check out docs on samba or NT servers.
I find you can have a little more security and control with
a samba server as a PDC, but perhaps your home network
just needs a plain file server.

Cheers,
Mike

-
This mail sent through IMP: http://horde.org/imp/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




samba setup gaflooey

2001-05-02 Thread will trillich
now that apple-communications are all lovely (thanks to ethan and
his quickie fix) i though samba would be a breeze.

silly me.

after 24 hours, my uptime was OVER FIVE, and tcpd was consuming
98% of cpu time (according to 'top')..
 9869 ?R  0:01  \_ tcpd /usr/sbin/nmbd -a
 8493 ?R539:49  \_ tcpd /usr/sbin/smbd
 9205 ?R119:45  \_ tcpd /usr/sbin/smbd
 9276 ?R106:22  \_ tcpd /usr/sbin/smbd

aside from not knowing where to go to tell windows 98 that
there's a mountable volume Out There on the network neighborhood,
how can i reinstall samba on my debian machine and tame it so it
leaves me some cpu cycles to work with?

i know there are documents -- like the library of congress
contains books. please point, i'll go.

-- 
DEBIAN NEWBIE TIP #29 from Will Trillich [EMAIL PROTECTED]
:
Console GIBBERISH? Suddenly you're seeing Russian or Korean or
box-like text no your console or xterm (or rxvt) -- probably
after viewing a binary file, right? :) Enter reset at the
command line, or try embedding a control-O (letter oh) into
your command-line prompt string:
export PS1='[EMAIL PROTECTED]: \w$ '

Also see http://newbieDoc.sourceForge.net/ ...



Re: Samba setup

2000-10-26 Thread Damon Muller
Quoth C. Falconer, 
 I have a dozen win95b machines using an old pentium as a samba server - 
 rocks seriously hard considering the budget was $100 NZ, and that was spend 
 on the O'Reilly book Samba.  I thoroughly recommend it to you.

FWIW, The O'Reilly Samba book is available in html form free on the
O'Reilly web site as well as in the tarball of the latest samba version
(though I don't know if it's in the deb).

Still, handy to have it in hardcopy.

cheers,

damon

-- 
Damon Muller  | Did a large procession wave their torches
Criminologist/Linux Geek  | As my head fell in the basket,
http://killfilter.com | And was everybody dancing on the casket...
PGP (GnuPG): A136E829 |  - TBMG, Dead


pgpKuz3S5TwM7.pgp
Description: PGP signature


Re: Samba setup

2000-10-25 Thread C. Falconer

At 08:59 PM 10/24/00 +0200, you wrote:

Does anyone know if it is possible to replace a Windows NT domain controler
by a samba server so that a newly installed client system creates its entry
in the domain automatically? I think MS works that way, doesn't it?


Kinda - it depends on your clients more than anything.  Samba 2.0.7 is the 
latest official version, and can act as a domain controller to authenticate 
and provide file and print sharing for win95/8 machines.  It cannot act as 
a PDC for a domain of NT workstations though.


Samba 2.1.x is *supposed* to have full PDC/BDC support for NT domains, but 
its still work in progress,


I have a dozen win95b machines using an old pentium as a samba server - 
rocks seriously hard considering the budget was $100 NZ, and that was spend 
on the O'Reilly book Samba.  I thoroughly recommend it to you.


--
Criggie



Samba setup

2000-10-24 Thread Michael Meskes
Does anyone know if it is possible to replace a Windows NT domain controler
by a samba server so that a newly installed client system creates its entry
in the domain automatically? I think MS works that way, doesn't it?

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!



Re: Samba Setup

2000-07-06 Thread Kent West
Jay Kelly wrote:
 
 Hello All,
 I thought I would take a crack at Samba so I installed Samba. Now
 what do I need to do for my window98 clients to log in to samba? What
 change to my network setting will I need to make? Will my Primary Network
 Login be Microsoft Family or Client for Microsoft Networks? Do I need
 to change my Domain to point to Sambe?
 Any help would be greatly appeciated.
 Thanks
 Jay

I'm not sure how to set up Samba to function as a domain
controller, which your question implies you're trying to do.
However, if you're just trying to share out stuff, like hard
drives, folders, and printers, do the following.

You'll need to edit /etc/samba/smb.conf to define your
shares; with the comments sprinkled throughout, it's fairly
intuitive for the basics. (You can also use SWAT (apt-get install
swat) for a web-based configuration tool, but I've never had any
success with it.)

Then, IIRC, you'll need to run smbpasswd to assign a
username/password to the people you want to give access to.

Finally, on the Windows box, you would simply map a drive to
\\YourLinuxComputer'sName\TheShareDefinedInSmb.conf. Your logon
will probably need to be Client for Microsoft Networks, but I'm
not sure.

-- 
Kent West
[EMAIL PROTECTED]



RE: RE: Samba Setup

2000-07-06 Thread Walter Williams
Hello 

I setup and got Samba working with a Win95 machine.
Under the My Computer you right click on the item
you want to share and select Sharing from that
menu and set up the item for sharing. It's pretty
easy to understand. In the Control Panel, Network,
setup your you'r Windows system to have the same 
Workgroup name that you are in on your Linux system.
And give your Windows box a unique Computer name.
Then you have to edit your samba.conf file on your 
Linux system according to the instructions. I was
able to edit most of this without looking at the 
instructions much, as most of the file samba.conf 
file is setup in a logical fashion. I used a text 
editor. You can even set up your Linux home 
directory as a share. Then when you login on 
Windows and click on Network Neighborhood 
you will have access to your home directory. 
You can even setup your home directory to be seen 
from My Computer be doing a little drive mapping.
FYI, you have to have your Windows network setup 
with an IP address and NetEUI for all this to work.

The thing I never did figure out how to do was to 
access the windows shares from Linux. This was 
because my wife started whining about how since
I setup a network that it was slowing down her
computer.

Well I hope this helps
Walt in Colorado


-Original Message-
From: Kent West [mailto:[EMAIL PROTECTED]
Sent: Thursday, 06 July, 2000 12:12 PM
To: Jay Kelly
Cc: debian-user@lists.debian.org
Subject: Re: Samba Setup


Jay Kelly wrote:
 
 Hello All,
 I thought I would take a crack at Samba so I installed Samba. Now
 what do I need to do for my window98 clients to log in to samba? What
 change to my network setting will I need to make? Will my Primary Network
 Login be Microsoft Family or Client for Microsoft Networks? Do I need
 to change my Domain to point to Samba?
 Any help would be greatly appreciated.
 Thanks
 Jay

I'm not sure how to set up Samba to function as a domain
controller, which your question implies you're trying to do.
However, if you're just trying to share out stuff, like hard
drives, folders, and printers, do the following.

You'll need to edit /etc/samba/smb.conf to define your
shares; with the comments sprinkled throughout, it's fairly
intuitive for the basics. (You can also use SWAT (apt-get install
swat) for a web-based configuration tool, but I've never had any
success with it.)

Then, IIRC, you'll need to run smbpasswd to assign a
username/password to the people you want to give access to.

Finally, on the Windows box, you would simply map a drive to
\\YourLinuxComputer'sName\TheShareDefinedInSmb.conf. Your logon
will probably need to be Client for Microsoft Networks, but I'm
not sure.

-- 
Kent West
[EMAIL PROTECTED]







Re: RE: Samba Setup

2000-07-06 Thread Mike Werner
Walter Williams wrote:
 The thing I never did figure out how to do was to 
 access the windows shares from Linux. This was 
 because my wife started whining about how since
 I setup a network that it was slowing down her
 computer.

If the Windoze box is called winbox and the shared drive is C, then on the
Linux box to mount that share at the mount point /mnt/winc do (as root):
smbmount //winbox/c /mnt/winc
You'll then be prompted for a password.  If no password was specified on the
Windoze machine, just hit enter.  Otherwise enter the password.

This is presuming that the Windoze machine has an entry in the /etc/hosts
file on the Linux box.  Otherwise, the Windoze machine's hostname can be
replaced by its numeric IP.
-- 
Mike Werner  KA8YSD   |  Where do you want to go today?
  |  As far from Redmond as possible!
'91 GS500E|
Morgantown WV |  Only dead fish go with the flow.



RE: RE: Samba Setup

2000-07-06 Thread CHEONG, Shu Yang \(Patrick\)
That's easy..i.e. viewing and accessing a Windows 95/98/NT share from a
Linux box. Use smbclient or smbmount. For example, say you have a shared
directory on the M$ Windows box (c:\My Documents on the computer
Windoze), on your Linux box, execute the following to make sure the share
is available for either viewing/ accessing or mounting:

 smbclient -U% -L windoze

I can't quite recall how the output screen looks like (since I am writing
this using a M$ Windoze program...yup would you believe it! The company
which I work for does not allow any other OS! [EMAIL PROTECTED]) but it should 
show you
the the available shares on Windoze and also the names of other computers on
the same subnet (domain?).

To access the shared directory (similar to using ftp) issue the following
command:

 smbclient //windoze/My Documents -U username(Note the inverted
commas as the path includes a space)

You will be prompted for a password:

 Password:

Type in the corresponding password for the user username.

You should then see the smb prompt:

smb

The commands should be similar to ftp commands.

If you want to skip the password step, execute the following:

 smbclient //windoze/My Documents -U username -P password

But this allows someone overlooking you shopulder to view your password in
clear text (which is why I prefer the latter without the -P).

For mounting a smb share, execute the following:

 smbmount -o username=username,password=password //windoze/My Documents
/mount point/

To check that the mount was successful, do a:
 df -h

I use this quite frequently in my previous company for performing backup of
Windoze boxes to Linux boxes using Samba!


Patrick Cheong

E-mail: [EMAIL PROTECTED]



 -Original Message-
 From: Walter Williams [SMTP:[EMAIL PROTECTED]
 Sent: Friday, July 07, 2000 3:23 AM
 To:   Debian ListServer (E-mail)
 Subject:  RE: RE: Samba Setup
 
 Hello 
 
 I setup and got Samba working with a Win95 machine.
 Under the My Computer you right click on the item
 you want to share and select Sharing from that
 menu and set up the item for sharing. It's pretty
 easy to understand. In the Control Panel, Network,
 setup your you'r Windows system to have the same 
 Workgroup name that you are in on your Linux system.
 And give your Windows box a unique Computer name.
 Then you have to edit your samba.conf file on your 
 Linux system according to the instructions. I was
 able to edit most of this without looking at the 
 instructions much, as most of the file samba.conf 
 file is setup in a logical fashion. I used a text 
 editor. You can even set up your Linux home 
 directory as a share. Then when you login on 
 Windows and click on Network Neighborhood 
 you will have access to your home directory. 
 You can even setup your home directory to be seen 
 from My Computer be doing a little drive mapping.
 FYI, you have to have your Windows network setup 
 with an IP address and NetEUI for all this to work.
 
 The thing I never did figure out how to do was to 
 access the windows shares from Linux. This was 
 because my wife started whining about how since
 I setup a network that it was slowing down her
 computer.
 
 Well I hope this helps
 Walt in Colorado
 
 
 -Original Message-
 From: Kent West [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 06 July, 2000 12:12 PM
 To: Jay Kelly
 Cc: debian-user@lists.debian.org
 Subject: Re: Samba Setup
 
 
 Jay Kelly wrote:
  
  Hello All,
  I thought I would take a crack at Samba so I installed Samba. Now
  what do I need to do for my window98 clients to log in to samba? What
  change to my network setting will I need to make? Will my Primary
 Network
  Login be Microsoft Family or Client for Microsoft Networks? Do I need
  to change my Domain to point to Samba?
  Any help would be greatly appreciated.
  Thanks
  Jay
 
 I'm not sure how to set up Samba to function as a domain
 controller, which your question implies you're trying to do.
 However, if you're just trying to share out stuff, like hard
 drives, folders, and printers, do the following.
 
 You'll need to edit /etc/samba/smb.conf to define your
 shares; with the comments sprinkled throughout, it's fairly
 intuitive for the basics. (You can also use SWAT (apt-get install
 swat) for a web-based configuration tool, but I've never had any
 success with it.)
 
 Then, IIRC, you'll need to run smbpasswd to assign a
 username/password to the people you want to give access to.
 
 Finally, on the Windows box, you would simply map a drive to
 \\YourLinuxComputer'sName\TheShareDefinedInSmb.conf. Your logon
 will probably need to be Client for Microsoft Networks, but I'm
 not sure.
 
 -- 
 Kent West
 [EMAIL PROTECTED]
 
 
 
 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
 /dev/null



Samba Setup

2000-07-05 Thread Jay Kelly
Hello All,
I thought I would take a crack at Samba so I installed Samba. Now
what do I need to do for my window98 clients to log in to samba? What 
change to my network setting will I need to make? Will my Primary Network
Login be Microsoft Family or Client for Microsoft Networks? Do I need
to change my Domain to point to Sambe?
Any help would be greatly appeciated.
Thanks 
Jay
-- 

It feels so good, It's a marginal risk, when I clear off windows with fdisk 
 

Powered by Debian GNU/Linux. 
http://www.debian.org
 



Re: Samba Setup

2000-05-17 Thread Rob
Hi Jay,


Well, to install nmap do `apt-get install nmap`

Might as well get it, it as a good tool.

But from that lynx error it sounds like there is something
wrong with SWAT. 

What version of Debian are you using?

Perhaps `apt-get remove samba` then `apt-get update` then
`apt-get install samba` will help, there is a possibility
that there was a bug in a samba package built at one
time... this will make sure you are installing the newest
version of samba for your Debian version...



Rob


On Tue, May 16, 2000 at 01:02:07PM -0700, Jay Kelly wrote:
 Ok, When I run lynx localhost:901 I get errorAlert! Unexpected network read
 error; connection aborted. Alert! Unable to access document.
 
 And if I try nmap I get command not found.
 So what do you think I need to do?



Re: Samba Setup

2000-05-16 Thread Rob
Odd.. I don't have netscape 4.x installed, but the newest mozilla.
I installed swat to test it out ( I am on woody ), hmm.. do you have 
nmap installed? sending the output of `nmap localhost` might help, 
just to ensure that SWAT is running on port 901.

Hmm, the Broken Pipe error does seem to indicate some other problem..
perhaps use 'nmap localhost` and `lynx localhost:901` and post the
output to the list, that should make things more apparent..


Rob


On Mon, May 15, 2000 at 07:43:25PM -0700, Jay Kelly wrote:
 What does it mean when I try to connect though Netscape and I get a error of
 Network Error: Broken Pipe???
 Cant seem to still connect. I have swat in my /etc services and in
 inetd.conf. Any Idea's
 
 -Original Message-
 From: Rob [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 15, 2000 7:18 PM
 To: debian-user@lists.debian.org
 Subject: Re: Samba Setup
 
 
 Hi Jay,
 
 
 I assume you are trying to configure samba through SWAT..
 ( I like using the manpage and editing smb.conf,
   but that's me :)
 
 Is SWAT in your /etc/inetd NOT commented out ( without a
 # in front of it ), is inetd running, which port are you
 trying to connect to?
 
 
 
 
 Thanks,
 Rob
 Namodn
 
 On Mon, May 15, 2000 at 06:46:43PM -0700, Jay Kelly wrote:
  I need some help setting up Samba.. Sorry to keep bugin you guys . Im
  getting there. I try to configure samba thought netscape but I am gettting
  an error Netscapes connection was refused by the server. Im sure I
 installed
  it when I installed Debian. Any Ideas guys
 
 
  --
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
 /dev/null
 
 
 
 
 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
 /dev/null
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 



RE: Samba Setup

2000-05-16 Thread Jay Kelly
Ok, When I run lynx localhost:901 I get errorAlert! Unexpected network read
error; connection aborted. Alert! Unable to access document.

And if I try nmap I get command not found.
So what do you think I need to do?

-Original Message-
From: Rob [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 16, 2000 12:27 AM
To: Jay Kelly
Cc: debian-user@lists.debian.org
Subject: Re: Samba Setup


Odd.. I don't have netscape 4.x installed, but the newest mozilla.
I installed swat to test it out ( I am on woody ), hmm.. do you have
nmap installed? sending the output of `nmap localhost` might help,
just to ensure that SWAT is running on port 901.

Hmm, the Broken Pipe error does seem to indicate some other problem..
perhaps use 'nmap localhost` and `lynx localhost:901` and post the
output to the list, that should make things more apparent..


Rob


On Mon, May 15, 2000 at 07:43:25PM -0700, Jay Kelly wrote:
 What does it mean when I try to connect though Netscape and I get a error
of
 Network Error: Broken Pipe???
 Cant seem to still connect. I have swat in my /etc services and in
 inetd.conf. Any Idea's

 -Original Message-
 From: Rob [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 15, 2000 7:18 PM
 To: debian-user@lists.debian.org
 Subject: Re: Samba Setup


 Hi Jay,


 I assume you are trying to configure samba through SWAT..
 ( I like using the manpage and editing smb.conf,
   but that's me :)

 Is SWAT in your /etc/inetd NOT commented out ( without a
 # in front of it ), is inetd running, which port are you
 trying to connect to?




 Thanks,
 Rob
 Namodn

 On Mon, May 15, 2000 at 06:46:43PM -0700, Jay Kelly wrote:
  I need some help setting up Samba.. Sorry to keep bugin you guys . Im
  getting there. I try to configure samba thought netscape but I am
gettting
  an error Netscapes connection was refused by the server. Im sure I
 installed
  it when I installed Debian. Any Ideas guys
 
 
  --
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
 /dev/null
 
 


 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
 /dev/null


 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null




--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null



RE: Samba Setup

2000-05-16 Thread Jay Kelly
I notice when I go into /etc there isnt a file named smb.conf. Does that
mean that samba is not installed or do I need to create the file myself?

-Original Message-
From: Rob [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 16, 2000 12:27 AM
To: Jay Kelly
Cc: debian-user@lists.debian.org
Subject: Re: Samba Setup


Odd.. I don't have netscape 4.x installed, but the newest mozilla.
I installed swat to test it out ( I am on woody ), hmm.. do you have
nmap installed? sending the output of `nmap localhost` might help,
just to ensure that SWAT is running on port 901.

Hmm, the Broken Pipe error does seem to indicate some other problem..
perhaps use 'nmap localhost` and `lynx localhost:901` and post the
output to the list, that should make things more apparent..


Rob


On Mon, May 15, 2000 at 07:43:25PM -0700, Jay Kelly wrote:
 What does it mean when I try to connect though Netscape and I get a error
of
 Network Error: Broken Pipe???
 Cant seem to still connect. I have swat in my /etc services and in
 inetd.conf. Any Idea's

 -Original Message-
 From: Rob [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 15, 2000 7:18 PM
 To: debian-user@lists.debian.org
 Subject: Re: Samba Setup


 Hi Jay,


 I assume you are trying to configure samba through SWAT..
 ( I like using the manpage and editing smb.conf,
   but that's me :)

 Is SWAT in your /etc/inetd NOT commented out ( without a
 # in front of it ), is inetd running, which port are you
 trying to connect to?




 Thanks,
 Rob
 Namodn

 On Mon, May 15, 2000 at 06:46:43PM -0700, Jay Kelly wrote:
  I need some help setting up Samba.. Sorry to keep bugin you guys . Im
  getting there. I try to configure samba thought netscape but I am
gettting
  an error Netscapes connection was refused by the server. Im sure I
 installed
  it when I installed Debian. Any Ideas guys
 
 
  --
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
 /dev/null
 
 


 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
 /dev/null


 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null




--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null



Re: Samba Setup

2000-05-16 Thread Gary Hennigan
Jay Kelly [EMAIL PROTECTED] writes:
 I notice when I go into /etc there isnt a file named smb.conf. Does that
 mean that samba is not installed or do I need to create the file myself?

On Debian it's in /etc/samba. locate, find and dpkg -S are your
friends!

Gary



Samba Setup

2000-05-15 Thread Jay Kelly
I need some help setting up Samba.. Sorry to keep bugin you guys . Im
getting there. I try to configure samba thought netscape but I am gettting
an error Netscapes connection was refused by the server. Im sure I installed
it when I installed Debian. Any Ideas guys



Re: Samba Setup

2000-05-15 Thread Rob
Hi Jay,


I assume you are trying to configure samba through SWAT..
( I like using the manpage and editing smb.conf,
  but that's me :)

Is SWAT in your /etc/inetd NOT commented out ( without a
# in front of it ), is inetd running, which port are you
trying to connect to?




Thanks,
Rob
Namodn

On Mon, May 15, 2000 at 06:46:43PM -0700, Jay Kelly wrote:
 I need some help setting up Samba.. Sorry to keep bugin you guys . Im
 getting there. I try to configure samba thought netscape but I am gettting
 an error Netscapes connection was refused by the server. Im sure I installed
 it when I installed Debian. Any Ideas guys
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 



RE: Samba Setup

2000-05-15 Thread Jay Kelly
What does it mean when I try to connect though Netscape and I get a error of
Network Error: Broken Pipe???
Cant seem to still connect. I have swat in my /etc services and in
inetd.conf. Any Idea's

-Original Message-
From: Rob [mailto:[EMAIL PROTECTED]
Sent: Monday, May 15, 2000 7:18 PM
To: debian-user@lists.debian.org
Subject: Re: Samba Setup


Hi Jay,


I assume you are trying to configure samba through SWAT..
( I like using the manpage and editing smb.conf,
  but that's me :)

Is SWAT in your /etc/inetd NOT commented out ( without a
# in front of it ), is inetd running, which port are you
trying to connect to?




Thanks,
Rob
Namodn

On Mon, May 15, 2000 at 06:46:43PM -0700, Jay Kelly wrote:
 I need some help setting up Samba.. Sorry to keep bugin you guys . Im
 getting there. I try to configure samba thought netscape but I am gettting
 an error Netscapes connection was refused by the server. Im sure I
installed
 it when I installed Debian. Any Ideas guys


 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null




--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null