Re: [Samba] Samba on top of Windows?

2010-05-05 Thread Steve Blackwell
On Wed, 05 May 2010 17:28:08 +0200
Public Mailing Lists li...@lists.cichon.com wrote:

 Hi all,
 
 I just bought a brand new PC for my living room (Asus eee Box) that
 happens to come with Windows 7. I can nicely plug in large USB hard
 drives, any my intention was to share these harddrives on the network,
 for example with my old Windows 98 PC on which I still run some
 favorite computer games. And of course, I would also like to access
 the large harddrive occasionally from my linux box (e.g. to put
 backups on them).
 
 However, I had to learn that Windows 7 does not want to share my
 harddrive with the other computer on the network that are not Windows
 7. All tried all different kinds of things: I switched off the home
 group, I switched off various encryption/security settings in the
 control panel. I even changed some registry settings that I googled
 from the web. All without success. I spare you the technical details
 on this...
 
 I can't understand why it has to be so hard to just export a simple
 harddisk on the network. With every single version upgrade of Windows,
 it breaks. From Windows 95 to Windows 98. From Windows 98 to Windows
 XP. And now with Windows 7, again. IMHO, the purpose of networking is
 to COMMUNICATE with whichever protocol is out there.
 
 I don't want to deal with neither Windows domain controllers, nor home
 groups, nor roaming profiles, nor encryption requirements, nor
 anything that Windows will come up with in the next release that
 breaks everything else. I would like just export a hard disk with a
 user-name and a password and use it with everything from Windows 3.1
 to my Linux box without getting a headache.
 
 So, my question is:
 Is it possible to run Samba on top of Windows?
 
 Thanks for your help in advance.
 
 Cheers,
 G.
 
 
No answer, I'm afraid but a similar problem. 
My wife's laptop died and the new one came with Windows 7. The old one
had Vista on it and I had it set up so that she could access her
account on my F11 box and I could run BackupPC to back up her laptop on
my computer.
With Windows 7, I can't even get it to see my Linux box although
pinging to my IP address works fine. According to what documentation I
could find, Windows only wants to network with other Windows boxes. I
did find a reference on a forum to something about Linux not doing DNS
correctly but that probably means not doing it the non-standard Windows
way.
I'll be interested in any answers you get.

Good luck,
Steve
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - List of options for smb.conf

2010-04-20 Thread Steve Blackwell
On Tue, 20 Apr 2010 12:44:59 -0400
Stuart Wehrly sweh...@gdeb.com wrote:

 Is there a list of options for smb.conf?
 
 Thanks,
 
 Stuart

man smb.conf

or google samba smb.conf options
http://samba.org/samba/docs/man/manpages-3/smb.conf.5.html
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Windows 7 can't see my Samba server

2010-04-19 Thread Steve Blackwell
It's really weird how many times thing break in threes. This time is
was my wife's laptop, my router and a phone.

Anyway...

My network has a router and 2 computers; my F11 box with the samba
server on it called steve and my wife's laptop now running Windows 7
called Kellie-PC.

My old router was a Linksys WRT54G that I had flashed with DD-WRT. I
was using DHCP and DNS masquerading in the router. The new router is a
CISCO E3000 which isn't supported yet by DD-WRT so no local DNS but
I'm still using DHCP. For my test I added Kellie-PC to /etc/hosts and
check the IP address before I run the test.

steve can ping Kellie-PC by name and Kellie-PC can ping steve by IP
address.

I have one samba user, Kellie, defined.

Following the samba checklist
(http://samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.html)
and running these commands in a terminal window on steve as user steve:

$ smbclient -L steve -U Kellie
Enter Kellie's password: 
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7-0.50.fc11]

Sharename   Type  Comment
-     ---
homes   Disk  Home Directories
Kellie  Disk  Kellies Documents and Settings folder
on the Winblows side of Steves computer 
IPC$IPC   IPC Service (Steve's Samba Server
Version 3.4.7-0.50.fc11) 
DESKJET_600 Printer   Steve's printer 
-2600-SeriesPrinter   Lexmark  2600 Series
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7-0.50.fc11]

Server   Comment
----
COPPERFISH   E3000
STEVESteve's Samba Server Version
3.4.7-0.50.fc11

WorkgroupMaster
----
WORKGROUPCOPPERFISH

$ nmblookup -B steve __SAMBA__
querying __SAMBA__ on 127.0.0.1
192.168.1.120 __SAMBA__00

$ nmblookup -B Kellie-PC '*'
querying * on 192.168.1.122
name_query failed to find name *

I suspect that this is some kind of permissions problem on the Win7 box
but the fact that the E3000 router is showing up as the workgroup
master also looks suspect.
I have tried adding the registry key LmCompatabilityMode = 1 to the
Win7 machine but no luck.

Any help or pointers to some readable Win7 docs would be appreciated.
This used to work OK under Vista.

Thanks,
Steve.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Windows 7 can't see my Samba server

2010-04-19 Thread Steve Blackwell
On Mon, 19 Apr 2010 12:17:36 -0400
Steve Blackwell zep...@cfl.rr.com wrote:

 It's really weird how many times thing break in threes. This time is
 was my wife's laptop, my router and a phone.
 
 Anyway...
 
 My network has a router and 2 computers; my F11 box with the samba
 server on it called steve and my wife's laptop now running Windows 7
 called Kellie-PC.
 
 My old router was a Linksys WRT54G that I had flashed with DD-WRT. I
 was using DHCP and DNS masquerading in the router. The new router is a
 CISCO E3000 which isn't supported yet by DD-WRT so no local DNS but
 I'm still using DHCP. For my test I added Kellie-PC to /etc/hosts and
 check the IP address before I run the test.
 
 steve can ping Kellie-PC by name and Kellie-PC can ping steve by IP
 address.
 
 I have one samba user, Kellie, defined.
 
 Following the samba checklist
 (http://samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.html)
 and running these commands in a terminal window on steve as user
 steve:
 
 $ smbclient -L steve -U Kellie
 Enter Kellie's password: 
 Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7-0.50.fc11]
 
   Sharename   Type  Comment
   -     ---
   homes   Disk  Home Directories
   Kellie  Disk  Kellies Documents and Settings
 folder on the Winblows side of Steves computer 
 IPC$IPC   IPC Service (Steve's Samba Server
 Version 3.4.7-0.50.fc11) 
 DESKJET_600 Printer   Steve's printer 
 -2600-SeriesPrinter   Lexmark  2600 Series
 Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7-0.50.fc11]
 
   Server   Comment
   ----
   COPPERFISH   E3000
   STEVESteve's Samba Server Version
 3.4.7-0.50.fc11
 
   WorkgroupMaster
   ----
   WORKGROUPCOPPERFISH
 
 $ nmblookup -B steve __SAMBA__
 querying __SAMBA__ on 127.0.0.1
 192.168.1.120 __SAMBA__00
 
 $ nmblookup -B Kellie-PC '*'
 querying * on 192.168.1.122
 name_query failed to find name *
 
 I suspect that this is some kind of permissions problem on the Win7
 box but the fact that the E3000 router is showing up as the workgroup
 master also looks suspect.
 I have tried adding the registry key LmCompatabilityMode = 1 to the
 Win7 machine but no luck.
 
 Any help or pointers to some readable Win7 docs would be appreciated.
 This used to work OK under Vista.
 
 Thanks,
 Steve.

Oops,

The last two I got wrong. They should be
$ nmblookup -B steve __SAMBA__ -U Kellie
querying __SAMBA__ on 0.0.0.0
192.168.1.120 __SAMBA__00

and 
$ nmblookup -B Kellie-PC '*' -U Kellie
querying * on 0.0.0.0
192.168.1.120 *00

So they both give me the IP address of my samba server instead of the
second one giving me the IP address of Kellie-PC
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Vista [SOLVED]

2008-08-05 Thread Steve Blackwell

  I'm trying to use smbclient to look at a Vista box but I keep
  getting:
 
  # smbclient -L user-pc -U Kellie
  Password: Kellie's password
  session setup failed: NT_STATUS_LOGON_FAILURE
 
  I know the user/password combination is good.  
 
...

Well, I don't understand this but I found a solution.

First let me explain that my Vista box is a single user laptop and when
it is powered up it shows a logon screen that already has the user's
name, Kellie, displayed and it just asks for a password. When the
screensaver kicks in, the same logon screen appears. 

So, I went into the Vista box and turned on logon auditing but in the
event log I couldn't find any references to user Kellie. The
TargetDomainName was set to the name of the Vista box ie User-PC as I
expected but the TargetUserName was always set to User. Initially, I
assumed that this was some system event related to the logon attempt.
Eventually, I decided to try to use smbclient as user User and using
user Kellie's password... success!!!??!

Somewhere under the covers, Vista thinks that user Kellie is user
User even though Control Panel (Classic View)-User Accounts shows
only one user called Kellie.

Whatever...
Steve.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Vista

2008-08-04 Thread Steve Blackwell
 I'm trying to use smbclient to look at a Vista box but I keep
 getting:

 # smbclient -L user-pc -U Kellie
 Password: Kellie's password
 session setup failed: NT_STATUS_LOGON_FAILURE
 
 I know the user/password combination is good.  

 I spent most of yesterday searching the web for more information. Now,
 I have used wireshark to look at the traffic between my Linux and
 Vista boxes.

 First I see a Negotiate Protocol Request message from the Linux box
 to the Vista box which replies with a Negotiate Protocol Response.
 
 Then I see 3 messages which seem to correspond to the type 1, type 2
 and type 3 messages of the NTLM authentication protocol as described
 here.
 
 http://davenport.sourceforge.net/ntlm.html#getNTLMv2Response

 I can see in the type 1 message, listed as 
 Session Setup AndX Request, NTLMSSP_NEGOTIATE 
 that the flag is set that Samba says it can use NTLMv2 - Negotiate
 NTLN2 key - Set.
 
 In the type 2 message back from the Vista box, listed as 
 Session Setup AndX Response, NTLMSSP_CHALLENGE, Error:
 STATUS_MORE_PROCESSING_REQUIRED, 
 the same flag is set. I take this to mean that box boxes have agreed
 to use NTLMv2.

 In the type 3 message, listed as 
 Session Setup AndX Request, NTLMSSP_Auth, User: WORKGRPUP/Kellie, 
 I can see that Samba is sending the correct workgroup as DOMAIN NAME,
 the correct host and the correct user.
 
 Is there some place on the Vista box where I can see the login
 attempts and get some clue as to why it sends out a final message of
 Session Setup AndX Response, Error: STATUS_LOGON FAILURE?
 
 Thanks,
 Steve

H... I was hoping for a little more interest in my problem.
I first posted with this problem on 7/30 and I've had only 2 different
suggestions (thanks Helmut, Mike and Miguel) but unfortunately they
didn't work.

Is there another list or forum where I would be more likely to find an
answer?

Steve
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Fw: [Samba] Samba Vista

2008-08-04 Thread Steve Blackwell
  I'm trying to use smbclient to look at a Vista box but I keep
  getting:
 
  # smbclient -L user-pc -U Kellie
  Password: Kellie's password
  session setup failed: NT_STATUS_LOGON_FAILURE
 
  I know the user/password combination is good.

...

 H... I was hoping for a little more interest in my problem.
 I first posted with this problem on 7/30 and I've had only 2
 different
 suggestions (thanks Helmut, Mike and Miguel) but unfortunately they
 didn't work.

 Is there another list or forum where I would be more likely to find
 an
 answer?

 Steve

 Steve;

 Have you upgraded to a recent version of Samba.  There were proplems
 with early versions but, I believe, they were all fixed in 3.0.28a.
 You can check the release notes to see just which version.  Try
 upgrading to the most recent stable version if you have not done so
 already. 

 Paul   

Hi Paul,

I'm running FC8 with all the latest updates.

$ smbclient --version
Version 3.0.30-0.fc8

So this should be OK.

Thanks,
Steve
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Vista

2008-08-03 Thread Steve Blackwell
 I'm trying to use smbclient to look at a Vista box but I keep getting:

 # smbclient -L user-pc -U Kellie
 Password: Kellie's password
 session setup failed: NT_STATUS_LOGON_FAILURE
 
 I know the user/password combination is good.

I spent most of yesterday searching the web for more information. Now,
I have used wireshark to look at the traffic between my Linux and Vista
boxes.

First I see a Negotiate Protocol Request message from the Linux box
to the Vista box which replies with a Negotiate Protocol Response.

Then I see 3 messages which seem to correspond to the type 1, type 2
and type 3 messages of the NTLM authentication protocol as described
here.

http://davenport.sourceforge.net/ntlm.html#getNTLMv2Response

I can see in the type 1 message, listed as 
Session Setup AndX Request, NTLMSSP_NEGOTIATE 
that the flag is set that Samba says it can use NTLMv2 - Negotiate
NTLN2 key - Set.

In the type 2 message back from the Vista box, listed as 
Session Setup AndX Response, NTLMSSP_CHALLENGE, Error:
STATUS_MORE_PROCESSING_REQUIRED, 
the same flag is set. I take this to mean that box boxes have agreed to
use NTLMv2.

In the type 3 message, listed as 
Session Setup AndX Request, NTLMSSP_Auth, User: WORKGRPUP/Kellie, 
I can see that Samba is sending the correct workgroup as DOMAIN NAME,
the correct host and the correct user.

Is there some place on the Vista box where I can see the login
attempts and get some clue as to why it sends out a final message of
Session Setup AndX Response, Error: STATUS_LOGON FAILURE?

Thanks,
Steve
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Vista

2008-08-02 Thread Steve Blackwell
 I'm trying to use smbclient to look at a Vista box but I keep getting:
 
 # smbclient -L user-pc -U Kellie
 Password: Kellie's password
 session setup failed: NT_STATUS_LOGON_FAILURE

 Below I've put the output of 
 # smbclient -L user-pc -U Kellie -d4
 
 It is connecting to the correct machine but there is a user
 authentication problem. The bit that says 

 Password: 
 Doing spnego session setup (blob length=46)
 got OID=1 3 6 1 4 1 311 2 2 10
 got principal=null

I bumped the debug level up to 10 and now I'm fairly sure that this is
the problem area. 

Password: 
Doing spnego session setup (blob length=46)
got OID=1 3 6 1 4 1 311 2 2 10
got principal=null
write_socket(5,166)
write_socket(5,166) wrote 166
got smb length of 378
size=378
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=13966
smb_uid=2048
smb_mid=2
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  378 (0x17A)
smb_vwv[ 2]=0 (0x0)
smb_vwv[ 3]=  189 (0xBD)
smb_bcc=335

This shows an smb_err=49152 and I'm guessing that the problem is the
got principal=null line. But I have no idea what this means. I
suppose my next step is to start digging through the code. 
Do the developers monitor this list?

Steve.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Vista

2008-08-01 Thread Steve Blackwell
Mike Eggleston [EMAIL PROTECTED] wrote:

 The change I made in my vista boxes is:

 Start-Run-secpol.mscENTER
 Local Policies-Security Options

 set to:

 Network Security: LAN Manager authentication level-Send LM  NTLM -
 use NTLMv2 session security if negotiated

 OK
 File-Exit

I found that I don't have secpol.msc on my Vista box.
I googled around and discovered that it is not supplied with the home
edition of Vista but that the same thing can be accomplished but
editing the registry. So I changed the key

HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\LSA

from 3 to 2 (also tried all the other options) but I still get the same
error message:

session setup failed: NT_STATUS_LOGON_FAILURE

Steve.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Vista

2008-08-01 Thread Steve Blackwell
Miguel Da Silva - Centro de Matemática [EMAIL PROTECTED] wrote:
 The change I made in my vista boxes is:
 
 Start-Run-secpol.mscENTER
 Local Policies-Security Options
 
 set to:
 
 Network Security: LAN Manager authentication level-Send LM  NTLM -
 use NTLMv2 session security if negotiated 
 OK  
 File-Exit
 
 Mike  

 If the problem is related to user authentication and the protocol used
 in client-server negotiation, maybe could be of some help use max 
 protocol = LANMAN2 or max protocol = NTLM.

 And also try to use plain text passwords.

Tried all that too but it didn't help. The way I understand it
(which can be sum1med up as very poorly), if the registry key on the
Vista box
HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\LSA\LMCompatibilityLevel
is set to 3 and the smb.conf file has client ntlmv2 auth = yes then
everything should be OK.

I found this article: 
http://technet.microsoft.com/en-us/magazine/cc160954.aspx
that helped a little.

Are there any tests I can run that might help narrow it down to a
problem with the user, the password, the Vista box or the Linux box?

Steve

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Vista

2008-07-31 Thread Steve Blackwell
I'm trying to use smbclient to look at a Vista box but I keep getting:

# smbclient -L user-pc -U Kellie
Password: Kellie's password
session setup failed: NT_STATUS_LOGON_FAILURE

I know the user/password combination is good.

I googled around and got the impression that Vista didn't play well
with Samba because of some authentication protocol that Vista uses but
I also got the impression that the problem was with older version of
Samba. I never could find a definitive answer. Does someone know for
sure?

I have tried with and without the client ntlmv2 auth = yes but get
the same results.

Below I've put the output of 
# smbclient -L user-pc -U Kellie -d4

It is connecting to the correct machine but there is a user
authentication problem. The bit that says 

Password: 
Doing spnego session setup (blob length=46)
got OID=1 3 6 1 4 1 311 2 2 10
got principal=null

looks a bit suspect but I don't really know what I'm looking at so it
could be perfectly OK. Any suggestion?

Thanks,
Steve

# smbclient --version
Version 3.0.30-0.fc8

# smbclient -L user-pc -U Kellie -d4
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file
/etc/samba/smb.conf Processing section [global]
doing parameter workgroup = WORKGROUP
doing parameter server string = Steve's Samba Server Version %v
doing parameter preferred master = yes
doing parameter hosts allow = 127. 192.168.1.
doing parameter client ntlmv2 auth = yes
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 50
doing parameter security = user
doing parameter passdb backend = tdbsam
doing parameter local master = no
doing parameter cups options = raw
doing parameter username map = /etc/samba/smbusers
pm_process() returned Yes
added interface ip=192.168.1.100 bcast=192.168.1.255 nmask=255.255.255.0
Client started (version 3.0.30-0.fc8).
Connecting to 192.168.1.147 at port 445
 session request ok
Password: 
Doing spnego session setup (blob length=46)
got OID=1 3 6 1 4 1 311 2 2 10
got principal=null
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_CHAL_ACCEPT_RESPONSE
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_CHAL_TARGET_INFO
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
SPNEGO login failed: Logon failure
session setup failed: NT_STATUS_LOGON_FAILURE
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Do users have to have accounts on a Samba server to map drives?

2005-12-23 Thread Steve Blackwell
I know this may be a very simple question but I cant seem to find the
answer in the O'Reilly Samba book or from Google.

When using Samba 2 (actual version 2.2.12) we had W2K domain users
authentication via the ADS to access Samba shares. The W2K users did not
actually have Unix accounts on the Samba server, we used the users.map
file to map the W2K account name to a guest Unix account. Running Samba 3
(actual version 3.0.14a) this process does not to seem to work the
following error message appears in the log files.

[2005/12/22 09:14:25, 2] lib/access.c:check_access(322)
  Allowed connection from  (172.26.178.164)
[2005/12/22 09:14:25, 0] auth/auth_util.c:make_server_info_info3(1195)
  make_server_info_info3: pdb_init_sam failed!
[2005/12/22 09:14:25, 2] auth/auth.c:check_ntlm_password(310)
  check_ntlm_password:  Authentication for user [darwin] - [ftp] FAILED
with error NT_STATUS_NO_SUCH_USER
[2005/12/22 09:14:25, 2] smbd/sesssetup.c:setup_new_vc_session(608)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close
all old
resources.
[2005/12/22 09:14:25, 2] smbd/sesssetup.c:setup_new_vc_session(608)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close
all old
resources.
[2005/12/22 09:14:25, 0] auth/auth_util.c:make_server_info_info3(1195)
  make_server_info_info3: pdb_init_sam failed!
[2005/12/22 09:14:25, 2] auth/auth.c:check_ntlm_password(310)
  check_ntlm_password:  Authentication for user [darwin] - [ftp] FAILED
with error NT_STATUS_NO_SUCH_USER
[2005/12/22 09:24:54, 2] smbd/server.c:exit_server(609)
  Closing connections


The only way I found to get the users to mount a Samba share is to create
a Unix account. I don't particularly want to create 600 Unix account for
users to access a couple of shares.

Does anyone know how to get Samba 3 to act the same as Samba 2?

Cheers

Steve
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Can't browse network using nautilus

2004-10-11 Thread Steve Blackwell
Hi,
I'n using the nautilus file browser in a GNOME desktop environment on a  
FC2 system.

If I enter smb:/// in the location bar in nautilus I can see the  
network but whenever I try to look at the shares on a computer I get a  
message saying that I do not have permissions to view the contents.

I looked in the archives and found a thread on a similar problem. This  
thread mentioned that the gnome-vfs-extras rpm had been depreciated and  
should be removed. This solved the problem for that person but didn't  
work for me (I did have that rpm installed snd removed it). Here are  
the rpms that I have installed:

samba-common-3.0.7-2.FC2
samba-client-3.0.7-2.FC2
system-config-samba-1.2.15-0.fc2.1
samba-3.0.7-2.FC2
samba-swat-3.0.7-2.FC2
nautilus-2.6.0-4
gnome-vfs2-smb-2.6.0-8
gnome-vfs2-2.6.0-8
gnome-vfs2-devel-2.6.0-8
In looking at an ethereal trace I see some NBNS messages folloed by 3  
TCP messages and 2 SMB Netgotiate Protcol Request/Response, all of  
which look OK.

Then comes a session setup andx request, NTLMSSP_NEGOTIATE message.  
In this message is a Security Blob section and part of this is  
Calling workstation domain. This is set to WORKGROUP which is wrong  
for me and does not match what I have set in my smb.conf file. There is  
also a session setup andx request, NTLMSSP_AUTH message that has the  
same problem. My user name and machine name are set correctly but the  
domain is wrong.

So it would appear that Nautilus is not reading my smb.conf file.
Any pointers on how to proceed from here will be appreciated.
Thanks,
Steve
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problem of access samba from rh8

2003-03-05 Thread Steve Blackwell
Good morning Patrick,

I followed your suggestions and got the same response. There was no 
information in the log files.

I fired up ethereal and did some poking around. Here's what I found.

When I enter my username and password, these packets get sent/received.

SMB Negotiate Protocol Request
SMB Negotiate Protocol Response
SMB Session Setup AndX Request, User: My Workgroup/My User Name
SMB Session Setup AndX Response
SMB Tree Connect AndX Request, Path: \\My PDC\IPC$
SMB Tree Connect AndX Response
LANMAN  NetShareEnum Request
LANMAN  NetShareEnum Response
Looks OK so far...

TCP 33114  netbios-ssn [FIN, ACK] blah, blah
TCP netbios-ssn  33114 [FIN, ACK] blah, blah
TCP 33114  netbias-ssn [ACK] blah
Next comes several DNS requests with the response of No such name (Why 
are these requests ging out to the internet?)

NBNSName query NB My PDC20
NBNSName query response NB MY PDC IP address
NBNSName query NBSTAT *00
NBNSName query response NBSTAT
TCP 33115  netbios-ssn [SYN] blah...
TCP netbias-ssn  33115 [SYN, ACK] blah...
TCP 33115  netbios-ssn [ACK] blah...
NBSSSession request to My PDC20 from My Linux box00
NBSSPositive session response
TCP 33115  netbios-ssn [ACK] blah...
SMB Negotiate protocol request
SMB Negotiate protocol response
*** And here is the problem ***

SMB Session Setup andX Request, User: My Workgroup/GUEST

OK, so how did my user name change from what I typed in and what shows up 
correctly above to GUEST which explains why I get the message about not 
having privilege to browse any shares?

On 2003.03.05 06:34 Patrick Kwan wrote:
HI Seteve:

Are you using winbind?
I havn't using it before, I have no idea about it.
Or you can try to find out which part cause the problem.

According your description you are access to the NT PDC box from a
redhat8
box with samba and winbind running, right?
Please shutdown the samba and winbind in the redhat 8 then try the
following:
 -connect the NT PDC again,
 -connect the another windows client
And see what happen in the %m.log file.

Good luck!

Patrick
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problem of access samba from rh8

2003-03-04 Thread Steve Blackwell
Hi Patrick,

Had I paid closer attention to your original e-mail I would have noticed 
that you were using KDE and Konqueror whereas I am using GNOME and 
Nautilus.

I tried using the settings that Shane Kennedy suggested but I still get 
the same result.

Is there some way to get more information to find out's going on here? I 
don't see anything happening in the log files when I try to access the 
shares.

Thanks,
Steve
On 2003.03.03 20:44 Patrick Kwan wrote:
Hi Steve,

I do another test today, I changed my desktop to Gnome and use Nautilus
to access the samba server, I can access all shares this times.
It show that some wrong with the KDE's Konqueror or something else, I
will
search the KDE's website wheather it's known problems or only my problem.
Right now, I'm using LinuxNeihgbourhood to browse the network and access
shares because I like to use KDE Desktop.
Patrick

 Hey Patrick,

 I have a similar issue that I have reported here before but I never got
 an  answer.

 The only difference I see between what you describe and what I see, is
 that I get an error dialog saying:

 You do not have sufficient permission to view Share. This is strange
 to  me since I appear to log on OK because I can see all the shares but
 I get  this message when I try to access one of them.

 I'm using RH8 with all the latest updates and these samba rpms

 samba-common-2.2.7-2
 samba-2.2.7-2
 samba-client-2.2.7-2

 I haven't had time to investigate this further so I would be interested
 in  anything that you find out.

 Steve.

 On 2003.03.02 20:45 Patrick Kwan wrote:
 Hello,

 I already setup a samba server as PDC for windows client to logon and
 working fine now with the following config:
 - redhat 7.3
 - samba 2.2.7a

 Then I try to access the samba share from Redhat 8, I can use
 smbclient to
 access the share without problem but I can't access the share with
 KDE's Konqueror (smb://NetbiosName/), it can show all shares, when I
 double one
 of share, it can show the login dialogue box, then I enter the correct
 username and password but nothing displayed, it seem to try connecting
 the
 share.

 So, I check the samba.log file, but it show that the user is connected
 to the service successfully.

 Any body have this issue before?
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problem of access samba from rh8

2003-03-04 Thread Steve Blackwell
On 2003.03.04 19:52 Patrick Kwan wrote:
Hello Steve,

You can set the log level=1 (or 1) in smb.conf to see more info. in
the
log file.
Or how about post your smb.conf file and sate your config/problem again
here!
OK. Here is my smb.conf file. I've taken out all the cruft to make it 
easier to read.

[global]
   workgroup = My Workgroup
   server string = Blackwell's development machine
   local master = no
   hosts allow = my network address/my netmask 127.0.0.1
   log file = /var/log/samba/%m.log
   max log size = 0
   dns proxy = no
   log level = 1
And that's it. Remember that all I'm trying to do it to use Nautilus to 
browse a share on the file server which is an NT box. What happens is this:

1) I enter smb:/// into Nautilus, Nautilus shows My Workgroup
2) I double click on My Workgroup, Nautilus shows the computers in the 
workgroup including the PDC
3) I double click on the PDC, I get a question box asking for my user name 
and password,
4) I enter my user name and password, Nautilus shows the contents of the 
PDC including the shared directory
5) I double click on the shared directory, Nautilus displays a dialog, 
You do not have the permission necessary to view the contents of Share

However if I enter

smbmount //PDC/Share /home/steve/tmp -o 
username=username,password=password

I can then go to /home/steve/tmp and do an ls and see the contents of 
Share which means that I have the correct username and password at least.

Here is the output of the log files. Clearly there are some errors but I 
don't know what they mean:

log.winbindd

...
[2003/04/03 12:09:51, 1] lib/debug.c:debug_message(258)
  INFO: Debug class all level = 1  (pid 864 from pid 864)
[2003/04/03 12:09:52, 1] nsswitch/winbind_util.c:init_domain_list(150)
  Added domain My workgroup (S-1-5-21-190933-1062429835-2033415169)
[2003/04/03 12:09:52, 1] nsswitch/winbind_util.c:init_domain_list(152)
  Getting trusted domain list
[2003/04/03 12:09:52, 0] nsswitch/winbind_util.c:winbindd_param_init(323)
  winbind uid range missing or invalid
log.nmbd

...
[2003/04/03 12:09:51, 0] nmbd/nmbd.c:main(794)
  Netbios nameserver version 2.2.7 started
  Copyright Andrew Tridell and the Samba Team 1994-2002
[2003/04/03 12:09:51, 1] lib/debug.c:debug_message(258)
  INFO: Debug class all level = 1  (pid 855 from pid 855)
[2003/04/03 12:09:55, 0] 
nmbd/nmbd_responserecordsdb.c:find_response_record(235)
  find_response_record: response packet id 23267 received with no 
matching record
[2003/04/03 12:09:55, 0] 
nmbd/nmbd_responserecordsdb.c:find_response_record(235)
  find_response_record: response packet id 23268 received with no 
matching record
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Fwd: Re: [Samba] Problem of access samba from rh8[steve.blackwell@eer.com]

2003-03-04 Thread Steve Blackwell
Oops! meant to cc to the list

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problem of access samba from rh8

2003-03-03 Thread Steve Blackwell
Hey Patrick,

I have a similar issue that I have reported here before but I never got an 
answer.

The only difference I see between what you describe and what I see, is 
that I get an error dialog saying:

You do not have sufficient permission to view Share. This is strange to 
me since I appear to log on OK because I can see all the shares but I get 
this message when I try to access one of them.

I'm using RH8 with all the latest updates and these samba rpms

samba-common-2.2.7-2
samba-2.2.7-2
samba-client-2.2.7-2
I haven't had time to investigate this further so I would be interested in 
anything that you find out.

Steve.

On 2003.03.02 20:45 Patrick Kwan wrote:
Hello,

I already setup a samba server as PDC for windows client to logon and
working fine now with the following config:
- redhat 7.3
- samba 2.2.7a
Then I try to access the samba share from Redhat 8, I can use smbclient
to
access the share without problem but I can't access the share with KDE's
Konqueror (smb://NetbiosName/), it can show all shares, when I double
one
of share, it can show the login dialogue box, then I enter the correct
username and password but nothing displayed, it seem to try connecting
the
share.
So, I check the samba.log file, but it show that the user is connected to
the service successfully.
Any body have this issue before?
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] mapping usernames between Windows and Linux

2003-01-14 Thread Steve Blackwell
My username is different on my Linux box than on my Windows box so I used 
the line

username map = /etc/samba/smbusers

in my smb.conf file and this file includes the line

steve = steveb

However when I'm logged on to my Linux box as 'steve' and use the 
smbclient command like this:

# smbclient //Windows computer/Shared
...
session setup failed: NT_STATUS_LOGON_FAILURE

it still tries to log me on with my Linux username. I checked this using 
Ethereal. The environment variables $USER and $LOGNAME are both set to 
'steve'.

# smbclient //Windows computer/Shared -U steveb%my password

works OK. Can someone tell me how to do this mapping correctly?

I'm using samba-2.2.7-2 on a RH8.0 box.

Thanks,
Steve.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] mapping usernames between Windows and Linux

2003-01-13 Thread Steve Blackwell
My username is different on my Linux box than on my Windows box so I used 
the line

username map = /etc/samba/smbusers

in my smb.conf file and this file includes the line

steve = steveb

However when I'm logged on to my Linux box as 'steve' and use the 
smbclient command like this:

# smbclient //Windows computer/Shared
...
session setup failed: NT_STATUS_LOGON_FAILURE

it still tries to log me on with my Linux username. I checked this using 
Ethereal. The environment variables $USER and $LOGNAME are both set to 
'steve'.

# smbclient //Windows computer/Shared -U steveb%my password

works OK. Can someone tell me how to do this mapping correctly?

I'm using samba-2.2.7-2 on a RH8.0 box.

Thanks,
Steve.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] nautilus problem and smbclient question

2003-01-08 Thread Steve Blackwell
Hi,

I'm having a problem getting smb to work through Nautilus and in trying to 
diagnose the problem, I ended up with another problem with smbclient(1), 
or more likely a misunderstanding on my part about how it is supposed to 
work. I'm using the following packages on an up2date RH8.0 box.

# rpm -qa | grep samba
samba-common-2.2.7-2
samba-2.2.7-2
samba-client-2.2.7-2

# rpm -qa | grep nautilus
nautilus-2.0.6-6

When I type smb:/// into the location field in nautilus, I see 2 icons; 
one is called Network Neighborhood and the other is the name of my 
workgroup.

Next I double click on the workgroup icon and I can see all the computers 
in the workgroup. The nautilus location field now says smb://my workgroup 
name

Now I double click on a computer that has I share that I want to browse. I 
can see the directories on that computer and one is the share that I am 
interested in. There is also an icon called Shares on computer but 
this has a no read and no write emblem. The nautilus location field now 
says smb://computer.

Here's where my problem occurs. When I double click on the directory 
called Shared that I want to browse, a login dialog pops up. I enter my 
Windows user name and password but then I get a message that says You do 
not have the permissions necessary to view the contents of Shared

I know that I do have permission to view the contents of Shared so to 
check it I entered this from the command line:

# smbclient //computer/Shared -U steveb%password
...
[Domain=my domain] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
smb: \ ls
... a directory listing.

So my first question is: Can anyone tell me how to debug my nautilus 
problem?

I noticed in the smbclient man page that if you do not use the -U switch, 
it looks at the environment variables $USER and then $LOGNAME both of 
which are set to steve in my case. My windows username is different to 
my Linux username and so I included the following line in the global 
section of my smb.conf file:

username map = /etc/samba/smbusers

and this file includes the line

steve = steveb

but when I try this line, it fails

# smbclient //computer/Shared
...
session setup failed: NT_STATUS_LOGON_FAILURE

By using Ethereal I found that the mapping of steve to steveb is not 
happening.

My second question is how do I get smbclient to use the 
/etc/samba/smbusers file?

If you've read this far, I'm already impressed and if you can help I will 
be even more impressed.

Thanks,
Steve



--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba