[Samba] Can't become connected user! - network browsing issue

2004-09-16 Thread Carl Matthews
Hi,
I am having an issue browsing my work group, i have made the samba 
server the master browser and it wins the elections. As far as i can 
tell from the nmbd.logs it is also collecting hosts for the workgroup 
but when you try to list the workgroup this error is recorded in the 
messages log :

nss_wins[7417]: [2004/09/14 09:54:23, 0] 
smbd/service.c:make_connection_snum(570)

nss_wins[7417]:   Can't become connected user!
Now all users can use \\server and list the shares and access them all, 
so all users and passwords are correct.

windows gives the error Workgroup is not accessible, you might not have 
permission to use the network resource

The server is running Fedora Core 1 and samba version : 3.0.6-2.FC1
The best bits of my smb.conf is below, thanks for any help.
Carl Matthews
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/06/23 10:15:40
# Global parameters
[global]
log file = /var/log/samba/%m.log
loglevel = 1
load printers = No
security = user
encrypt passwords = yes
guest ok = yes
dos filemode = Yes
ldap ssl = no
name resolve order = wins lmhosts host bcas
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
deadtime = 15
create mask = 0775
encrypt passwords = yes
oplock break wait time = 100
wins support = Yes
dns proxy = No
netbios aliases = FC1
server string = -Server- FC1
#unix password sync = yes
local master = yes
mangle prefix = 8
os level = 255
directory mask = 0775
valid users = @MLE-ALL
preferred master = yes
max log size = 500
[www]
comment = Mandrake Webserver
path = /var/www
valid users = carl
admin users = carl
read list = carl
write list = carl
read only = No
[homes]
comment = Home Directories
path = /home/%u
read only = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[NET-Eng]
comment = Product Design By Genius
path = /mnt/mle-net/MLE-NET/MLE-NET-Eng
write list = @MLE-ALL
force user = mleall
read only = No
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Workgroup Browsing Issue and wins on 3.0.6

2004-09-14 Thread Carl Matthews
Hi,
I am having an issue browsing my work group, i have made the samba 
server the master browser and it wins the elections. As far as i can 
tell from the nmbd.logs it is also collecting hosts for the workgroup 
but when you try to list the workgroup this error is recorded in the 
messages log :

nss_wins[7417]: [2004/09/14 09:54:23, 0] 
smbd/service.c:make_connection_snum(570)

nss_wins[7417]:   Can't become connected user!
Now all users can use \\server and list the shares and access them all, 
so all users and passwords are correct.

windows gives the error Workgroup is not accessible, you might not have 
permission to use the network resource

The server is running Fedora Core 1 and samba version : 3.0.6-2.FC1
Also i had a problem the other day where some wins entries were wrong so 
i deleted the wins.dat and restarted the server, but the wrong wins 
entries reappeared. after rebooting the server it seems to be working 
now, apart from another samba server doesnt add it self to the wins 
server list. It has win support = false and win server = xxx.xxx.xxx.xxx 
in its config.

The best bits of my smb.conf is below, thanks for any help.
Carl Matthews
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/06/23 10:15:40
# Global parameters
[global]
log file = /var/log/samba/%m.log
loglevel = 1
load printers = No
security = user
encrypt passwords = yes
guest ok = yes
dos filemode = Yes
ldap ssl = no
name resolve order = wins lmhosts host bcas
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
deadtime = 15
create mask = 0775
encrypt passwords = yes
oplock break wait time = 100
wins support = Yes
dns proxy = No
netbios aliases = FC1
server string = -Server- FC1
#unix password sync = yes
local master = yes
mangle prefix = 8
os level = 255
directory mask = 0775
valid users = @MLE-ALL
preferred master = yes
max log size = 500

[www]
comment = Mandrake Webserver
path = /var/www
valid users = carl
admin users = carl
read list = carl
write list = carl
read only = No
[homes]
comment = Home Directories
path = /home/%u
read only = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[NET-Eng]
comment = Product Design By Genius
path = /mnt/mle-net/MLE-NET/MLE-NET-Eng
write list = @MLE-ALL
force user = mleall
read only = No

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


[Samba] Re: Workgroup Browsing Issue and wins on 3.0.6

2004-09-14 Thread Carl Matthews
 : 3.0.6-2.FC1
Also i had a problem the other day where some wins entries were wrong so 
i deleted the wins.dat and restarted the server, but the wrong wins 
entries reappeared. after rebooting the server it seems to be working 
now, apart from another samba server doesnt add it self to the wins 
server list. It has win support = false and win server = xxx.xxx.xxx.xxx 
in its config.

The best bits of my smb.conf is below, thanks for any help.
Carl Matthews
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/06/23 10:15:40
# Global parameters
[global]
log file = /var/log/samba/%m.log
loglevel = 1
load printers = No
security = user
encrypt passwords = yes
guest ok = yes
dos filemode = Yes
ldap ssl = no
name resolve order = wins lmhosts host bcas
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
deadtime = 15
create mask = 0775
encrypt passwords = yes
oplock break wait time = 100
wins support = Yes
dns proxy = No
netbios aliases = FC1
server string = -Server- FC1
#unix password sync = yes
local master = yes
mangle prefix = 8
os level = 255
directory mask = 0775
valid users = @MLE-ALL
preferred master = yes
max log size = 500

[www]
comment = Mandrake Webserver
path = /var/www
valid users = carl
admin users = carl
read list = carl
write list = carl
read only = No

[homes]
comment = Home Directories
path = /home/%u
read only = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[NET-Eng]
comment = Product Design By Genius
path = /mnt/mle-net/MLE-NET/MLE-NET-Eng
write list = @MLE-ALL
force user = mleall
read only = No


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


[Samba] Re: Workgroup Browsing Issue and wins on 3.0.6

2004-09-14 Thread Carl Matthews
 the error Workgroup is not accessible, you might not 
have permission to use the network resource

The server is running Fedora Core 1 and samba version : 3.0.6-2.FC1
Also i had a problem the other day where some wins entries were wrong 
so i deleted the wins.dat and restarted the server, but the wrong wins 
entries reappeared. after rebooting the server it seems to be working 
now, apart from another samba server doesnt add it self to the wins 
server list. It has win support = false and win server = 
xxx.xxx.xxx.xxx in its config.

The best bits of my smb.conf is below, thanks for any help.
Carl Matthews
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/06/23 10:15:40
# Global parameters
[global]
log file = /var/log/samba/%m.log
loglevel = 1
load printers = No
security = user
encrypt passwords = yes
guest ok = yes
dos filemode = Yes
ldap ssl = no
name resolve order = wins lmhosts host bcas
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
deadtime = 15
create mask = 0775
encrypt passwords = yes
oplock break wait time = 100
wins support = Yes
dns proxy = No
netbios aliases = FC1
server string = -Server- FC1
#unix password sync = yes
local master = yes
mangle prefix = 8
os level = 255
directory mask = 0775
valid users = @MLE-ALL
preferred master = yes
max log size = 500
[www]
comment = Mandrake Webserver
path = /var/www
valid users = carl
admin users = carl
read list = carl
write list = carl
read only = No
[homes]
comment = Home Directories
path = /home/%u
read only = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[NET-Eng]
comment = Product Design By Genius
path = /mnt/mle-net/MLE-NET/MLE-NET-Eng
write list = @MLE-ALL
force user = mleall
read only = No



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


[Samba] Re: String overflow in safe_strcpy

2004-08-03 Thread Carl Matthews
Hi Jeremy,
Please See the attached .tar with an example file structure that will 
cause the problem on FC2.

Samba version 3.05
FC2 2.4.22-1.2194.nptl #1 Thu Jun 17 10:56:28 EDT 2004 i686 athlon i386 
GNU/Linux

These folders were located in /home/local/samba-public
But again this will happen for every file over the 8.3 limit
Below are the errors it causes when i list the directory using winxp 
home client:

Aug  3 08:56:59 mandrake1 nss_wins[7438]: [2004/08/03 08:56:59, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Aug  3 08:56:59 mandrake1 nss_wins[7438]:   ERROR: string overflow by 1 
(9 - 8) in safe_strcpy [THIS ~P0.TXT]
Aug  3 08:56:59 mandrake1 nss_wins[7438]: [2004/08/03 08:56:59, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Aug  3 08:56:59 mandrake1 nss_wins[7438]:   ERROR: string overflow by 1 
(20 - 19) in safe_strcpy [This Folder is long.txt]
Aug  3 08:57:02 mandrake1 nss_wins[7438]: [2004/08/03 08:57:02, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Aug  3 08:57:02 mandrake1 nss_wins[7438]:   ERROR: string overflow by 1 
(9 - 8) in safe_strcpy [THIS ~50.TXT]
Aug  3 08:57:02 mandrake1 nss_wins[7438]: [2004/08/03 08:57:02, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Aug  3 08:57:02 mandrake1 nss_wins[7438]:   ERROR: string overflow by 1 
(24 - 23) in safe_strcpy [This Folder is long too.txt]

If you need any more info just let me know.
Best Regards
Carl.
Carl wrote:
Hi,
We have 98se2 and xp home sp1 and xp pro sp1 clients, i know for sure 
win98 and xp home when listing a directory cause this problem, we only 
have a few xp pro laptops so i cant be 100% sure about those.

as for the directory i can on monday when i go back to work, but it will 
happen with any file over the limit, i end up with error logs of about 
500-600mb full of these errors.

The clients are windows 98 se and windows xp home, I know that errors 
are reported for them im pretty sure its any client but i cant say i 
have proven that.

I have a fedora box here so i might try to reproduce the errors on it 
tonight so i have sumthing to send you. Its a shame are old compilers 
and our old pcb cad system dont like the hash2.

Thanks,
Carl.

On Fri, Jul 30, 2004 at 07:58:59PM +0100, Carl wrote:
Hi jeremy,
You not going to like this but I am still getting the errors String 
overflow in safe_strcpy with the same config file as before and with 
the latest release (3.0.5.2 - fedora2 rpms from 
http://www.mirror.ac.uk/sites/ftp.samba.org/Binary_Packages/Fedora/RPMS/i386/core/2/ 
)

I have included the errors in the attached .txt file.
all i had to do to reproduce the error was goto a directory 
containing the samba rpm files ( which are over the 8.3 ) and of 
course the same happens for any other file over the 8.3 but not for 
directories.

Ok, can you give me a tarball containing the directory and also
the *exact* client you're using to reproduce this so I can check.
Thanks,
Jeremy.


# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/06/23 10:15:40

# Global parameters
[global]
server string = Mandrake1
netbios aliases = FC1
password server = None
guest account = mleall
username map = /etc/samba/smbusers
log level = 0
log file = /var/log/samba/%m.log
max log size = 500
name resolve order = wins lmhosts host bcas
deadtime = 15
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
mangling method = hash
preferred master = Yes
domain master = No
dns proxy = No
wins support = Yes
oplock break wait time = 100
ldap ssl = no
valid users = @MLE-ALL
create mask = 0775
directory mask = 0775
guest ok = Yes
dos filemode = Yes


[NET-Eng]
comment = Product Design By Genius
path = /mnt/mle-net/MLE-NET/MLE-NET-Eng
write list = @MLE-ALL
force user = mleall
read only = No

[NET-GMDB]
comment = MLE-NET GoldMine DB
path = /mnt/mle-net/MLE-NET/MLE-NET-GMDB
write list = @MLE-ALL
force user = mleall
read only = No
veto oplock files = /*.DBT/*.DBF/*.MDX/
blocking locks = No
level2 oplocks = No
dos filemode = No

[NET-Public]
comment = MLE-NET Public Share
path = /home/local/samba-public
write list = @MLE-ALL
force user = mleall
read only = No
copy = NET-Eng

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

[Samba] Re: String overflow in safe_strcpy .

2004-07-20 Thread Carl Matthews
Is there another way to make shares readable to 16 bit apps that use the 
8.3 filename. because with out specifying mangling method = hash the 
file names are completly mangled and only the first letter remains the 
same. Where as mangling method = hash only mangles the last 3 letters.

Carl.
Carl Matthews wrote:
Hi Jeremy,
Sorry for not replying sooner, ive attached my config file.
as a quick test,
I created a folder called : Test Directory That Is Long
under which i created a folder called This folder is long too
and a file called This Folder is long.txt
and this gives me the string errors.
Thanks.
Jeremy Allison wrote:
On Wed, Jul 14, 2004 at 11:03:26PM +0100, Carl wrote:
Just Installed 3.0.5rc1 and the problem persists unfortunately,

Ok, can you give me the smb.conf file and the directory and
filenames you're using. I'll see if I can reproduce with the
latest SVN code.
Thanks,
Jeremy.


# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/06/23 10:15:40
# Global parameters
[global]
server string = Mandrake1
netbios aliases = FC1
password server = None
guest account = mleall
username map = /etc/samba/smbusers
log level = 0
log file = /var/log/samba/%m.log
max log size = 500
name resolve order = wins lmhosts host bcas
deadtime = 15
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
mangling method = hash
preferred master = Yes
domain master = No
dns proxy = No
wins support = Yes
oplock break wait time = 100
ldap ssl = no
valid users = @MLE-ALL
create mask = 0775
directory mask = 0775
guest ok = Yes
dos filemode = Yes
[NET-Eng]
comment = Product Design By Genius
path = /mnt/mle-net/MLE-NET/MLE-NET-Eng
write list = @MLE-ALL
force user = mleall
read only = No
[NET-GMDB]
comment = MLE-NET GoldMine DB
path = /mnt/mle-net/MLE-NET/MLE-NET-GMDB
write list = @MLE-ALL
force user = mleall
read only = No
veto oplock files = /*.DBT/*.DBF/*.MDX/
blocking locks = No
level2 oplocks = No
dos filemode = No
[NET-Public]
comment = MLE-NET Public Share
path = /home/local/samba-public
write list = @MLE-ALL
force user = mleall
read only = No
copy = NET-Eng

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


[Samba] Re: String overflow in safe_strcpy .

2004-07-19 Thread Carl Matthews
Hi Jeremy,
Sorry for not replying sooner, ive attached my config file.
as a quick test,
I created a folder called : Test Directory That Is Long
under which i created a folder called This folder is long too
and a file called This Folder is long.txt
and this gives me the string errors.
Thanks.
Jeremy Allison wrote:
On Wed, Jul 14, 2004 at 11:03:26PM +0100, Carl wrote:
Just Installed 3.0.5rc1 and the problem persists unfortunately,

Ok, can you give me the smb.conf file and the directory and
filenames you're using. I'll see if I can reproduce with the
latest SVN code.
Thanks,
	Jeremy.

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/06/23 10:15:40

# Global parameters
[global]
server string = Mandrake1
netbios aliases = FC1
password server = None
guest account = mleall
username map = /etc/samba/smbusers
log level = 0
log file = /var/log/samba/%m.log
max log size = 500
name resolve order = wins lmhosts host bcas
deadtime = 15
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
mangling method = hash
preferred master = Yes
domain master = No
dns proxy = No
wins support = Yes
oplock break wait time = 100
ldap ssl = no
valid users = @MLE-ALL
create mask = 0775
directory mask = 0775
guest ok = Yes
dos filemode = Yes


[NET-Eng]
comment = Product Design By Genius
path = /mnt/mle-net/MLE-NET/MLE-NET-Eng
write list = @MLE-ALL
force user = mleall
read only = No

[NET-GMDB]
comment = MLE-NET GoldMine DB
path = /mnt/mle-net/MLE-NET/MLE-NET-GMDB
write list = @MLE-ALL
force user = mleall
read only = No
veto oplock files = /*.DBT/*.DBF/*.MDX/
blocking locks = No
level2 oplocks = No
dos filemode = No

[NET-Public]
comment = MLE-NET Public Share
path = /home/local/samba-public
write list = @MLE-ALL
force user = mleall
read only = No
copy = NET-Eng

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

[Samba] Re: string overflow in safe_strcpy

2004-07-12 Thread Carl Matthews
Just Installed 3.0.5rc1 and the problem persists unfortunately,
heres a sample of my log :
wins[15212]: [2004/07/12 12:31:03, 0] lib/util_str.c:safe_strcpy_fn(600)
Jul 12 12:31:03 mandrake1 nss_wins[15212]:   ERROR: string overflow by 1 
(9 - 8) in safe_strcpy [TAENO~EI.PDF]
Jul 12 12:31:03 mandrake1 nss_wins[15212]: [2004/07/12 12:31:03, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jul 12 12:31:03 mandrake1 nss_wins[15212]:   ERROR: string overflow by 1 
(16 - 15) in safe_strcpy [taeno_checklist.pdf]
Jul 12 12:31:03 mandrake1 nss_wins[15212]: [2004/07/12 12:31:03, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jul 12 12:31:03 mandrake1 nss_wins[15212]:   ERROR: string overflow by 1 
(9 - 8) in safe_strcpy [TAENO~M9.PDF]
Jul 12 12:31:03 mandrake1 nss_wins[15212]: [2004/07/12 12:31:03, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jul 12 12:31:03 mandrake1 nss_wins[15212]:   ERROR: string overflow by 1 
(16 - 15) in safe_strcpy [taeno_effective.pdf]
Jul 12 12:31:03 mandrake1 nss_wins[15212]: [2004/07/12 12:31:03, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jul 12 12:31:03 mandrake1 nss_wins[15212]:   ERROR: string overflow by 1 
(9 - 8) in safe_strcpy [TAENO~K1.PDF]
Jul 12 12:31:03 mandrake1 nss_wins[15212]: [2004/07/12 12:31:03, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jul 12 12:31:03 mandrake1 nss_wins[15212]:   ERROR: string overflow by 1 
(16 - 15) in safe_strcpy [taeno_structure.pdf]
Jul 12 12:31:09 mandrake1 nss_wins[15215]: [2004/07/12 12:31:09, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jul 12 12:31:09 mandrake1 nss_wins[15215]:   ERROR: string overflow by 1 
(9 - 8) in safe_strcpy [INITC~FJ.BAK]
Jul 12 12:31:09 mandrake1 nss_wins[15215]: [2004/07/12 12:31:09, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jul 12 12:31:09 mandrake1 nss_wins[15215]:   ERROR: string overflow by 1 
(7 - 6) in safe_strcpy [INIT.C.bak]

i also get these errors ocasionaly
wins[15421]: [2004/07/12 12:37:19, 0] 
smbd/service.c:make_connection_snum(535)
Jul 12 12:37:19 mandrake1 nss_wins[15421]:   Can't become connected user!

my .conf remains the same as before.
If you need anything else just let me know.
Cheers,
Carl Matthews
Jeremy Allison wrote:
On Tue, Jun 29, 2004 at 09:13:05AM +0100, Carl Matthews wrote:
Also i've just noticed the errors never occur for directorys but only 
for files longer than the 8.3. Which again suggests an error in the hash 
mangling method.

Here's the fix. Incorrect use of safe_strcpy (memcpy should be used instead).
Jeremy.

Index: smbd/mangle_hash.c
===
--- smbd/mangle_hash.c	(revision 1298)
+++ smbd/mangle_hash.c	(working copy)
@@ -546,8 +546,10 @@
 	/* Fill the new cache entry, and add it to the cache. */
 	s1 = (char *)(new_entry + 1);
 	s2 = (char *)(s1[mangled_len + 1]);
-	safe_strcpy( s1, mangled_name, mangled_len );
-	safe_strcpy( s2, raw_name, raw_len );
+	memcpy( s1, mangled_name, mangled_len );
+	s1[mangled_len] = '\0';
+	memcpy( s2, raw_name, raw_len );
+	s2[raw_len] = '\0';
 	ubi_cachePut( mangled_cache, i, new_entry, s1 );
 }
 

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


[Samba] Re: string overflow in safe_strcpy

2004-06-29 Thread Carl Matthews
Also i've just noticed the errors never occur for directorys but only 
for files longer than the 8.3. Which again suggests an error in the hash 
mangling method.

Carl wrote:
 I updated our server to 3.0.5pre1 this morning from the fc1 rpms linked 
by samba.org.
But the errors persist, But like corey they do dissappear when mangling 
method = hash is rem'd out but this then makes long file names 
unreadable to programs that use 8.3 filenames, like some of the old 
compilers we use here.

The errors occur at the sametime as Corey's when ever you browse a share 
you get an error for all the files in that directory.

Is there any more info you might need to track this down?
Thanks,
Carl Matthews
sample of my log file :
Jun 29 08:41:16 mandrake1 nss_wins[27719]:   ERROR: string overflow by 1 
(57 - 56) in safe_strcpy [Software  Driver downloads HP Officejet g55 
All-]
Jun 29 08:41:16 mandrake1 nss_wins[27719]: [2004/06/29 08:41:16, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jun 29 08:41:16 mandrake1 nss_wins[27719]:   ERROR: string overflow by 1 
(9 - 8) in safe_strcpy [HP OF~YU.URL]
Jun 29 08:41:16 mandrake1 nss_wins[27719]: [2004/06/29 08:41:16, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jun 29 08:41:16 mandrake1 nss_wins[27719]:   ERROR: string overflow by 1 
(97 - 96) in safe_strcpy [HP Officejet g55 All-in-One HP OfficeJet G 
Series]
Jun 29 08:41:16 mandrake1 nss_wins[27719]: [2004/06/29 08:41:16, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jun 29 08:41:16 mandrake1 nss_wins[27719]:   ERROR: string overflow by 1 
(9 - 8) in safe_strcpy [28-06~LT.ZIP]
Jun 29 08:41:16 mandrake1 nss_wins[27719]: [2004/06/29 08:41:16, 0] 
lib/util_str.c:safe_strcpy_fn(600)
Jun 29 08:41:16 mandrake1 nss_wins[27719]:   ERROR: string overflow by 1 
(20 - 19) in safe_strcpy [28-06-2004 09-56-06.zip]

I updateJeremy Allison wrote:
On Fri, Jun 25, 2004 at 12:57:53AM +0100, Carl wrote:
Yeah i get this problem too, with samba 3.04 on FC1 exactly the same, 
string errors when browsing any share which fills up my 
/var/log/messages file

Any one know a fix?

Can you try 3.0.5pre1. This looks like a bug we've fixed w.r.t.
NetBIOS names.
Jeremy.

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


[Samba] Samba server - windows Archive bit's

2002-10-18 Thread Carl Matthews @ MLE



im having a problem... i cant seem to be able to 
clear the archive bit from any on the windows pcs on the network.

When ever i try i get a message box say it is 
unable to. All users on the network are part of the same group and the files 
they work on our in that group. So how come they cant clear the archive 
bits?

Can any one help

Ive pasted the global parameters from the conf 
file:

Cheers.

Carl

# Global parameters[global]	coding system = 
	client code page = 850	code page directory = 
/var/lib/samba/codepages	workgroup = SERVERS	netbios name = 	netbios 
aliases = 	netbios scope = 	server string = MLE-NET Mandrake 
Server	interfaces = 	bind interfaces only = No	security = 
SERVER	encrypt passwords = Yes	update encrypted = Yes	allow trusted 
domains = Yes	hosts equiv = 	min passwd length = 5	map to guest = 
Never	null passwords = No	obey pam restrictions = No	password server 
= 	smb passwd file = /etc/samba/smbpasswd	root directory = 	pam 
password change = No	passwd program = /usr/bin/passwd	passwd chat = 
*new*password* %n\n *new*password* %n\n *changed*	passwd chat debug = 
No	username map = 	password level = 0	username level = 0	unix 
password sync = No	restrict anonymous = No	lanman auth = Yes	use 
rhosts = No	admin log = No	log level = 0	syslog = 1	syslog only 
= No	log file = /var/log/samba/log.%m	max log size = 50	timestamp 
logs = Yes	debug hires timestamp = No	debug pid = No	debug uid = 
No	protocol = NT1	large readwrite = No	max protocol = NT1	min 
protocol = CORE	read bmpx = No	read raw = Yes	write raw = Yes	nt 
smb support = Yes	nt pipe support = Yes	nt status support = 
Yes	announce version = 4.5	announce as = NT	max mux = 50	max 
xmit = 65535	name resolve order = lmhosts host wins bcast	max packet = 
65535	max ttl = 259200	max wins ttl = 518400	min wins ttl = 
21600	time server = No	unix extensions = No	change notify timeout = 
60	deadtime = 0	getwd cache = Yes	keepalive = 300	lpq cache time 
= 10	max smbd processes = 0	max disk size = 0	max open files = 
1	read size = 16384	socket options = TCP_NODELAY SO_RCVBUF=8192 
SO_SNDBUF=8192	stat cache size = 50	use mmap = Yes	total print jobs 
= 0	load printers = Yes	printcap name = lpstat	disable spoolss = 
No	enumports command = 	addprinter command = 	deleteprinter command 
= 	show add printer wizard = Yes	os2 driver map = 	strip dot = 
No	mangling method = hash	character set = 	mangled stack = 
100	stat cache = Yes	domain admin group = 	domain guest group = 
	machine password timeout = 604800	add user script = 	delete user 
script = 	logon script = 	logon path = \\%N\%U\profile	logon drive = 
	logon home = \\%N\%U	domain logons = No	os level = 20	lm 
announce = Auto	lm interval = 60	preferred master = Auto	local 
master = Yes	domain master = Auto	browse list = Yes	enhanced 
browsing = Yes	dns proxy = No	wins proxy = No	wins server = 
	wins support = No	wins hook = 	kernel oplocks = Yes	lock spin 
count = 3	lock spin time = 10	oplock break wait time = 0	add share 
command = 	change share command = 	delete share command = 	config 
file = 	preload = 	lock dir = /var/cache/samba	pid directory = 
/var/run/samba	utmp directory = 	wtmp directory = 	utmp = 
No	default service = 	message command = 	dfree command = 	valid 
chars = 	remote announce = 	remote browse sync = 	socket address = 
0.0.0.0	homedir map = auto.home	time offset = 0	NIS homedir = 
No	source environment = 	panic action = "	hide local users = 
No	host msdfs = No	winbind uid = 	winbind gid = 	template 
homedir = /home/%D/%U	template shell = /bin/false	winbind separator = 
\	winbind cache time = 15	winbind enum users = Yes	winbind enum 
groups = Yes	winbind use default domain = No	comment = 	path = 
	alternate permissions = No	username = @MLE-ALL	guest account = 
nobody	invalid users = 	valid users = 	admin users = 	read list 
= 	write list = 	printer admin = 	force user = 	force group = 
MLE-ALL	read only = Yes	create mask = 0775	force create mode = 
00	security mask = 0777	force security mode = 00	directory mask = 
0775	force directory mode = 00	directory security mask = 0777	force 
directory security mode = 00	force unknown acl user = 00	inherit 
permissions = No	inherit acls = No	guest only = No	guest ok = 
No	only user = No	hosts allow = 	hosts deny = 	status = 
Yes	nt acl support = Yes	block size = 1024	max connections = 
0	min print space = 0	strict allocate = No	strict sync = No	sync 
always = No	write cache size = 0	max print jobs = 1000	printable = 
No	postscript = No	printing = bsd	print command = lpr -r -P%p 
%s	lpq command = lpq -P%p	lprm command = lprm -P%p %j	lppause 
command = 	lpresume command = 	queuepause command = 	queueresume 
command = 	printer name = 	use client driver = No	default devmode = 
No	printer driver = 	printer driver file = 
/etc/samba/printers.def	printer driver location = 	default case = 
lower	case sensitive = No	preserve case = Yes	short preserve case = 
Yes	mangle case = No	mangling char = ~	hide dot files = Yes	hide