[Samba] Auth prompt if access share by machine name

2008-01-13 Thread Michelle Dupuis
I have a AD domain running fine, and I want to add my first linux server.
To keep things simple, I do NOT want to integrate it into my domain.  I just
want to create a share that anyone can read/write to.

I've created the setup below which works fine only if I access the linux
share box by ip address from windows; eg: \\1.2.3.4  This gives me full r/w
permission without any authentication prompts.
However, if I access the box using the name (eg: \\server) then I get an
authentication prompt I can't get past.

I've read the online docs but can' find a solution.  Can someone help?
thanks,
MD


results of my testparm are below. I've replaced my real netbios domain name
with MYDOMAIN, and hidden the wins IP.  I've also disabled print sharing
which explains the printcap stuff.

Load smb config files from /etc/samba/smb.conf
Processing section "[movies]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = MYDOMAIN
server string = Test server
security = SHARE
log file = /var/log/samba/%m.log
max log size = 50
load printers = No
printcap name = /dev/null
dns proxy = No
wins server = 1.2.3.4
printing = bsd
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j

[movies]
comment = Movies
path = /storage/movies
force user = testuser
force group = testgroup
read only = No
guest ok = Yes

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


RE: [Samba] Standalone Server with Wins -- Password Not Required onWin/XP

2008-01-13 Thread Michelle Dupuis
Try access your linux samba box by IP from windows (\\1.2.3.4) instead of by
name (\\servername).  Same result? 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Greg Sims
> Sent: Sunday, January 13, 2008 11:23 AM
> To: samba@lists.samba.org
> Subject: [Samba] Standalone Server with Wins -- Password Not 
> Required onWin/XP
> 
> I tried adding "guest ok = no" in the [homes] section below 
> and got the same results.
> 
> On first access from a WinXP Client, the system requests a 
> userid and password.  If you provide a userid and password, 
> the system will Not allow you to view the shares.  The only 
> way (that I've found) to get passed this is to provide the 
> userid Only -- this allows access to a window that contains 
> the shares. Clicking on one of the share icons provides 
> access to the shares without ever entering a password.  This 
> is the security issue we need help fixing.
> 
> I'm looking forward to some feedback on this.  Thanks!  Greg
> 
> -Original Message-
> 
> Hi There,
> 
> I created a standalone server on CentOS 5.1 with samba at 25b 
> on an x86_64 system. The shares defined below are available 
> to the windows xp clients on the 10.43.10.x/24 subnet.  Samba 
> also provides win server support to this subnet.
> 
> We are having problems with password protection associated 
> with the shares.
> The first access to the samba server requests a userid -- 
> this likely allows samba to understand which home share 
> should be displayed.  At this point, the client can access 
> both the 'homes' share and the 'orr' share without ever 
> entering a password -- this is a security issue for us.
> 
> We need to figure out how to configure samba to enforce 
> userid & password protection prior to allowing access to a 
> share. Below is a copy of the smb.conf file that we are using 
> for testing.
> 
>   [global]
> 
> # workgroup and server identification
> workgroup = ORRRANCH
> server string =
> netbios name = ORR00
> 
> interfaces = 10.43.10.0/24 lo
> bind interfaces only = yes
> hosts allow = 10.43.10. 127.0.0.
> 
> # logs split per machine; max 50KB per log file, then rotate
> log file = /var/log/samba/%m.log
> max log size = 50
> 
> # default user security, encrypted passwords and tdbsam
> security = user
> encrypt passwords = yes
> passdb backend = tdbsam
> 
> # allow samba to be the domain master browser if possible
> local master = yes
> os level = 33
> preferred master = yes
> domain master = yes
> 
> # samba is a wins server for the system; use wins first
> wins support =yes
> name resolve order = wins hosts bcast
> 
>   [homes]
> comment = Home Directories
> browseable = no
> writable = yes
> valid users = %S
> path = /samba/home/%S
> 
>   [orr]
> comment = Orr Ranch Share
> path = /samba/orr
> valid users = greg catherine sarah brandon
> guest ok = no
> writable = yes
> printable = no
> create mask = 0765
> 
> 
> Each of the 'valid users' have ids on the system and have 
> used smbpasswd to create samba passwords. Nsswitch.conf has 
> been modified to add 'wins' to the 'hosts' line to assist 
> with names resolution.
> 
> Any assistance would be appreciated!!  Thanks, Greg
> 
> --
> 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


RE: [Samba] Connection dropped when copying large files to a SambaServer

2007-02-09 Thread Michelle Dupuis
I'm not sure how best to proceed with this one either...short of generating
a huge amount of debug info.

One clue (should someone be reviewing the nearby code), is that the failure
appears to occur around the time of file close!  In my tests, I can write
out 65GB of data no problem, but around the time of file close smb hangs up.


I don't think it's an underlying filesystem issue since an equivalent write
using NFS to the same server works great.

MD

-Original Message-
From: Volker Lendecke [mailto:[EMAIL PROTECTED] On Behalf Of Volker
Lendecke
Sent: Friday, February 09, 2007 4:22 AM
To: Michelle Dupuis
Cc: samba@lists.samba.org
Subject: Re: [Samba] Connection dropped when copying large files to a
SambaServer

On Thu, Feb 08, 2007 at 02:04:18PM -0500, Michelle Dupuis wrote:
> I can see h/w being a cause in many cases.  We've reproduced this on 2 
> different servers with 2 different storage technologies.  And once 
> using Backup Exec and once using Ghost.
> 
> Starting to smell a lot like a s/w problem...

We would need much more information. I know it's difficult to do higher
debug levels for this data rate, but without more info we just can't
diagnose this remotely.

Volker


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


RE: [Samba] Connection dropped when copying large files to a SambaServer

2007-02-08 Thread Michelle Dupuis
I can see h/w being a cause in many cases.  We've reproduced this on 2
different servers with 2 different storage technologies.  And once using
Backup Exec and once using Ghost.

Starting to smell a lot like a s/w problem...

MD

-Original Message-
From: Michael Gasch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 07, 2007 11:49 PM
To: Michelle Dupuis
Cc: samba@lists.samba.org
Subject: Re: [Samba] Connection dropped when copying large files to a
SambaServer

hi,

just to tell you that we had the same issue 2 years ago and my colleague
blamed samba for this. in fact it turned out to be a SCSI HW problem on the
system. all stress test on the local storage succeeded but when samba came
into the game it broke the system. that's why we thought it's related to
samba, which wasn't true...

micha

Michelle Dupuis wrote:
> Not hijacking the thread here...just adding more info as I have the 
> same issue.
> 
> I run Samba 3.0.23c (on FC6 64 bit), and am backing up from a Windows 
> box to my Samba share.  Sometimes it works great; other times the 
> samba share locks up (I need to restart the smb service); and last 
> week samba caused a kernel panic.  I can sometimes get 65GB onto the share
before it locks up.
> 
> I can backup to the share using NFS (using Windows Services for Unix) 
> without issue, but not to Samba.  My relevant smb.conf settings are:
> 
> reset on zero vc = yes
> read raw = yes
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> 
> Strangely, smb logs NO errors!  Trying to browse to the share from any 
> windows client times out.  But, after an smb restart everything is 
> fine again.
> 
> -MD-
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Felipe Augusto van de Wiel
> Sent: Monday, February 05, 2007 9:05 AM
> To: samba@lists.samba.org
> Subject: Re: [Samba] Connection dropped when copying large files to a 
> SambaServer
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 01/30/2007 02:44 PM, mactek - Manuel Teixeira wrote:
>> Hi all
>>  
>> I have a CentOS 4.4
>>  
>> Kernel 2.6.9-11.EL
>> Samba (smbd -V)
>> 3.0.10-1.4E.9
> 
>   As a side note, you _really_ should install a newer version of
Samba, 
> the last stable release is 3.0.23d.
> 
> 
>> I've been using this server as a small file server recently i needed 
>> to do a backup (ntbackup to file) and the backup fails randomly, the 
>> largest backup file i managed was about 3GBytes I tried copying large 
>> files and randomly the connection is lost I tried with a ping at the 
>> same time and the replies don't get interrupted so it seems to me it 
>> is a samba issue
>>  
>> I have the latest versions (except the kernel) or so the updater 
>> tells me
> 
>   If you are talking about samba then, no, definetely you don't have 
> the latest version. Could you please post your smb.conf so the list 
> can take a look at it?
> 
>   Good tips would include to check the oplocks and the socket options.
> 
> 
>> thanks all
>> Manuel Teixeira
> 
>   Kind regards,
> 
> - --
> Felipe Augusto van de Wiel <[EMAIL PROTECTED]> Coordenadoria 
> de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
> http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFFxzl6Cj65ZxU4gPQRAiyiAJ9yLZrnR2fPG4Dk5Km3ATVEIgnw+ACgphJk
> LhmgDczhEI+NjnEJzmozc2g=
> =lgWl
> -END PGP SIGNATURE-
> --
> 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


RE: [Samba] Connection dropped when copying large files toa SambaServer

2007-02-05 Thread Michelle Dupuis
But SAMBA showed in the stack dump during the crash (and this system was
running stable for months - and crashed during our first big samba
transfer).

I suppose you are right technically...but it points a big finger at Samba

 

-Original Message-
From: Volker Lendecke [mailto:[EMAIL PROTECTED] On Behalf Of Volker
Lendecke
Sent: Monday, February 05, 2007 10:52 AM
To: Michelle Dupuis
Cc: 'Toby Bluhm'; samba@lists.samba.org
Subject: Re: [Samba] Connection dropped when copying large files toa
SambaServer

On Mon, Feb 05, 2007 at 10:36:18AM -0500, Michelle Dupuis wrote:
> > I run Samba 3.0.23c (on FC6 64 bit), and am backing up from a 
> > Windows box to my Samba share.  Sometimes it works great; other 
> > times the samba share locks up (I need to restart the smb service); 
> > and last week samba caused a kernel panic.  I can sometimes get 65GB 
> > onto the share
> before it locks up.

A kernel panic is by definition not a Samba problem.

Volker


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


RE: [Samba] Connection dropped when copying large files toa SambaServer

2007-02-05 Thread Michelle Dupuis
Just another clue for you:

The samba crash/lockup appears to happen at the END of a large file write.
I can write 2gb or 65gb files across the lan to the samba share, but when
the file is (or is about to be) closed, samba locks up the share.

I already tried with NO socket options - same results

MD 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Toby
Bluhm
Sent: Monday, February 05, 2007 9:36 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Connection dropped when copying large files toa
SambaServer

Michelle Dupuis wrote:
> Not hijacking the thread here...just adding more info as I have the 
> same issue.
>
> I run Samba 3.0.23c (on FC6 64 bit), and am backing up from a Windows 
> box to my Samba share.  Sometimes it works great; other times the 
> samba share locks up (I need to restart the smb service); and last 
> week samba caused a kernel panic.  I can sometimes get 65GB onto the share
before it locks up.
>
> I can backup to the share using NFS (using Windows Services for Unix) 
> without issue, but not to Samba.  My relevant smb.conf settings are:
>
> reset on zero vc = yes
> read raw = yes
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>
>   

Recent thinking is that so_rcvbuf & so_sndbuf are probably not needed
anymore and may actually degrade performance. Try commenting them out & test
again.

-- 

-Toby


--
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


RE: [Samba] Connection dropped when copying large files to a SambaServer

2007-02-05 Thread Michelle Dupuis
Not hijacking the thread here...just adding more info as I have the same
issue.

I run Samba 3.0.23c (on FC6 64 bit), and am backing up from a Windows box to
my Samba share.  Sometimes it works great; other times the samba share locks
up (I need to restart the smb service); and last week samba caused a kernel
panic.  I can sometimes get 65GB onto the share before it locks up.

I can backup to the share using NFS (using Windows Services for Unix)
without issue, but not to Samba.  My relevant smb.conf settings are:

reset on zero vc = yes
read raw = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

Strangely, smb logs NO errors!  Trying to browse to the share from any
windows client times out.  But, after an smb restart everything is fine
again.

-MD-
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Felipe
Augusto van de Wiel
Sent: Monday, February 05, 2007 9:05 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Connection dropped when copying large files to a
SambaServer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/30/2007 02:44 PM, mactek - Manuel Teixeira wrote:
> Hi all
>  
> I have a CentOS 4.4
>  
> Kernel 2.6.9-11.EL
> Samba (smbd -V)
> 3.0.10-1.4E.9

As a side note, you _really_ should install a newer version of
Samba, the last stable release is 3.0.23d.


> I've been using this server as a small file server recently i needed 
> to do a backup (ntbackup to file) and the backup fails randomly, the 
> largest backup file i managed was about 3GBytes I tried copying large 
> files and randomly the connection is lost I tried with a ping at the 
> same time and the replies don't get interrupted so it seems to me it 
> is a samba issue
>  
> I have the latest versions (except the kernel) or so the updater tells 
> me

If you are talking about samba then, no, definetely you don't have
the latest version. Could you please post your smb.conf so the list can take
a look at it?

Good tips would include to check the oplocks and the socket options.


> thanks all
> Manuel Teixeira

Kind regards,

- --
Felipe Augusto van de Wiel <[EMAIL PROTECTED]> Coordenadoria de
Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFxzl6Cj65ZxU4gPQRAiyiAJ9yLZrnR2fPG4Dk5Km3ATVEIgnw+ACgphJk
LhmgDczhEI+NjnEJzmozc2g=
=lgWl
-END PGP SIGNATURE-
--
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


[Samba] Samba behaving badly with quotas

2007-02-01 Thread Michelle Dupuis
I have successfully added disk quotas to my FC6 system, so that the user
"backup" cannot create files more than 1 block on /   The reason I
implemented this was because I backup my system to a USB drive mounted to
/media/drivebay/backup1.  However, if the drive is not mounted, then my root
drive fills up (writing to the /media/drivebay/backup1 folder) and linux
hangs.

The problem is, that the user quota applied to / is also applying to my
/media/drivebay/backup1 device too -only when accessed remotely as a SAMBA
share!  (I don't think that it should; although /media/drivebay is on the
same partition as / the backup1 subdir is my mountpoint).  In other words,
the user "backup" cannot write more than 1 block to /media/drivebay/backup1
when accessing via SAMBA.   Why is this - and how do I fix it?

My goal is to prevent the user backup from writing more than 1 block to / ,
but as much as he wants to /media/drivebay/backup - when copying data from
remote machines.  What do I have to change?  (I know that I could do
something similar in a script, but I want to learn about quotas).
 
the usrquota program does not exist in my distro (FC6), but "repquota
/media/drivebay/backup1" shows:
repquota: Mountpoint (or device) /media/drivebay/backup1 not found.
repquota: Not all specified mountpoints are using quota.

This suggests that quotas are not applied to that mount point.  HoweverI
can r/w just fine as user "backup" with quotas off, and not with quotas on.

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