[Samba] Bizarre behavior trying to connect to samba share/service from windows XP

2008-09-25 Thread John Birchfield

I'm using smbd version 3.0.28a on ubuntu 8.04.1
uname -a provides
  Linux bambi 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 
i686 GNU/Linux


The issue I have is that I want to have a service called C as defined as 
follows:


[C]
   path = /share/MD0/C
   browseable = yes
   public = yes
   invalid users =
   read list = guest, @"everyone"
   read only = yes
   locking = yes
   write list = jb, @"administrators"


Which I can't connect to from a Windows XP Service Pack 2 box.
However I can connect via umount.cifs from another linux system.
I can also connect if I rename the service either C$ or D.

If I try from my windows box I get the error shown below
  pushd \\bambi\c
  The system cannot find the path specified.

Does anyone have any idea why this is happening?

Thanks

john

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


[Samba] Unable to log onto Samba Share as Local Administrator

2008-09-25 Thread Jesse C
So we have a samba domain server and a samba member server with security set
to DOMAIN.

The domain server used to be running samba 3.0.  We recently swapped
machines out and replaced it with a newer server running samba 3.2.
Everything is still working fine, except.  We used to be able to access
shares on the member server as Local Administrator.  We'd put in the UNC
path \\server\temp and it would prompt us for a username and password.  We
could give it a username and password and everything would be fine.

That still works fine on the domain server.  however, on the member server
we now just get the "There are currently no logon servers available to
service the logon request."  If I login as a Domain Member, everything works
fine, I can access the shares on the member server just fine.

Anyone have any ideas?

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


[Samba] Problem building 3.2.4 on Solaris 10

2008-09-25 Thread John Center

Hi,

I'm trying to build Samba 3.2.4 on Solaris 10 using the Sun Studio 12 
compiler, but configure keeps dying at:


checking for LDAP support... auto
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking for ber_tag_t... yes
checking for ber_scanf in -llber... no
checking for ber_sockbuf_add_io... no
checking for LDAP_OPT_SOCKBUF... yes
checking for LBER_OPT_LOG_PRINT_FN... yes
checking for ldap_init in -lldap... no
checking for ldap_set_rebind_proc... no
checking whether ldap_set_rebind_proc takes 3 arguments... 3
checking for ldap_initialize... no
configure: WARNING: libldap is needed for LDAP support
checking for Active Directory and krb5 support... yes
configure: error: Active Directory Support requires LDAP support

Looking at the config.log, I see this:

configure:54440: cc -o conftest -O -D_SAMBA_BUILD_=3 
-I/opt/openldap/include -I/usr/sfw/include -I/usr/include 
-D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude 
-I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include 
-I./libaddns -I./librpc -I./popt -I/usr/include -L/opt/openldap/lib 
-R/opt/openldap/lib -R/../lib -L/usr/sfw/lib/sparcv9 
-R/usr/sfw/lib/sparcv9 -lthread -L./bin -L/usr/lib conftest.c -llber 
-lresolv -lumem  -lnsl -lsocket  >&5

"conftest.c", line 474: warning: statement not reached
ld: fatal: file /opt/openldap/lib/liblber.so: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to conftest
configure:54446: $? = 1

I'm compiling this 64-bit, but my CFLAGS variable is gone.  It should be:

CFLAGS="-g -O -mt -m64 -xarch=sparcvis -xcode=pic32 -xpagesize=4m 
-xbuiltin -xlibmil -xlibmopt -xlic_lib=sunperf"


I could see it earlier in the log during some of the tests, but it seems 
to have disappeared.  Is this a bug?  Is there a fix or a way to work 
around this?


Also, unrelated to my problem, I'm getting this warning:

checking netinet/ip.h usability... no
checking netinet/ip.h presence... yes
configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite 
headers?

configure: WARNING: netinet/ip.h: see the Autoconf documentation
configure: WARNING: netinet/ip.h: section "Present But Cannot Be 
Compiled"

configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result
configure: WARNING: netinet/ip.h: in the future, the compiler will take 
precedence

configure: WARNING: ##  ##
configure: WARNING: ## Report this to [EMAIL PROTECTED] ##
configure: WARNING: ##  ##
checking for netinet/ip.h... yes

Thanks.

-John

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


[Samba] Samba Permissions

2008-09-25 Thread Steve Payne

Folks,

We have a sun server that uses samba for our file shares. Our work 
stations are Windows xp and Windows Vista. I have noticed that on vista 
when I store files or create files, the permissions on windows vista 
shows no permissions. What would cause this? Our unix servers are part 
of our windows domain. When you ssh into the UNIX box, it shows that 
everyone has the correct permissions. What would be the cause? Thanks!

--
 
DAVID M. SCHWARZ ARCHITECTS 

STEVE R. PAYNE
IT System Administrator

T 202.862.0777
F 202.331.0507
D 202.912.6871
C 202.361.9357

David M. Schwarz Architects, Inc.
1707 L Street N.W. Suite 400  Washington, D.C. 20036
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] invalid username error when accessing a share causes delay (but works...)

2008-09-25 Thread Poitras François-Joseph
Hi,

(thanks to V. Lendecke and W. Ratzka who helped me with my previous question)

I've decided to set-up Samba using ADS security and it works fine.  The only 
thing is I have a 5-6 seconds delay when I access a share the first time after 
I login.  The delay occurs again if I've been logged in for a while but haven't 
gone to to the share and then try to access it.  Everytime this delay occurs I 
get this message in a file named SERVER_NAME.log under the Samba log folder

 "Username REALM\SERVER_NAME$ is invalid on this system" where SERVER_NAME$ is 
the name of the server from which a user is connecting to the shared folder and 
REALM is my realm specified in the smb.conf file and my krb5.conf file.

I've googled this but only found the information below:

This usually happens when a non unix-enabled account performs a network browse. 
It is often a workstation account, appearing as DOMAIN\HOST$. The account 
successfully authenticates itself to the samba server, but there is no UID 
associated with it (as it's not VAS-enabled). The messages are harmless, and 
indicate that some of your shares can't be accessed by non-unix enabled users.
To remove these messages, do ONE of the following:
1 - specify "log level = 0" in smb.conf. This will hide those messages.
However, I'm worried setting log level = 0 will prevent useful messages from 
appearing in my logs.  Does someone have any idea of what the best course of 
action is?  Let me know if you need any config info.
Thanks!
FJ


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


[Samba] I have no name Error

2008-09-25 Thread Linux Addict
I just compiled and installed samba 3.2.4 on Redhat host and configured as
member. While I try to login as an AD user, I get "I have no name" and
"cannot find name" error.

[EMAIL PROTECTED] su - testuser
id: cannot find name for user ID 11616
id: cannot find name for group ID 10513
id: cannot find name for user ID 11616

But wbinfo --uid-info=11616 returns the result.

Any idea why?

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


Re: Fwd: Re: [Samba] Samba 3.2.4 and alternate data streams

2008-09-25 Thread Jeremy Allison
On Thu, Sep 25, 2008 at 09:09:33AM +0200, François Legal wrote:
> To be honest, I'm not sure wether these alternate data stream files were
> created under 3.2.0 3.2.2 or 3.2.4.
> I just noticed that they are here and report.

They were probably created under 3.2.x (x < 2). Just delete them
on the UNIX side.

> How can I make sure that these files will not be created again (some kind
> of test case that records alternate data streams) ?
> Is there any possibility to disable this alternate data stream feature ?

The bug was fixed for 3.2.2.

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


[Samba] Question about Samba connections for 3.0 and 3.2

2008-09-25 Thread William Jojo

What typically causes the following in the log?

[2008/09/25 09:07:14, 0] smbd/server.c:open_sockets_smbd(527)
  open_sockets_smbd: accept: Software caused connection abort

--

I know that these are created due to accepting connections on both 445 and 139:

[2008/09/25 09:07:24, 0] lib/util_sock.c:get_peer_addr(1232)
  getpeername failed. Error was Socket is not connected
[2008/09/25 09:07:24, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 151.103.29.248. Error Broken 
pipe
[2008/09/25 09:07:24, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (Broken pipe)


The 445 is answered first by Samba, Windows closes the 139 connection and Samba 
then tries to reply to the client on the 139 connection which is no longer 
connected. Is this correct?



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


RE: Re: [Samba] Samba 3.2.4 and alternate data streams

2008-09-25 Thread James Kosin
Francois,

For now, just remove the files on the Linux box.  One of the versions actually 
started creating these files when support for the file system was not enabled 
that needed these files.
I'm sure it has been corrected; although can't find the release notes for the 
fix at the moment.

Note: You will have to login to the Linux box and remove the files there.  The 
shares have the files locked so you won't be able to remove them from the 
shared drive across the network.

James

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of François Legal
Sent: Thursday, September 25, 2008 3:20 AM
Subject: Fwd: Re: [Samba] Samba 3.2.4 and alternate data streams

To be honest, I'm not sure wether these alternate data stream files were
created under 3.2.0 3.2.2 or 3.2.4.
I just noticed that they are here and report.

How can I make sure that these files will not be created again (some kind
of test case that records alternate data streams) ?
Is there any possibility to disable this alternate data stream feature ?

François


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

Re: [Samba] Share name and file rights

2008-09-25 Thread Bengt Nilsson


24 sep 2008 kl. 22.43 skrev Aaron Maley:


For the first, what OS are you using for a client?


I am using MacOSX.
Sorry about that.
On Windows, the server name is displayed by default, while on Mac it  
is not.
If there is a setting on Mac to display server name, I am not aware of  
it.





In terms of the second, you should be able to do what you're trying  
to do using the "directory mask" , "force create mode" and "force  
directory mode" on the shares in question. Check the manpage for  
further details.


This is now solved by the help of you and others.



Bengt Nilsson wrote:

A question about share names:

When we open a samba share, I want the symbol on my desktop to have  
the name "[EMAIL PROTECTED]", not just "johndoe".
This is because we have a number of different "sambaservers" that  
johndoe can log on to, and it will be a mess on his desktop if he  
uses several connections at the same time.


i cannot find this feature in the docs (if I did i would't be here)  
but I am sure it must exist.


What entry should I add/modify in smb.conf to control this?

A question about creation rights:

Directories should have x-rights, and text files should not,  
otherwise they will be regarded as like programs  or shell scripts  
in unix environment.
If I use create = 0700 directories are ok, but text files becomes  
shell scripts, which I do not like. I cannot double-click on them  
in CDE to popen them as documents.

If I use create 0600 I cannot access my folders.
Am I right or have I misunderstood someting?
Is there a way to keep correct directory access and still handle  
documents with -rw--?


BN


--
Aaron Maley
Network/Desktop Support
Edgewater Computer Systems, Inc.
1125 Innovation Drive
Kanata ON, K2K 3G6, Canada
Tel:  1 (613) 271-1101 ext 3309
Fax: 1 (613) 271-1152
___

This e-mail may be privileged and/or confidential, and the sender  
does not waive any related rights and obligations.
Any distribution, use or copying of this e-mail or the information  
it contains by other than an intended recipient is unauthorized.
If you are not the intended recipient, please notify me at the  
telephone number shown above or by return e-mail and immediately  
delete this communication and any copy.

Thank you.

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


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


WG: [Samba] vista cannot connect to samba

2008-09-25 Thread Daniel Müller
It's the same for the networkcenter.
You should then be able to see the network

-Ursprüngliche Nachricht-
Von: Bahadir Tonguc / Supramar [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 25. September 2008 08:50
An: [EMAIL PROTECTED]
Betreff: Re: [Samba] vista cannot connect to samba

Thanks but using Vista Home unfo..
what to do now?

- Original Message - 
From: "Daniel Müller" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, September 25, 2008 9:43 AM
Subject: WG: [Samba] vista cannot connect to samba


What is Your samba version?
If above 3.02

In Your smb.conf global section:

#vista compatibility
client lanman auth=no
client ntlmv2 auth=yes

Next on your vista business or higher
Go to your networkcenter an put recognize network(netzwerkerkennung) to
on.

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im
Auftrag von James
Gesendet: Mittwoch, 24. September 2008 22:28
Cc: samba@lists.samba.org
Betreff: Re: [Samba] vista cannot connect to samba

On Wed, September 24, 2008 4:20 pm, Bahadir Tonguc / Supramar wrote:
> Dear friends,
>
>
> I have installed Samba on our Ubuntu pc at the office and XP computers
> can easily connect while Vista machines insistently do not see the
server
> to connect.
>
> Any suggestions?

Read this:
http://www.linux-watch.com/news/NS4434907782.html

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


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

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


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


Fwd: Re: [Samba] Samba 3.2.4 and alternate data streams

2008-09-25 Thread François Legal
To be honest, I'm not sure wether these alternate data stream files were
created under 3.2.0 3.2.2 or 3.2.4.
I just noticed that they are here and report.

How can I make sure that these files will not be created again (some kind
of test case that records alternate data streams) ?
Is there any possibility to disable this alternate data stream feature ?

François

 Original Message 
Subject: Re: [Samba] Samba 3.2.4 and alternate data streams
Date: Wed, 24 Sep 2008 19:51:00 -0400
From: "James Kosin" <[EMAIL PROTECTED]>
To: François Legal <[EMAIL PROTECTED]>

- Original Message - 
From: "François Legal" <[EMAIL PROTECTED]>
Newsgroups: linux.samba
Sent: Wednesday, September 24, 2008 6:10 PM
Subject: [Samba] Samba 3.2.4 and alternate data streams


>
>
> Hello,
> I just upgraded to 3.2.4, and today I observed in one of my share
> that some of the file where being kind of duplicated with a trailing
> ":Zone.Identifier:$DATA" at the end of filename.
>
> I think this has to do with alternate data streams, but the point is
> the share runs out of an XFS filesystem which is supposed to support
> the xattr.
>
> Why are these files created, and is there any way to prevent this
> creation ?
> Thanks
> François

I thought this was fixed in 3.2.2 ???

James 

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