[Samba] Re: Building samba on HP-UX 11.23

2007-06-06 Thread Alexander Skwar
Gerald (Jerry) Carter [EMAIL PROTECTED] wrote:

 Try making /usr/bin/cc a link to gcc rather than
 the non-ANSI native compiler.

Shouldn't setting the environment variable CC have the 
same effect?

Alexander Skwar

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


Re: [Samba] Re: smbpasswd doesn't prompt root for password

2006-08-17 Thread Alexander Skwar

Alexander Skwar schrieb:

· Gerald (Jerry) Carter [EMAIL PROTECTED]:


Please file a bug an attach the gzipped config.log from your build.


https://bugzilla.samba.org/show_bug.cgi?id=4007


I did some debugging and found, that get_pass() in utils/passwd_util.c
gets executed. There, the else branch gets run, ie. p = getpass( prompt);
is run. This is just a #define for getsmbpass() which resides in
lib/getsmbpass.c. And in getsmbpass(), the execution differs for root
and non-root users.

When I'm root, the *ELSE* branch of the if (in == NULL) (the first if
in that function) is run. This means, that

in = fopen (/dev/tty, w+);

did NOT return NULL.

Next, the test if (tcgetattr (fileno (in), t) == 0) { yields FALSE for
root - for non-root, this test is TRUE.

Why does this happen? Does this mean, that root, for some reason, cannot
open /dev/tty for writing?

[EMAIL PROTECTED]:/etc/samba# ls -al /dev/tty*
-rw-r--r--  1 root root25 Aug 17 21:54 /dev/tty
crw-rw-rw-  1 root root 4, 64 Aug 17 22:00 /dev/ttyS0

I'm logged in to this system over a SSH session. The SSH server is
Dropbear sshd v0.46.

I don't understand this.

Can somebody make sense of this?

Thanks,

Alexander Skwar
--
Punning is the worst vice, and there's no vice versa.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Documentation of 3.0.23a VFS modules?

2006-08-07 Thread Alexander Skwar
Hello!

When I have a look at /usr/lib/samba/vfs, I find the following files,
which I suppose that they are VFS modules:

audit.so
cap.so
default_quota.so
expand_msdfs.so
extd_audit.so
fake_perms.so
full_audit.so
netatalk.so
readonly.so
recycle.so
shadow_copy.so

Where can I find documentation about what those modules do and
how to configure those modules (if needed)?

Thanks,

Alexander Skwar
-- 
Why would anyone want to be called Later?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Documentation of 3.0.23a VFS modules?

2006-08-07 Thread Alexander Skwar
Franz Strebel wrote:

 In the samba source directory, look under docs/htmldocs/Samba3-HOWTO.
 The file is called VFS.html.

Hi!

Thanks, I didn't know about this file. However, not all of the modules
are documented there. Missing are:

- cap.so
- expand_msdfs.so
- full_audit.so
- readonly.so

Where can I find more information?

Thanks,

Alexander Skwar
-- 
I'm a GENIUS!  I want to dispute sentence structure with SUSAN SONTAG!!
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: smbpasswd doesn't prompt root for password

2006-08-07 Thread Alexander Skwar
· Gerald (Jerry) Carter [EMAIL PROTECTED]:

 Please file a bug an attach the gzipped config.log from your build.

https://bugzilla.samba.org/show_bug.cgi?id=4007

 Thanks.

NP

Alexander Skwar
-- 
Wie man sein Kind nicht nennen sollte: 
  Franz Iskaner 


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


[Samba] smbpasswd doesn't prompt root for password

2006-08-06 Thread Alexander Skwar
Hello.

When I run smbpasswd from samba 3.0.23a on a MIPSEL system running
Linux 2.4.20 as root, I'm NEVER asked for a password. Even when I
create a new user in smbpasswd, I'm not asked:

[EMAIL PROTECTED]:/etc/samba# strings smbpasswd
root:0:AAD3B435B51404EEAAD3B435B51404EE:31D6CFE0D16AE931B73C59D7E0C089C0:[U 
 ]:LCT-44D63D42:
bin:1:::[DU 
]:LCT-:
daemon:2:::[DU  
   ]:LCT-:
adm:3:::[DU 
]:LCT-:
sync:5:::[DU
 ]:LCT-:
nobody:99:::[DU 
]:LCT-:
[EMAIL PROTECTED]:/etc/samba# smbpasswd -a askwar
Added user askwar.
[EMAIL PROTECTED]:/etc/samba# smbpasswd askwar
[EMAIL PROTECTED]:/etc/samba# strings smbpasswd
root:0:AAD3B435B51404EEAAD3B435B51404EE:31D6CFE0D16AE931B73C59D7E0C089C0:[U 
 ]:LCT-44D63D42:
bin:1:::[DU 
]:LCT-:
daemon:2:::[DU  
   ]:LCT-:
adm:3:::[DU 
]:LCT-:
sync:5:::[DU
 ]:LCT-:
nobody:99:::[DU 
]:LCT-:
askwar:1000:AAD3B435B51404EEAAD3B435B51404EE:31D6CFE0D16AE931B73C59D7E0C089C0:[U
  ]:LCT-44D63EAE:

When I run smbpasswd as a user, eg. as Unix user askwar, I AM prompted
for a password.

[EMAIL PROTECTED]:~/src/samba-3.0.23a/source$ smbpasswd
Old SMB password:

But as I don't know the Old SMB password, I'm somewhat at a loss... :)

I also cannot feed the password over stdin as root:

[EMAIL PROTECTED]:/etc/samba# echo foo | smbpasswd -s askwar
Mismatch - password unchanged.
Unable to get new password.

What's happening here?

Thanks a lot,

Alexander Skwar
-- 
Asket:
  schwächlicher Charakter, der der Versuchung erliegt,
  sich ein Vergnügen zu versagen.


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


[Samba] smbpasswd doesn't prompt root for password

2006-08-06 Thread Alexander Skwar

Hello.

When I run smbpasswd from samba 3.0.23a on a MIPSEL system running
Linux 2.4.20 as root, I'm NEVER asked for a password. Even when I
create a new user in smbpasswd, I'm not asked:

[EMAIL PROTECTED]:/etc/samba# strings smbpasswd
root:0:AAD3B435B51404EEAAD3B435B51404EE:31D6CFE0D16AE931B73C59D7E0C089C0:[U 
 ]:LCT-44D63D42:
bin:1:::[DU 
]:LCT-:
daemon:2:::[DU  
   ]:LCT-:
adm:3:::[DU 
]:LCT-:
sync:5:::[DU
 ]:LCT-:
nobody:99:::[DU 
]:LCT-:
[EMAIL PROTECTED]:/etc/samba# smbpasswd -a askwar
Added user askwar.
[EMAIL PROTECTED]:/etc/samba# smbpasswd askwar
[EMAIL PROTECTED]:/etc/samba# strings smbpasswd
root:0:AAD3B435B51404EEAAD3B435B51404EE:31D6CFE0D16AE931B73C59D7E0C089C0:[U 
 ]:LCT-44D63D42:
bin:1:::[DU 
]:LCT-:
daemon:2:::[DU  
   ]:LCT-:
adm:3:::[DU 
]:LCT-:
sync:5:::[DU
 ]:LCT-:
nobody:99:::[DU 
]:LCT-:
askwar:1000:AAD3B435B51404EEAAD3B435B51404EE:31D6CFE0D16AE931B73C59D7E0C089C0:[U
  ]:LCT-44D63EAE:

When I run smbpasswd as a user, eg. as Unix user askwar, I AM prompted
for a password.

[EMAIL PROTECTED]:~/src/samba-3.0.23a/source$ smbpasswd
Old SMB password:

But as I don't know the Old SMB password, I'm somewhat at a loss... :)

I also cannot feed the password over stdin as root:

[EMAIL PROTECTED]:/etc/samba# echo foo | smbpasswd -s askwar
Mismatch - password unchanged.
Unable to get new password.

What's happening here?

Thanks a lot,
Alexander Skwar
--
Johnson's First Law:
When any mechanical contrivance fails, it will do so at the
most inconvenient possible time.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Filenames with special characters (äöü €¶) on SMB share of Linkstation HD-HLAN250

2005-11-06 Thread Alexander Skwar
Hello!

I've got a Buffalo Linkstation HD-HLAN250. This is a consumer
NAS device, which makes the built-in HD accessible via SMB
and FTP. On that system, some sort of Linux with some sort
of Samba is running.

I'm now trying to create filenames with special characters (ie.
non-ASCII chars) in it. For example blöder name (means
stupid name).

To get access to the share on that NAS device, I added the
following line to my local /etc/fstab:

//HD/share  /HD/TESTsmbfs
noauto,credentials=/local/conf/hd-credentials,uid=guest,gid=users,fmask=0775,dmask=0775,workgroup=EUROPE,rw,lfs,iocharset=utf8,codepage=cp850
 0 0

Now I created a file with name blöder name on it:

$ touch /HD/TEST/blöder\ name

That filename gets created just fine and Linux sees it just
fine:

$ ls -la /HD/TEST/bl*me
-rwxrwxr-x  1 guest users 0  6. Nov 10:46 /HD/TEST/blöder name

But when I use Windows XP to access the share, the filename is all
messed up - it's shown as blöder name instead. That's not
correct :)

Also, when I create blöder name from Windows, only Windows sees
filename intact. Linux ls shows it as:

$ ls -la /HD/TEST/bl*win*
-rwxrwxr-x  1 guest users 0  6. Nov 10:48 /HD/TEST/bl?der windows name

Note the ? after bl and before der. That's not correct
either :)

I also tried to mount that share using cifs as fs-type instead
of smbfs with the following line in /etc/fstab:

//HD/share  /HD/TEST2   cifs
noauto,credentials=/local/conf/hd-credentials,uid=guest,gid=users,file_mode=0775,dir_mode=0775,domain=EUROPE,rw,setuids,noperm,mapchars,soft,serverinoi,iocharset=utf8
0 0

But that's even worse... With this, not even Linux can see the
special characters fine:

$ touch /HD/TEST2/blöder\ cifs\ name
$ ls -la /HD/TEST2/bl*cifs*name
-rwxrwxr-x  1 guest users 0  6. Nov 10:51 /HD/TEST2/bl ?der cifs name

And in Windows, that name shows up as bl Âder cifs name. That's
also not correct :)

In the Basic Setup of the LS, I set ISO8859-15 as the character code.
I can only chose between some cp codepages (cp850, cp437, ...) and
iso8859-1, iso8859-15 and some other ISOs. cp850, iso-8859-1 and
iso-8859-15 are the only options relevant for me (ie. I don't care
about eg. japanese characters).

The HD-HLAN only offers SMB and FTP access; ie. no NFS :(

How do I have to setup everything, so that I can use non-ASCII
characters from every OS and that they show up correctly
everywhere (ie. a ö has to be shown as ö everywhere and
not as ö or  Â)?

Thanks a lot,

Alexander Skwar
-- 
The net result is a system that is not only binary compatible with 4.3 BSD,
but is even bug for bug compatible in almost all features.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Filenames with spec ial characters (äöü€¶) on SMB share of Linkstation HD-HLAN250

2005-11-06 Thread Alexander Skwar
Alexander Skwar schrieb:

 What I mean with this is, that I can copy/create a file from Linux
 on the LS called blöder name just fine. But when I access the share
 with XP, that filename is shown as blöder name instead. And when I
 create a file with such a name from Windows, it shows up in Linux as
 bl?der name (that's what ls shows - I suppose that's not a real
 question mark (?) though).

Hm.

Thanks to OpenLink firmware from http://linkstationwiki.org/, I've
now got root access via ssh/telnet to the box. In the smb.conf
of the NAS device, I find:

client code page = 850
character set = ISO8859-15

It is running:

[EMAIL PROTECTED]:~# /usr/sbin/smbd -V
Version 2.2.8a-ja-1.1

To what values should I change that?

Thanks again,

Alexander Skwar
-- 
Bad Cockroach: Man, I'm going to cut you up so bad, that you... you gonna wish I
didn't cut you up so bad.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Cannot cross-compile 3.0.20b from i686 to mipsel

2005-11-06 Thread Alexander Skwar
Hi.

I'm trying to compile 3.0.20b on my i686 host to run on a
mipsel host. For this, I got a cross compile toolchain from
http://linkstationwiki.org/Projects/CrossToolchains. The
toolchain is installed at 
/usr/local/linkstation/gcc-3.3.5-glibc-2.3.2/mipsel-hdhlan-linux

I ran configure with the help of a little wrapper script:

version=gcc-3.4.4-glibc-2.3.5
#version=gcc-3.3.5-glibc-2.3.2

xd=/usr/local/linkstation/$version/mipsel-hdhlan-linux/bin

export PATH=$PATH:$xd

target=mipsel-hdhlan-linux

CC=$xd/mipsel-hdhlan-linux-gcc
CPP=$xd/mipsel-hdhlan-linux-cpp
LD=$xd/mipsel-hdhlan-linux-ld
AR=$xd/mipsel-hdhlan-linux-ar
NM=$xd/mipsel-hdhlan-linux-nm
OBJDUMP=$xd/mipsel-hdhlan-linux-objdump

export CC CPP LD AR NM OBJDUMP

./configure --host=$target --target=$target \
--disable-cups --without-ldap --without-ads \
 make AR=mipsel-hdhlan-linux-ar CC=mipsel-hdhlan-linux-gcc\
 LD=mipsel-hdhlan-linux-ld NM=mipsel-hdhlan-linux-nm\
OBJDUMP=mipsel-hdhlan-linux-objdump

configure failed with this error message:

checking for open64... yes
checking for _open64... no
checking for __open64... yes
checking for creat64... yes
checking for prctl... yes
configure: error: cannot run test program while cross compiling
See `config.log' for more details.

In config.log I find the following error:

configure:19052: checking for _open64
configure:19109: 
/usr/local/linkstation/gcc-3.4.4-glibc-2.3.5/mipsel-hdhlan-linux/bin/mipsel-hdhlan-linux-gcc
 -o conftest -O -D_SAMBA_BUILD_
conftest.c -lnsl -ldl  5
/tmp/ccaUm9zZ.o(.text+0x18): In function `main':
: undefined reference to `_open64'
/tmp/ccaUm9zZ.o(.data.rel+0x0): undefined reference to `_open64'
collect2: ld returned 1 exit status
configure:19115: $? = 1
configure: failed program was:

What do I do now?

Thanks,

Alexander Skwar
-- 
Blessed is he who expects nothing, for he shall never be disappointed.
-- Alexander Pope
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Filenames with special char acters (äöü€¶) on SMB share of Linkstatio n HD-HLAN250

2005-11-06 Thread Alexander Skwar
Alexander Skwar schrieb:

 Thanks to OpenLink firmware from http://linkstationwiki.org/, I've
 now got root access via ssh/telnet to the box.

And this allowed me to finally install NFS on it. With
NFS, I can now easily and successfully create filenames
with non-ASCII characters, like blöder name. But
when I access the share from Windows (or rather: via
SMB), the filenames are still mangled :(

What I'm after is a way for Samba to transform filenames
from the stored (on disk) UTF-8 name to cp850 (or
whatever).

The NAS box is running Samba 2.2.8a.

Can Samba 2.2.8a do this? With Samba 3, this would be
possible, wouldn't it?

If Samba 2 could do this, how/what would I configure?
I suppose client code page and character set are
the relevant settings? What are the allowed values for
character set?

Are the nftable files in /usr/share/codepage the allowed
values? If so, then Samba 2 (or at least that installation)
doesn't handle UTF-8; only iso-8859-x and some cpX values.

Or would find /lib/modules/$(uname -r) -name nls*.o reveal
me the allowed values? If so, UTF8 would be a good value -
but even with character set = UTF8, I can't get a good
translation. blöder name translates to bl├Âder name
on Windows :(

Can Samba 2 do UTF-8 filename translation?

Thanks,

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


[Samba] Cannot change samba password: Error was : RAP86: The specified password is invalid.

2005-09-05 Thread Alexander Skwar
Hi!

For some reason unknown to me, I'm completely unable to change
my Samba password using smbpasswd. I always get:

[19:57:36 [EMAIL PROTECTED]:~] $ smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
machine 127.0.0.1 rejected the password change: Error was : RAP86: The 
specified password is invalid.
Failed to change password for alexander

Despite the error message, I'm sure that the specifid
password *is* valid - I copy'n'pasted it and thus cannot
have a typo.

Why is the system nonetheless telling me, that the password
is wrong?

Thanks a lot,
Alexander

==


[20:11:49 [EMAIL PROTECTED]:~] $ testparm -V
Version 3.0.20
[20:11:51 [EMAIL PROTECTED]:~] $ uname -a
Linux server 2.6.12-ck6.014.reiser4.nfsv4.inotify.no-posix.bsd #1 Mon Aug 22 
21:08:17 CEST 2005 i686 AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux

[20:05:03 [EMAIL PROTECTED]:/etc/samba] $ testparm
Load smb config files from /etc/samba/smb.conf
Processing section [homes]
Processing section [printers]
Processing section [pdf-drucker]
Processing section [Server]
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = EUROPE
server string = Samba Server %v auf %h
interfaces = eth1, lo
bind interfaces only = Yes
security = SHARE
map to guest = Bad User
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 1 passdb:3 auth:3 winbind:2
log file = /var/log/samba/log.%m
max log size = 1024
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 
IPTOS_LOWDELAY
printcap name = /etc/samba/printcap
ldap ssl = no
printing = bsd
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j

[homes]
comment = Private Verzeichnisse
read only = No
browseable = No

[printers]
comment = Alle Drucker
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
browseable = No

[pdf-drucker]
comment = PDF Drucker
path = /var/tmp
create mask = 0700
printable = Yes
print command = /etc/samba/print-pdf %s ~%u/PDF-Prints 
//%L/%u/PDF-Prints %m %I %J 

[Server]
comment = Verzeichnisse auf dem Server
path = /Shares
read only = No
volume = Shares für Windows
fstype = Samba
fake directory create times = Yes

---

testparm -vs output available at 
http://stuff.alexander.skwar.name/samba/testparm_-vs.txt
Log at http://stuff.alexander.skwar.name/samba/log/log.127.0.0.1
smbpasswd -D 10 output at 
http://stuff.alexander.skwar.name/samba/smbpasswd_-D_10_output.txt

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


Re: [Samba] Cannot change samba password: Error was : RAP86: The specified password is invalid.

2005-09-05 Thread Alexander Skwar
Hi!

· Alexander Skwar [EMAIL PROTECTED]:

 Why is the system nonetheless telling me, that the password
 is wrong?

Because of:

 unix password sync = Yes

I don't have those passwords in sync - on purpose.

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


Re: [Samba] Free space calculation gets it wrong

2005-02-11 Thread Alexander Skwar
Thomas M. Skeren III schrieb:

 Probably the only way you will get what you want.

No.

  I don't think Windows 
 can understand how a directory on a drive can be larger than the 
 drive itself.

Yes, it can.

We have a DFS Share called apps assigned to our AD called
EUROPE.

C:\dir \\europe\apps
 Volume in Laufwerk \\europe\apps: hat keine Bezeichnung.
 Volumeseriennummer: EC62-031C

 Verzeichnis von \\europe\apps

2005-01-04  06:44DIR  .
2005-01-04  06:44DIR  ..
2004-01-05  03:27DIR  Apps
[...]
   1 Datei(en)  2.284 Bytes
  13 Verzeichnis(se),  3.711.651.328 Bytes frei

C:\dir \\europe\apps\Apps
 Volume in Laufwerk \\europe\apps: hat keine Bezeichnung.
 Volumeseriennummer: EC62-031C

 Verzeichnis von \\europe\apps\Apps

2005-02-10  09:22DIR  .
2005-02-10  09:22DIR  ..
2004-11-19  14:46DIR  3DXWare_3515
[...]
   0 Datei(en)  0 Bytes
 117 Verzeichnis(se), 366.936.690.688 Bytes frei

As you can see, in the directory apps there's about
3,7 GiB of free space. In the directory apps\Apps,
there's about 366 GiB of free space.

When I connect \\EUROPE\apps to R: and do
a dir R:\ command, I also see 3,7 GiB of free
space. Doing dir R:\Apps shows 366 GiB of free
space.

So, obviously there has to be a way to determine
the free space available in a directory, as you
can see in the examples shown above.

Anyone out there, who might have an idea about
how I can make Samba return the free space available
in a given directory instead of in the top level directory
of a share?

Thanks a lot,

Alexander Skwar
-- 
Wonder is the feeling of a philosopher, and philosophy begins in wonder.
-- Socrates, quoting Plato
[Huh?  That's like Johnson quoting Boswell]
_ 
 

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


[Samba] Free space calculation gets it wrong

2005-01-19 Thread Alexander Skwar
Hello!

Running Samba 3.x on HP-UX 11.00, Linux and Solaris.

I've got a problem with the free space calculation of Samba. The problem
is, that Samba only seems to return the free space available in the top
directory of a share and not the free space available in the current
directory. That's a problem for me, since I share a directory on the
server and then mount the actual stuff into it.

Let me give you an example:

I shared the directory /Shares on server with the name Shares.
The directory /Shares is on / on the server.
In /Shares, there's the directory CAD. This directory is a seperate
file system.
Now I start the Windows Explorer (from Windows XP) and go to
\\server\Shares\CAD. The free space available is the same as
shown in \\server\Shares - IOW: it shows the free space from
/, and not from /Shares/CAD

Directory   Mountpoint  Free space
/Shares /   20MiB
/Shares/CAD /Shares/CAD 40GiB

Going to \\server\Shares\CAD shows me that 20MiB is available and not,
as wanted, 40GiB.

What do I have to do, to make Samba return the free space in the
current directory and not from the top most directory of the share?

First, I thought to write a script which I hook into the dfree command
option of Samba. But sadly this did not work :( Just like the man page
says, the script is only given ./ as the first (and only) parameter.
I also did not see anything of interest in the environment (as
printed by the env command). I don't quite see how to get to what
directory ./ (the current directory) is referring.

Do you have any clues on how to solve that problem?

BTW: Also sharing /Shares/CAD is not a solution I'm after :)

Thanks a lot,

Alexander Skwar
-- 
If there were a school for, say, sheet metal workers, that after three
years left its graduates as unprepared for their careers as does law
school, it would be closed down in a minute, and no doubt by lawyers.
  -- Michael Levin, The Socratic Method
-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Free space calculation gets it wrong

2005-01-19 Thread Alexander Skwar
Bart Hendrix schrieb:

 Could you please do the following command: df -h
 
 And paste the result ;-)

Hm, I cannot. I made up the example to simplyfy it.

The closest I can offer to df -h output is what I wrote in the OP:

Directory   Mountpoint  Free space
/Shares /   20MiB
/Shares/CAD /Shares/CAD 40GiB

So, in /Shares/CAD, there are 40 gibibytes available. In /, which
hosts the directory /Shares, there are only 20 mebibytes available.
When I'm in \\server\Shares\CAD with the Windows explorer, I see
that there are 20MiB available; it should have shown that there
are 40GiB.

Hmm, well, how about this output:

[11:12:01 [EMAIL PROTECTED]:/APPL_WIN32] $ df -h
Dateisystem  Gre Benut  Verf Ben% Eingehngt auf
/dev/vg00/lvol3   200M   56M  137M  29% /
/dev/vg00/lvol198M   41M   48M  46% /stand
/dev/vg00/lvol8   1,5G  717M  769M  49% /var
/dev/vg01/lvol815G   11G  3,8G  74% /var/opt/ignite/archives
/dev/vg00/lvol10  500M  357M  136M  73% /var/adm/sw
/dev/vg00/lvol9   2,1G  1,7M  2,0G   1% /var/adm/crash
/dev/vg00/lvol7   1,0G  944M   77M  93% /usr
/dev/vg01/lvol2   118G  116G  2,2G  99% /u
/dev/vg00/lvol6   2,0G  496M  1,5G  26% /tmp
/dev/vg01/lvol9   5,9G  1,7G  4,0G  30% /root/admin
/dev/vg01/lvol11   25G  2,6G   22G  11% /root/admin/catia
/dev/vg01/lvol15  9,9G  9,0G  880M  92% /root/admin/UG
/dev/vg00/lvol5   1,0G  964M   57M  95% /opt
/dev/vg01/lvol1   157G  122G   35G  78% /iman_vols_01
/dev/vg01/lvol10  9,8G  1,2G  8,4G  13% /home
/dev/vg01/lvol6   137G  124G   14G  91% /data
/dev/vg01/lvol4   5,0G  4,5G  486M  91% /data/dxt
/dev/vg01/lvol5   215G  211G  4,5G  98% /data/catdata
/dev/vg01/lvol14   59G   59G  288M 100% /data/PACKARD
/dev/vg01/lvol13  9,8G  3,7G  6,0G  39% /data/IEV
/dev/vg01/lvdelco 137G  106G   31G  78% /data/DELCO
/dev/vg01/lvol323G   21G  1,6G  94% /appl
/dev/vg01/lvomni1 4,9G  2,6G  2,2G  55% /test_archive
/dev/vg02/lvol120G   11G  9,4G  52% /data/dph01
[11:12:06 [EMAIL PROTECTED]:/APPL_WIN32] $ df -h .
Dateisystem  Gre Benut  Verf Ben% Eingehngt auf
/dev/vg00/lvol3   200M   56M  137M  29% /
[11:12:08 [EMAIL PROTECTED]:/APPL_WIN32] $ ls -la
insgesamt 7
lrwxrwxr-x1 root sys15 2003-10-13 09:14 ews_build - 
/data/ews_build
lrwxrwxr-x1 root sys27 2003-10-31 14:33 imanhelp - 
/data/httpd/htdocs/imanhelp
drwxr-xr-x2 root sys96 2004-11-08 09:53 iman_portal
lrwxrwxr-x1 root sys12 2003-12-12 07:57 oracle - 
/appl/oracle
lrwxr-xr-x1 root sys10 2005-01-19 10:07 TcE - /appl/iman
lrwxr-xr-x1 root sys14 2004-05-13 15:12 toolkits - 
/appl/toolkits
lrwxrwxr-x1 root sys12 2003-10-17 06:58 ugdsl3 - 
/appl/ugdsl3
lrwxr-xr-x1 root sys12 2004-05-13 13:08 ugdsl4 - 
/appl/ugdsl4
lrwxr-xr-x1 root sys12 2004-06-22 17:05 ugsite - 
/appl/ugsite
lrwxr-xr-x1 root sys14 2005-01-12 12:31 Unigraphics - 
/root/admin/UG
drwxrwxr-x3 root sys  1024 2005-01-19 10:07 .
drwxr-xr-x   39 root root 6144 2005-01-17 08:51 ..
[11:12:13 [EMAIL PROTECTED]:/APPL_WIN32] $ cd Unigraphics
[11:12:16 [EMAIL PROTECTED]:/APPL_WIN32/Unigraphics] $ df -h .
Dateisystem  Gre Benut  Verf Ben% Eingehngt auf
/dev/vg01/lvol15  9,9G  9,0G  880M  92% /root/admin/UG

The direcotry /APPL_WIN32 is shared as appl. The server is named cifs-srvr1.

[C:\Documents and Settings\vz6tml\Desktop]dir \\cifs-srvr1\appl

 Directory of  \\cifs-srvr1\appl\*

2005-01-19  10:07 DIR.
2005-01-17   8:51 DIR..
2004-05-05  10:36 DIRews_build
2004-08-18  14:17 DIRimanhelp
2004-11-08   9:53 DIRiman_portal
2004-05-06   9:39 DIRoracle
2005-01-19  10:09 DIRTcE
2004-11-25  13:35 DIRtoolkits
2004-05-13  13:24 DIRugdsl3
2004-10-26  10:47 DIRugdsl4
2004-11-18  13:22 DIRugsite
2005-01-18  15:08 DIRUnigraphics
  0 bytes in 0 files and 12 dirs
142.651.392 bytes free

[C:\Documents and Settings\vz6tml\Desktop]dir \\cifs-srvr1\appl\Unigraphics

 Directory of  \\cifs-srvr1\appl\Unigraphics\*

2005-01-18  15:08 DIR.
2005-01-18  11:43 DIR..
2004-10-27  15:59 DIRlicense
2005-01-17  12:32 DIRlost+found
2005-01-18   8:56 DIRserver_nx2
2005-01-18  13:52 DIRserver_visview
2005-01-18  15:18 DIRtce-install
2005-01-12  15:15 DIRugnx2
2004-10-29  13:12 DIRugnx3
  0 bytes in 0 files and 9 dirs
142.651.392 bytes free

In the second dir command, you see that the same free space is shown
as in the first dir command. 142.651.392 bytes is close to 137M shown
in the df output.

Alexander Skwar
-- 
Hi

Re: [Samba] Free space calculation gets it wrong

2005-01-19 Thread Alexander Skwar
Thomas M. Skeren III schrieb:

  I don't think Windows 
 can understand how a directory on a drive can be larger than the 
 drive itself.

I disagree.

On Windows XP (and 2000?), you can mount a local drive in a
directory. This means, that C:\Appl can be a complete partition.
Suppose that the partition holding C:\ is 2GiB small. Suppose
that a new partition has 50GiB left. If you mount that new
partition in C:\Appl, you've got the situation that the
directory C:\Appl is larger than the drive holding C:.

Alexander Skwar
-- 
* TribFurry only gets spam mail from ucsd... I used to get email from
myself but I decided I didn't like myself and stopped talking
to me
-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Files get written with sections of log in them - destroying files.

2004-07-22 Thread Alexander Skwar
Herb Lewis wrote:

 Did you by any chance get a log rotate about the time of the corruption?

Hm, I can't find any logs that got rotated at about that time - however,
this doesn't mean much, since it's of course very much possible, that
new logs got rotated over the then-new log file.

Anyhow, right now I'm wondering about a different thing. In my smb.conf,
I removed the log level setting. testparm -sv shows me:

log level = 0

Nonetheless, I get log files created (even after I restarted smb).

Why's that?

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


[Samba] Files get written with sections of log in them - destroying files.

2004-07-21 Thread Alexander Skwar
Hello!

I'm having a problem with Samba 3.0.4 on a HP-UX 11.00 server. 

The problem is, that sometimes files don't get written properly; ie. 
somewhere in the middle of the file, I find a section of logs. You can 
find a sample file at 
http://stuff.alexander.skwar.name/Delphi/HP-UX/Samba/broken-samba-file.prt

If you open the file with a binary editor and have a look at bytes 6000 
to 16100, you'll see that something's very wrong. You'll also see that, 
if you open the file in a normal text viewer like your browser.

Any ideas at all about why something like this might happen?

Further files of interest:
http://stuff.alexander.skwar.name/Delphi/HP-UX/Samba/smb.conf
http://stuff.alexander.skwar.name/Delphi/HP-UX/Samba/testparm_--suppress-prompt_--verbose.txt

Thanks a lot,

Alexander Skwar
-- 
Sind Schäfchens Locken schwarz und braun, 
dann lehnt es am Elektrozaun. 
Und wenn es mit den Äuglein rollt, 
dann will es sagen: Zuviel Volt!

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


Re: [Samba] Files get written with sections of log in them - destroying files.

2004-07-21 Thread Alexander Skwar
Herb Lewis wrote:
 Did you by any chance get a log rotate about the time of the corruption?

You mean the Samba logs, don't you (ie. not the logs from syslog and the
like)?

 We have seen these things in the past but they have never been reproducible

Yes. I also cannot really reproduce it - ie. I cannot do X and have the
file be destroyed. I wish I were able to :(

 so have been hard to track down.

Yep. Don't you just hate those Heisenbugs? Well, I do :(

 At one time I had a theory that something
 was going wrong at the time the logs reached the max size and were being
 rotated because all the cases had a max log size set. Can you check your
 logs and see if you have an old log that ends about the time of the
 log entries that were inserted into your file?

Well, at least that's a theory. Tomorrow when I'm back at work, I'll for
sure checkt that.

PS: Why did you reply off-list?

Alexander Skwar
-- 
printk(KERN_WARNING Warning: defective CD-ROM (volume sequence
number). Enabling \cruft\ mount option.\n);
2.2.16 /usr/src/linux/fs/isofs/inode.c
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Printproblems in 3.0.3 - Postscript files contain log messages

2004-05-05 Thread Alexander Skwar
Hello!

I'm having a problem with Samba 3.0.3 on a HP-UX 11.00 server. In Samba,
I'm having a printer which allows me to create PDF files. For this, I
added the following lines to smb.conf:

[global]
load printers = No
printcap name = /etc/opt/samba/printcap

[printers]
comment = Defaults for all printers
path = /var/opt/samba/spool
read only = Yes
create mask = 0700
printable = Yes
browseable = No
nt acl support = Yes

[pdf-generator]
comment = PDF Generator (only valid users)
path = /var/opt/samba/spool/pdf-generator
printable = Yes
print command = /var/opt/samba/bin/print-pdf%s  
~%u/public_html/pdf-prints  http://%L/~%u/pdf-prints   %m  %I  %u  
%J
nt acl support = Yes

(The script /var/opt/samba/bin/print-pdf can be found at the end of this
message.)

The problem that I'm having, is that this printer doesn't work since I
updated to Samba 3.0.3 (before, I used HP CIFS 2.2.8a; the printer
worked). I suppose the reason that it doesn't work is, that the
printerfiles/postscript files that Samba creates, contain log messages
like this:

[...]
[2004/05/05 11:43:08, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(544)
  free_pipe_context: destroying talloc pool of size 600
[2004/05/05 11:43:08, 3] smbd/process.c:process_smb(890)
  Transaction 1907 of length 3804
[...]

Furhter on in the file I can find parts which look pretty much like
Postscript:

[...]
[2004/05/05 11:43:08, 3] rpc_server/srv_pipe.c:api_rpcTNP(1509)
  api_rpcTNP: rpc command: SPOOLSS_WRITEPRINTER
716 562 L
689 654 L
691 653 L
718 561 L
cp
0.801 0.535 0.113 r
[...]

Sadly, this error doesn't come up all the time - just mostly. I also do
not know how to force this error to come up.

Q: Why is it, that I'm having these log messages in the printer files?

Thanks a lot,
Alexander 

###
$ cat /var/opt/samba/bin/print-pdf
#!/usr/local/bin/bash

PS2PDF=ps2pdf13
OPTIONS=-dAutoFilterColorImages=false -sColorImageFilter=FlateEncode
INPUT=$1
PREFIX=$2
#WINBASE=$(echo $3|sed -e 's,/,,g')
HTTPBASE=$3
MACHINE=$4
IP=$5
USERNAME=$6
NAME=`echo $7|tr '[:punct:]' '[-*]'`

CONFFILE=/etc/opt/samba/print-pdf.conf
[ -e $CONFFILE ]  . $CONFFILE

#Values not taken as arguments, could be set via env. vars (?) or config file
KEEP_PS=${KEEP_PS=0}
PERMS=${PERMS=640}
BASEFILE=${BASEFILE=pdf-service}
TEMP=${TEMP=$2}
UMASK=${UMASK=006}

mkdir -p $PREFIX

INFILE=$(basename $INPUT)

umask $UMASK

[ -n $NAME ]  TEMP=$PREFIX

OUTPUT=`mktemp -d $TEMP -p $BASEFILE-XX`

if [ -n $NAME ]; then
FINALOUTPUT=$PREFIX/$NAME
else
FINALOUTPUT=$OUTPUT
fi
if [ -n $8 ]; then
OPTIONS=$OPTIONS -dPDFSETTINGS=/${8#pdf-}
else
OPTIONS=$OPTIONS -dPDFSETTINGS=/default
fi

$PS2PDF $OPTIONS $INPUT $OUTPUT.pdf
mv -f ${OUTPUT}.pdf ${FINALOUTPUT}.pdf

MESSAGE=$(echo Your PDF file has been created at $HTTPBASE/.)

# Cleanup
if [ $KEEP_PS != 0 ];then
mv -f $INPUT ${FINALOUTPUT}.ps
MESSAGE=$(echo $MESSAGE\nYou can find the postscript file there as well.)
chmod $PERMS ${FINALOUTPUT}.ps ${FINALOUTPUT}.pdf
else
rm -f $INPUT
chmod $PERMS ${FINALOUTPUT}.pdf
fi

rm -f  $OUTPUT

EMAIL=`ypmatch $USERNAME passwd | awk -F: '{ print $5 }' | sed 's|.*,||'`
cat - EOMAIL | mutt -e 'set [EMAIL PROTECTED] realname=PDF Print Service' -s PDF 
for job $NAME created at `date` -a ${FINALOUTPUT}.pdf -a ${FINALOUTPUT}.ps $EMAIL 
 $dbg 21
Hello.

Please find attached your PDF printout of the job
named $NAME, which
you submitted at `date` from host $MACHINE.

For the next 24 hours, you can also get the files at your pdf-print
directory at $HTTPBASE/.

Regards,

Your PDF Print Service
EOMAIL

MESSAGE=$(echo $MESSAGE\n\nThe files have also been mailed to $EMAIL.)

echo -e $MESSAGE | /opt/samba/bin/smbclient -M $MACHINE -I $IP -U PDF Generator  
$dbg 21
###

Alexander Skwar
-- 
Bei den Vegetariern heißt der Beischlaf Bestäubung.

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


[Samba] Re: special chars in windows filenames

2004-04-05 Thread Alexander Skwar
Am 05 Apr 2004 12:58:38 +0200 schrieb Fernando Pintabona:

 Check the unix charset setting in smb.conf.
 For Spanish, I had to add the following:
 unix charset = CP850

I'm having:

dos charset = 850
unix charset= ISO8859-1

Alexander Skwar
-- 
downtime (noun.) The period during which a system is error-free and immune
from user input.

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


[Samba] Re: Cannot start SWAT on Solaris 8 server - libiconv.so.2: open

2004-03-31 Thread Alexander Skwar
Am Tue, 30 Mar 2004 10:57:49 -0500 schrieb Scarff,  Christopher J Mr
(Titan) 513th:

 No one on the planet has seemed to answer this question.  After an hour
 or so of trying to fix this problem myself, I now have the answer, at
 least a temp fix for it.
 
  
 
 I just linked /usr/local/lib/libiconf.so.2 /lib/libiconf.so.2 in Solaris
 9. Seems to get Swat working again.  
 

Wow. When did I write that question? 2002? ;)

Thanks for the answer *G* I somehow got it to work.

Alexander Skwar
-- 
panic(Unable to find empty mailbox for aha1542.\n);
2.2.16 /usr/src/linux/drivers/scsi/aha1542.c

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


[Samba] Meaning of smbstatus display

2004-03-12 Thread Alexander Skwar
 2004
caxshare  9120   hpfrb34402x3  Fri Mar 12 07:51:04 2004
CAD   7373   b0405652  Fri Mar 12 05:55:23 2004
iman_ux  28457   hpfrb34402xx  Fri Mar 12 06:34:40 2004
CAD  24379   hpfrb34402xv  Thu Mar 11 13:23:37 2004
iman_ux   7956   hpfrb34402x0  Fri Mar 12 06:39:38 2004
iman_ux   7978   hpfrb34402x8  Fri Mar 12 06:40:29 2004
caxshare  8510   hpfrb34402xw  Fri Mar 12 07:22:01 2004
IPC$ 27077   hpfrb34402x9  Thu Mar 11 14:59:14 2004
caxshare  9135   8rjrj0j   Fri Mar 12 07:56:27 2004
IPC$ 28457   hpfrb34402xx  Fri Mar 12 06:34:07 2004
caxshare  7668   hpfrb34402xb  Fri Mar 12 06:22:37 2004
caxshare  8958   hpfrb34402yh  Fri Mar 12 07:39:24 2004
caxshare  7377   hpfrb34402y6  Fri Mar 12 05:55:33 2004
IPC$  7956   hpfrb34402x0  Fri Mar 12 06:39:07 2004

Thanks for your help,

Alexander Skwar
-- 
In erster Näherung mit einem zweiten Versuch bei der Beschreibung
deines Problems...
Anders formuliert: Häh?!?
  [Karsten Düsterloh in dcsm]

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


[Samba] open_sockets_smbd: accept: No buffer space available

2004-03-12 Thread Alexander Skwar
Hello.

From time to time, my Samba 3.0.2a server on a HP-UX 11.00 server sends the
following messages to the syslog:

Mar 12 08:40:51 s08nfs smbd[10021]:   open_sockets_smbd: accept: No buffer space 
available

What's the meaning?

I found
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1079078265934+28353475threadId=493734
which suggested to increase tcp_conn_request_max (it was at 20 and is now
at 4096), however the ITRC entry had something to do with inetd. It also
suggested that the server might be too overloaded and doesn't react quickly
enough. Is Samba 3 more picky about this then Samba 2?

They suggest to isntall two patches:

PHNE_21767
PHNE_21217

I have PHNE_26250 installed which supersedes. PHNE_21767 (or any later)
isn't installed. If it's not absolutely required, I'd like to not install
the patch since I don't want to reboot.

Thanks,

Alexander Skwar
-- 
printk(HPFS: G... Kernel memory corrupted ... going on, but
it'll crash very soon :-(\n);
2.4.3 linux/fs/hpfs/super.c

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


[Samba] Cannot change password on HP-UX: PANIC: failed to set gid, INTERNAL ERROR

2004-02-24 Thread Alexander Skwar
winbind separator = \
winbind cache time = 300
winbind enable local accounts = Yes
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = No
winbind trusted domains only = No
comment =
path =
username =
invalid users =
valid users =
admin users =
read list =
write list =
printer admin =
force user =
force group =
read only = Yes
create mask = 0744
force create mode = 00
security mask = 0777
force security mode = 00
directory mask = 0755
force directory mode = 00
directory security mask = 0777
force directory security mode = 00
inherit permissions = No
inherit acls = No
guest only = No
guest ok = No
only user = No
hosts allow =
hosts deny =
nt acl support = Yes
profile acls = No
map acl inherit = No
afs share = No
block size = 1024
max connections = 0
min print space = 0
strict allocate = No
strict sync = No
sync always = No
use sendfile = No
write cache size = 0
max reported print jobs = 0
max print jobs = 1000
printable = No
printing = hpux
print command = lp -c -d%p %s; rm %s
lpq command = lpstat -o%p
lprm command = cancel %p-%j
lppause command =
lpresume command =
queuepause command = disable %p
queueresume command = enable %p
printer name =
use client driver = No
default devmode = No
default case = lower
case sensitive = No
preserve case = Yes
short preserve case = Yes
mangle case = No
mangling char = ~
hide dot files = Yes
hide special files = No
hide unreadable = No
hide unwriteable files = No
delete veto files = No
veto files =
hide files =
veto oplock files =
map system = No
map hidden = No
map archive = Yes
mangled names = Yes
mangled map =
browseable = Yes
blocking locks = Yes
csc policy = manual
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = Yes
oplock contention limit = 2
posix locking = Yes
strict locking = Yes
share modes = Yes
copy =
include =
exec =
preexec close = No
postexec =
root preexec =
root preexec close = No
root postexec =
available = Yes
volume =
fstype = NTFS
set directory = No
wide links = Yes
follow symlinks = Yes
dont descend =
magic script =
magic output =
delete readonly = No
dos filemode = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No
vfs objects =
msdfs root = No
msdfs proxy =

[caxshare]
comment = CAx Shares
path = /usr/local/samba/shares/caxshare
write list = @sysadmin
guest ok = Yes
fstype = Samba

Thanks a lot,

Alexander Skwar
-- 
Sind Schäfchens Locken schwarz und braun,
dann lehnt es am Elektrozaun.
Und wenn es mit den Äuglein rollt,
dann will es sagen: Zuviel Volt!

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


[Samba] Re: Cannot change password on HP-UX: PANIC: failed to set gid, INTERNAL ERROR

2004-02-24 Thread Alexander Skwar
Am Tue, 24 Feb 2004 10:34:16 +0100 schrieb Alexander Skwar:

 [2004/02/24 10:07:01.944528, 0, pid=7813, effective(0, 0), real(0, 0)] 
 lib/util_sec.c:assert_gid(113)
   Failed to set gid privileges to (-1,-2) now set to (0,0) uid=(0,0)

I searched some more, and found that this is the core error message.
The cause of this error is, that my nobody user has the UID -2 (minus 2)
and its group is nogroup with -2.

I now set the guest account to an account with non-negative UID/GID and
this error seems to be fixed now.

Alexander Skwar
-- 
Wusstest Du schon, das slrn das Gerauesch ist, das Hamster macht,
wenn er einen Frottee Agent auswuergt?
  [Joachim Kromm in tot]

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


[Samba] passwd program for NIS?

2004-02-24 Thread Alexander Skwar
Hello.

Now that I'm able to change passwords at all ;), I'd like to implement
password syncing with Samba.

Problem is, that we're using NIS for our Unix network. Right now I don't
yet have an idea what I'd set for the passwd program. 

First, the program must be run on the NIS master. Fine. It must be able
to change the users password without needing to know the old password
when executed by root. That's where I'm having problems. I can set the
'passwd program = /bin/passwd -r files -F /etc/NISFILES/passwd %u', but
that doesn't quite work the way I'd expect to. 

This changes the users password in the /etc/NISFILES/passwd file just
fine, but after that I'd need to cd /var/yp ; make passwd which
sometimes take quite long (60 seconds). It for sure takes WAY longer
than when I/the user runs passwd.

What and how do you do to sync the Samba and NIS passwords?

Using Samba 2.2.8a (HP CIFS Server A.01.10) on HP-UX 11.00. Upgrading to
pure Samba 3.0.2a wouldn't be such big a problem.

Thnaks,

Alexander Skwar
-- 
printk(CPU[%d]: Sending penguins to jail...,smp_processor_id());
2.4.8 arch/sparc64/kernel/smp.c

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


[Samba] Trying to change password: RAP86: The specified password is invalid.

2003-10-14 Thread Alexander Skwar
Good $TIME! ;)

I'm having the following problem with Samba 3.0.0 on a Solaris 8 machine.

root_s07nfs:/opt/samba3/private/  ls -la
total 24
drwxrwxr-x   2 root other 96 Oct 14 10:12 .
drwxrwxr-x   9 root other   4096 Oct  9 07:15 ..
-rw---   1 root root8192 Oct 14 10:11 secrets.tdb
-rw---   1 root root   0 Oct 14 10:13 smbpasswd
root_s07nfs:/opt/samba3/private/  /opt/samba3/bin/smbpasswd -a vz6tml
New SMB password:
Retype new SMB password:
Added user vz6tml.
root_s07nfs:/opt/samba3/private/  ls -la
total 32
drwxrwxr-x   2 root other 96 Oct 14 10:12 .
drwxrwxr-x   9 root other   4096 Oct  9 07:15 ..
-rw---   1 root root8192 Oct 14 10:11 secrets.tdb
-rw---   1 root root 106 Oct 14 10:13 smbpasswd
root_s07nfs:/opt/samba3/private/  cat smbpasswd
vz6tml:1100:33BBCC14D194D2DAD3öööF48EE51B785:50C971EB141445781437C06CF1162DBF:[U   
   ]:LCT-3F8BB036:


vz6tml_s07nfs:/u/vz6tml/  /opt/samba3/bin/smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
machine 127.0.0.1 rejected the password change: Error was : RAP86: The specified 
password is invalid.
Failed to change password for vz6tml

Uhm, why? The password is correct, I'm sure - after it did not work for the
first 10 times, I switched to Copy'n'Paste for the text 10 tries. Always
the same error message from smbpasswd :(

I also don't quite get, how the smbpasswd binary could write to the
smbpasswd file, since the binary just has 775 rights:

root_s07nfs:/var/log/  ls -al /opt/samba3/bin/smbpasswd
-rwxr-xr-x   1 root other1204900 Oct  1 06:26 /opt/samba3/bin/smbpasswd

IOW, it's not suid root. If I set it suid root, I get this error message:

vz6tml_s07nfs:/u/vz6tml/  /opt/samba3/bin/smbpasswd
smbpasswd must *NOT* be setuid root.

Well, what am I doing wrong? Why can't I change the users password when I'm
the user?

Thanks for your help!


root_s07nfs:/var/log/  /opt/samba3/bin/testparm -s
Load smb config files from /opt/samba3/lib/smb.conf
creating lame upcase table
creating lame lowcase table
creating default valid table
Processing section [homes]
NOTE: Service homes is flagged unavailable.
Processing section [printers]
NOTE: Service printers is flagged unavailable.
Processing section [test]
Processing section [aaaze]
Loaded services file OK.
# Global parameters
[global]
workgroup = EUROPE
realm = EUROPE.DELPHIAUTO.NET
server string = Samba Server %v on %h
interfaces = ge0, lo0
bind interfaces only = Yes
pam password change = Yes
password level = 1
username level = 1
unix password sync = Yes
log level = 3 passdb:5 auth:10 winbind:2
log file = /opt/samba3/logs/log.%m
max log size = 128
debug hires timestamp = Yes
debug pid = Yes
debug uid = Yes
load printers = No
wins proxy = Yes
wins server = 130.171.200.151
ldap ssl = no
lock directory = /opt/samba3/locks
pid directory = /opt/samba3/locks
message command = /usr/bin/mailx -s 'message from %f on %m' root  %s; rm %s
remote browse sync = 130.171.200.151
NIS homedir = Yes

[homes]
comment = Home Directories
read only = No
browseable = No
available = No

[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No
available = No

[test]
comment = Testshare
path = /tmp
guest ok = Yes

[aaaze]
comment = aaaze Directories
path = /opt/samba3/shares/aaaze
read only = No
guest ok = Yes



Alexander Skwar
--
printk(Illegal format on cdrom.  Pester manufacturer.\n);
2.2.16 /usr/src/linux/fs/isofs/inode.c
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Trying to change password: RAP86: The specified password is invalid.

2003-10-14 Thread Alexander Skwar
Alexander Skwar wrote:

 unix password sync = Yes

Setting this to No helped.

Alexander Skwar
-- 
Signatur vorübergehend deaktiviert.

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


[Samba] Cannot start SWAT on Solaris 8 server - libiconv.so.2: open failed: No such file or directory

2003-09-30 Thread Alexander Skwar
Hi!

I'm having some trouble getting SWAT to run on a Solaris 8 server of mine.
On this server, SWAT is started through inetd:

root_s07nfs:/opt/  grep swat /etc/inetd.conf
swatstream  tcp nowait.400  root/opt/samba-3.0.0/samba/bin/swat swat

When I go to http://server:901/, I see this in the browser window:

ld.so.1: swat: fatal: libiconv.so.2: open failed: No such file or directory

I suppose this is because libiconv.so.2 is in /usr/local/lib:

root_s07nfs:/opt/  ls -la /usr/local/lib/libiconv.so.2 
/usr/local/lib/libiconv.so.2.1.0
lrwxrwxrwx   1 root other 17 Sep 30 13:18 /usr/local/lib/libiconv.so.2 - 
libiconv.so.2.1.0
-rwxr-xr-x   1 bin  bin  1138992 Jan 27  2003 /usr/local/lib/libiconv.so.2.1.0

I guess, this is because /usr/local/lib isn't in a path the dynamical
linker searches when looking for libraries. I tried to add /usr/local/lib
to this path by running crle:

root_s07nfs:/opt/  crle

Configuration file [3]: /var/ld/ld.config
  Default Library Path (ELF):   /usr/lib:/usr/local/lib:/usr/local/ssl/lib
  Trusted Directories (ELF):/usr/lib/secure  (system default)

Command line:
  crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/usr/local/ssl/lib

Even after restarting inetd, login via browser is not possible.

Hm. When I run smbd, the path configured with crle is used for searching
libraries. 

Any ideas how I can get swat to work?

Thanks a lot,

Alexander Skwar
-- 
/*
 * We used to try various strange things. Let's not.
 */
2.2.16 /usr/src/linux/fs/buffer.c
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] SWAT: chdir failed - the server is not configured correctly

2003-09-30 Thread Alexander Skwar
Alexander Skwar wrote:

 Hmm, all of a sudden SWAT started to respond. Now when I try to access
 http://server:901/, I get:
 
 500 Server Error
 chdir failed - the server is not configured correctly

A very simple solution - I forgot to run installswat.sh. So, after
doing the following, I'm happy SWATting ;)

$ cd /opt/samba-3.0.0/samba/bin
$ mkdir /opt/samba-3.0.0/swat
$ ./installswat.sh /opt/samba-3.0.0/swat /opt/samba-3.0.0/samba/bin

- /opt/samba-3.0.0 is the base for my Samba installation
- /opt/samba-3.0.0/swat is the installation directory for SWAT
- /opt/samba-3.0.0/samba/bin is a directory at the same level as the
  swat source

Bye,

Alexander Skwar
-- 
- Keine Kopien senden - ich lese die Listen in denen ich schreibe! -
  - Do not CC me on replies - I read the list in which I write! -

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


[Samba] Cannot compile 3.0.0 @ HP-UX - Errors in libsmb/clikrb5.c ?

2003-09-26 Thread Alexander Skwar
Good evening ladies and gentleman!

I'm trying to get Samba 3.0.0 to compile on a HP-UX 11.00
system. Well, trying to is the key here... :(

I did this do configure the Samba source:



#!/usr/local/bin/bash

VERSION=3.0.0
PREFIX=/opt/samba-${VERSION}

CC=/usr/local/bin/gcc
CPP=/usr/local/bin/cpp
SHLIB_PATH=$SHLIB_PATH:/usr/local/lib
PATH=$PATH:/opt/heimdal-0.6/bin

export CC
export CPP
export SHLIB_PATH
export PATH

cd samba-${VERSION}/source
./configure \
--prefix=${PREFIX}  \
\
--disable-cups  \
\
--with-smbwrapper   \
--with-ads  \
--with-dce-dfs  \
--with-automount\
--with-pam  \
--with-pam_smbpass  \
--with-winbind



Then I ran gmake and failed with:



Compiling libsmb/clikrb5.c
libsmb/clikrb5.c: In function `krb5_locate_kdc':
libsmb/clikrb5.c:225: error: dereferencing pointer to incomplete type
libsmb/clikrb5.c:226: error: dereferencing pointer to incomplete type
libsmb/clikrb5.c: In function `krb5_princ_component':
libsmb/clikrb5.c:405: warning: assignment discards qualifiers from pointer target type
gmake: *** [libsmb/clikrb5.o] Error 1



Compiler used is gcc 3.3.1 from http://hpux.connect.org.uk/.

What do I have to do to get it to compile?

Thanks a lot,

Alexander Skwar
-- 
printk(Penguin %d is stuck in the bottle.\n, i);
2.0.38 /usr/src/linux/arch/sparc/kernel/smp.c
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Windows can't create folders/files with long file names

2003-07-08 Thread Alexander Skwar
Hello!

Sometimes I've got the problem, that my Windows XP Pro can't create
folders/files with long file names on some shares. However, it's always
possible to read existing folders/files with long file names. After
restarting Windows and reconnecting the share, the problem normally goes
away. At a given point in time, the problem doesn't exist for all users
(IOW: some users can create long file names, some can't).

Right now, the problem appears most often on a HP-UX 11.00 server with
2.2.5 but sometimes it also appears on a Mandrake 9.1 2.2.7a server.

Why is it, that Windows sometimes can't create folders/files with long
file names?

Thanks,

Alexander Skwar
-- 
- Keine Kopien senden - ich lese die Listen in denen ich schreibe! -
  - Do not CC me on replies - I read the list in which I write! -

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


[Samba] Error compiling 3.0.0beta2 on HP-UX

2003-07-07 Thread Alexander Skwar
Hello!

I'm trying to compile 3.0.0beta2 on a HP-UX 11.00 machine with gcc v3.2.
 After running configure --prefix=/some/where, I ran make which exited
with this error message:

Compiling lib/snprintf.c
lib/snprintf.c:832: conflicting types for `snprintf'
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/include/stdio.h:493:
previous declaration of `snprintf'
*** Error exit code 1


Line 832 of lib/snprintf.c contains:

#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
 int snprintf(char *str,size_t count,const char *fmt,...)
{
size_t ret;
va_list ap;

va_start(ap, fmt);
ret = vsnprintf(str, count, fmt, ap);
va_end(ap);
return ret;
}
#endif


Hmm, what to do?

Thanks a lot for any help,

Alexander Skwar
-- 
Signatur vorübergehend deaktiviert.

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


Re: [Samba] Error compiling 3.0.0beta2 on HP-UX

2003-07-07 Thread Alexander Skwar
Alexander Skwar wrote:

 Hmm, what to do?

The usual thing: Search google before asking, dumbass! If you'd have
done so, you'd have found http://kuerzer.de/kmMHeuGue which is a thread
on the samba-technical mailing list from 2003-03-19 by Eric Ladner. In
the thread it says to comment out the offending block in Samba's
lib/snprintf.c. After setting #if 0 .. #endif around the block,
you'd be able to compile samba.

HTH myself,

Alexander Skwar
-- 
Signatur vorübergehend deaktiviert.

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


Re: [Samba] Error compiling 3.0.0beta2 on HP-UX

2003-07-07 Thread Alexander Skwar
Alexander Skwar wrote:

 HTH myself,

So far, so good. Now I'm getting another error:

Compiling ubiqx/ubi_sLinkList.c with
Linking libsmbclient non-shared library bin/libsmbclient.a
Make: Cannot load -rc.  Stop.
*** Error exit code 1 (ignored)
Compiling modules/vfs_recycle.c with
Building plugin bin/recycle.sl
/usr/ccs/bin/ld: DP relative code in file modules/vfs_recycle.po - hared
library must be position
independent.  Use +z or +Z to recompile.
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.

Seems like this error is new - I can't find anything with Google.

What's this error message supposed to tell me?
Anyhow, if I understood things correctly, this VFS module should provide
me with a network recycle bin, correct? If so, then I don't need it -
how to disable compilation of the recycle module?

Thanks,

Alexander Skwar
-- 
Signatur vorübergehend deaktiviert.

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


Re: [Samba] Error compiling 3.0.0beta2 on HP-UX

2003-07-07 Thread Alexander Skwar
Alexander Skwar wrote:

 me with a network recycle bin, correct? If so, then I don't need it -
 how to disable compilation of the recycle module?

Hmm, is it okay when I change line 3029 of configure:

default_shared_modules=vfs_recycle vfs_audit vfs_extd_audit
vfs_netatalk vfs_fake_perms

There, I'd like to remove vfs_recycle from the list.

Can I do so, or will this cause me unforseen problems?

Thanks,

Alexander Skwar
-- 
Signatur vorübergehend deaktiviert.

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


Re: [Samba] Error compiling 3.0.0beta2 on HP-UX

2003-07-07 Thread Alexander Skwar
Schelstraete Bart wrote:

 Try using the HP ANSI-C compiler.

I need to buy a license to use the HP ANSI-C compiler, don't I? If not -
where can I download it so that I can install it (it's currently not
installed).

Thanks,

PS: Please do NOT CC me on replies. Thanks.

Alexander Skwar
-- 
Signatur vorübergehend deaktiviert.

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


[Samba] Problmes joining Samba server to Active Directory

2003-02-25 Thread Alexander Skwar
Hi.

I've now been told the name of our Kerberos server for the Active
Directory that I'm trying to join my Samba 3.0 alpha 21 to.

As described on
http://techupdate.zdnet.co.uk/story/0,,t481-s2122363-p2,00.html, I
configured /etc/krb5.conf like this:

[EMAIL PROTECTED] samba]# cat /etc/krb5.conf
[logging]
 default = FILE:/var/log/krb5libs.log
 kdc = FILE:/var/log/krb5kdc.log
 admin_server = FILE:/var/log/kadmind.log

[libdefaults]
 ticket_lifetime = 24000
 default_realm = EUROPE.DELPHIAUTO.NET
 dns_lookup_realm = false
 dns_lookup_kdc = false

[realms]
 EUROPE.DELPHIAUTO.NET = {
  kdc = dewup-dc01.europe.delphiauto.net:88
  admin_server = dewup-dc01.europe.delphiauto.net:749
  default_domain = europe.delphiauto.net
 }

[domain_realm]
 .europe.delphiauto.net = EUROPE.DELPHIAUTO.NET
 europe.delphiauto.net = EUROPE.DELPHIAUTO.NET

[kdc]
 profile = /var/kerberos/krb5kdc/kdc.conf

[appdefaults]
 pam = {
   debug = false
   ticket_lifetime = 36000
   renew_lifetime = 36000
   forwardable = true
   krb4_convert = false
 }

I was then able to login using kinit [EMAIL PROTECTED].
But when I try to do net ads join, I get an error (log level = 9):

[EMAIL PROTECTED] samba]# /usr/bin/net ads join
[2003/02/25 14:52:34, 5] lib/debug.c:debug_dump_status(358)
  INFO: Current debug levels:
all: True/9
tdb: False/0
printdrivers: False/0
lanman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
  doing parameter realm = EUROPE.DELPHIAUTO.NET
  doing parameter ads server = 130.171.200.151
  doing parameter security = ADS
  doing parameter encrypt passwords = yes
  doing parameter workgroup = europe
  doing parameter server string = Samba Server
  doing parameter printcap name = /etc/printcap
  doing parameter load printers = no
  doing parameter log file = /var/log/samba/log.%m
  doing parameter max log size = 50
  doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  doing parameter dns proxy = no
[2003/02/25 14:52:34, 4] param/loadparm.c:lp_load(3614)
  pm_process() returned Yes
[2003/02/25 14:52:34, 7] param/loadparm.c:lp_servicenumber(3721)
  lp_servicenumber: couldn't find homes
[2003/02/25 14:52:34, 5] lib/util.c:init_names(269)
  Netbios name list:-
  my_netbios_names[0]=UGKBASE
[2003/02/25 14:52:34, 2] lib/interface.c:add_interface(79)
  added interface ip=204.104.207.110 bcast=204.104.207.127
nmask=255.255.255.192
[2003/02/25 14:52:34, 5] libads/ldap.c:ads_try_connect(53)
  ads_try_connect: trying ldap server '130.171.200.151' port 389
[2003/02/25 14:52:34, 3] libads/ldap.c:ads_connect(267)
  Connected to LDAP server 130.171.200.151
[2003/02/25 14:52:34, 3] libads/ldap.c:ads_server_info(1809)
  got ldap server name [EMAIL PROTECTED], using bind
path: dc=EUROPE,dc=DELPHIAUTO,dc=NET
[2003/02/25 14:52:34, 4] libads/ldap.c:ads_server_info(1815)
  time offset is -164 seconds
[2003/02/25 14:52:34, 4] libads/sasl.c:ads_sasl_bind(407)
  Found SASL mechanism GSS-SPNEGO
[2003/02/25 14:52:34, 3] libads/sasl.c:ads_sasl_spnego_bind(183)
  got OID=1 2 840 48018 1 2 2
[2003/02/25 14:52:34, 3] libads/sasl.c:ads_sasl_spnego_bind(183)
  got OID=1 2 840 113554 1 2 2
[2003/02/25 14:52:34, 3] libads/sasl.c:ads_sasl_spnego_bind(183)
  got OID=1 2 840 113554 1 2 2 3
[2003/02/25 14:52:34, 3] libads/sasl.c:ads_sasl_spnego_bind(183)
  got OID=1 3 6 1 4 1 311 2 2 10
[2003/02/25 14:52:34, 3] libads/sasl.c:ads_sasl_spnego_bind(190)
  got [EMAIL PROTECTED]
net: ../../../libraries/libldap/getvalues.c:93: ldap_get_values_len:
Assertion `entry != ((void *)0)' failed.
Aborted

Any ideas about what I missed/messed up?

Thanks a lot,


Alexander Skwar
-- 
printk(CPU[%d]: Sending penguins to jail...,smp_processor_id());
2.4.8 arch/sparc64/kernel/smp.c

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


Re: [Samba] Can't login from Xbox - No session setup?

2003-02-24 Thread Alexander Skwar
Kurt Weiss schrieb:

 can u try for testing reasons please
 guest ok = yes

Sure, however man smb.conf:

public (S)

Synonym for guest ok.


So I suppose I've already got this.

Alexander Skwar
-- 
Zugegeben mein Computer ist etwas alt, aber
ich mag das warme Glühen der Röhren...

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


[Samba] Figuring out name of Kerberos server?

2003-02-24 Thread Alexander Skwar
Hi!

I'm on a conquest to get Samba 3.0 to authenticate against an Active
Directory.  For this, I need to have Kerberos working.  However, I don't
know the name of our Kerberos server.

If I've got a Windows machine which is part of the Active Directory, can
I somehow get it to tell me the name of the Kerberos server?

Or could I use a packet sniffer to get the name of the server?  What
should I look for?

Thanks a lot,


Alexander Skwar
-- 
Mit wie vielen Sachen vergeuden wir unsere Zeit und fragen
uns im nachhinein, wo sie denn geblieben ist...

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


Re: [Samba] Can't login from Xbox - No session setup?

2003-02-23 Thread Alexander Skwar
Kurt Weiss schrieb:

 is it possible, that u post the smb.conf?

See attachment


Alexander Skwar
-- 
die_if_kernel(Kernel gets FloatingPenguinUnit disabled trap, regs);
2.2.16 /usr/src/linux/arch/sparc/kernel/traps.c

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash) 
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command testparm
# to check that you have not made any basic syntactic errors. 
#
#=== Global Settings =
[global]

# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = MDKGROUP

# netbios name is the name you will see in Network Neighbourhood,
# but defaults to your hostname
;  netbios name = name_of_this_server
   netbios name = TEICH

# server string is the equivalent of the NT Description field
   server string = Samba Server %v

# Message command is run by samba when a popup message is sent to it.
# The example below is for use with LinPopUp:
; message command = /usr/bin/linpopup %f %m %s; rm %s

# 2. Printing Options:
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
# (as cups is now used in linux-mandrake 7.2 by default)
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   printcap name = lpstat
   load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
   printing = cups

# Samba 2.2 supports the Windows NT-style point-and-print feature. To
# use this, you need to be able to upload print drivers to the samba
# server. The printer admins (or root) may install drivers onto samba.
# Note that this feature uses the print$ share, so you will need to 
# enable it below.
# This parameter works like domain admin group:
# printer admin = group user
;   printer admin = adm
# This should work well for winbind:
;   printer admin = Domain Admins
printer admin = askwar

# 3. Logging Options:
# this tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

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

# Set the log (verbosity) level (0 = log level = 10)
; log level = 3
; Debug:
; log level = 9
; Standard:
; log level = 0

# 4. Security and Domain Membership Options:
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the loopback interface. For more examples of the syntax see
# the smb.conf man page. Do not enable this if (tcp/ip) name resolution does
# not work for all the hosts in your network.
;   hosts allow = 192.168.1. 192.168.2. 127.

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user nobody is used
;  guest account = pcguest

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = user
# Use password server option only with security = server or security = domain
# When using security = domain, you should use password server = *
;   password server = NT-Server-Name
;   password server = *

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
;  password level = 8
;  username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
# Encrypted passwords are required for any use of samba in a Windows NT domain
# The smbpasswd file is only required by a server doing authentication, thus
# members of a domain do not need one.
  encrypt passwords = yes
  smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# also update the Linux system password.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
#the encrypted SMB passwords. They allow the Unix password
#to be kept in sync with the SMB password.
;  unix password sync = Yes
# You either need to setup a passwd program and passwd chat, or
# enable pam password change
;  pam password change = yes
;  passwd program = /usr/bin/passwd %u
;  passwd chat = *New*UNIX*password* %n\n

Re: [Samba] Joining Samba 3.0 to a pure Active Directory

2003-02-23 Thread Alexander Skwar
Antti Tikkanen schrieb:

 As someone suggested, use 'kinit [EMAIL PROTECTED]'. You asked in another
 post how to find out your KDC server: every domain controller is also a
 KDC, so you should use that. If you get a Kerberos TGT, you have Kerberos
 working.

Thanks.

Why is it, that I need to know all these details for Samba?  In Windows,
I just enter the name of the AD/domain and then I can join it.  In fact,
I wouldn't even know where I could enter these details.

 In your smb.conf, you should have the lines:

Thanks again.

 I don't know what you mean by special privileges, but I think not. When
 doing 'net ads join', you must have a TGT for a user that has the required
 privileges to add a machine account and alter some attributes (a Domain
 Admin account will do).

With special privileges I meant, if I can use any user to join the AD
or if I need an elevated account like Domain Admin.  So even if you
didn't understand what I meant, you answered it just perfectly! ;)

 Restrictions can be done on a per user basis, see 'man smb.conf',
 especially things such as 'valid users'. When you use 'security = ADS',
 this is also not a problem.

Good to know.

Alexander Skwar
-- 
/* So there I am, in the middle of my `netfilter-is-wonderful'
   talk in Sydney, and someone asks `What happens if you try
   to enlarge a 64k packet here?'.  I think I said something
   eloquent like `fuck'. */
2.4.3 linux/net/ipv4/netfilter/ip_nat_ftp.c

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


[Samba] Can't login from Xbox - No session setup?

2003-02-22 Thread Alexander Skwar
Hello.

I'm having problems connecting to a Samba 2.2.7 share from my Xbox with
Xbox Media Player (XBMP) 2.3.

In the config file of XBMP, I added an entry which should make XBMP
connect to a SMB share on my Samba server.  I think, I've got everything
setup correctly - according to the docs.

However, when I try to connect, I don't see anything on the Xbox.

After having set log level = 9 in smb.conf, I see the following extract:

  smb_password_ok: Checking SMB password for user xbox
[2003/02/23 00:58:03, 5] smbd/password.c:smb_password_ok(489)
  smb_password_ok: challenge received
[2003/02/23 00:58:03, 4] smbd/password.c:smb_password_ok(518)
  smb_password_ok: Checking LM password
[2003/02/23 00:58:03, 4] smbd/password.c:smb_password_ok(520)
  smb_password_ok: LM password check succeeded
[.]
[2003/02/23 00:58:03, 1] smbd/password.c:authorise_login(728)
  authorise_login: refusing user  with no session setup
[2003/02/23 00:58:03, 2] smbd/service.c:make_connection(331)
  Invalid username/password for filme []

What I don't understand, is the 2nd to last message:

  authorise_login: refusing user  with no session setup

Also the last message is strange:

  Invalid username/password for filme []

Username and password IS correct - I double checked it with trying to
connect from a XP client as well as with smbmount.  Everything is
working fine in these cases.

On http://message-center.info/stuff/XBMP_SMB.pcap, you can fínd a
tcpdump when I tried to connect to the share.  As filter, I had set:

(port 137 or port 138 or port 139) and
host teich.garten.digitalprojects.com and
not host D8RJRJ0J.garten.digitalprojects.com

I added line breaks for readability in this mail.

teich.garten.digitalprojects.com is the name of my server and
D8RJRJ0J.garten.digitalprojects.com is the name of the only other
running client at this time.

Well - I hope these information aren't too sparse.  If so, I'd be happy
to provide as much as I possibly can.

Any ideas about what might be causing these problems?  Do you suppose
that this might be a bug in the XBMP SMB client?

Thanks a lot,

Alexander Skwar
-- 
panic(Attempted to kill the idle task!);
2.2.16 /usr/src/linux/kernel/exit.c

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


Re: [Samba] How to join a linux machine to a pure ActiveDirectoryDomain using Samba 3.0alpha21?

2003-02-20 Thread Alexander Skwar
[EMAIL PROTECTED] schrieb:

 So it would appear that Kurt was correct

Wrong.

Please read the link Glenn send to the list:

http://www.experts-exchange.com/Operating_Systems/WinXP/Q_20461281.html#1

However, I don't care about XP Home.  I asked:

No, I haven't yet setup kerberos.

Will net ads join prompt me for the AD to join, or does it somehow
automagically figure out which AD to join?


Alexander Skwar
-- 
panic(Unable to find empty mailbox for aha1542.
);
2.2.16 /usr/src/linux/drivers/scsi/aha1542.c

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



[Samba] Joining Samba 3.0 to a pure Active Directory

2003-02-20 Thread Alexander Skwar
Hello.

I'd like to join a Samba 3.0 alpha 21 server running on RedHat 8.0 to an
Active Directory.  This AD does NOT support Windows NT 4.0 Domains.

In a previous mail, I've been asked if I already have Kerberos setup and
tested.  I don't.  How do I test if Kerberos is working correctly for me?

If everything is working fine, I'd like the Samba server to join the AD
europe.delphiauto.net.  For this, I should type net ads join.  How
do I specify, which AD is to be joined?

And if this is also working, I'd like to be able to login to the Samba
server with a username/password which is ONLY in the AD.  Do I need any
special privileges in the AD for the server?

When this is also working, I'd like offer shares.  However, not every
user should be allowed to mount every share - IOW: restriction should
be done on a per user basis.  If I maintain a local smbpasswd, I know
that this shouldn't be a problem - but what if I use AD to do the
authentication?

Thanks a lot for all your help,
Alexander Skwar
-- 
#ifdef STUPIDLY_TRUST_BROKEN_PCMD_ENA_BIT
2.4.0-test2 /usr/src/linux/drivers/ide/cmd640.c

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



Re: [Samba] Joining Samba 3.0 to a pure Active Directory

2003-02-20 Thread Alexander Skwar
Alexander Skwar schrieb:

 In a previous mail, I've been asked if I already have Kerberos setup and
 tested.  I don't.  How do I test if Kerberos is working correctly for me?

In an off-list mail, someone told me to try

| For test your kerberos
|
| The command
|
| Kinit [EMAIL PROTECTED]
| And your password username

I'm getting this error:

[root@ugkbase samba]# kinit [EMAIL PROTECTED]
kinit(v5): Cannot find KDC for requested realm while getting initial
credentials

In the ads documentation file of samba at http://tinyurl.com/64gv I read
that I need to configure kerberos first:

| The minimal configuration for krb5.conf is:
|
| [realms]
| YOUR.KERBEROS.REALM = {
|kdc = your.kerberos.server
| }

That's what I did not yet do.

Suppose I've got some Windows clients which are already in the AD -
using these machines, can I figure out the name of the KDC?  If so, how?

Thanks again,


Alexander Skwar
-- 
/* When we have more time, we can teach the penguin to say
 * By your command or Activating turbo boost, Michael.
 */
2.2.16 /usr/src/linux/arch/sparc/prom/sun4prom.c

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



Re: [Samba] Joining Samba 3.0 to a pure Active Directory

2003-02-20 Thread Alexander Skwar
fabien assuid schrieb:
 On your active directory initialize your password 
 vz6tml 

What do you mean with initialize?  The user has a password and the
account is set so that the user does not have to change the password.

Alexander Skwar
-- 
/* Nobody will ever see this message :-) */
panic(Cannot initialize video hardware
);
2.0.38 /usr/src/linux/arch/m68k/atari/atafb.c

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



Re: [Samba] How to join a linux machine to a pure ActiveDirectoryDomain using Samba 3.0alpha21?

2003-02-14 Thread Alexander Skwar
Kurt Weiss schrieb:

 mission impossible!
 windows XP home does not support domains!!

Well, as pointed out in the link, that's not true.  But as I said, how
did this link help with my problem?

Alexander Skwar
-- 
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.biz  |  Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen

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



[Samba] How to join a linux machine to a pure Active DirectoryDomain using Samba 3.0alpha21?

2003-02-13 Thread Alexander Skwar
Hello.

I've now compiled and installed Samba 3.0 alpha 21 on a Red Hat 8.0 box
(since I sadly don't have a current Mandrake box available in our
network).

Now I'm somewhat lost - what do I have to do, to make the Samba server
join the Active Directory (which doesn't support NT 4.0 Domains)?

Is net ads join the only thing I've got to do?  

Where do I set which AD is to be joined?  Does Samba use the
workgroup parameter from smb.conf?  Do I have to pay any attention on
how I enter the AD name there, or would europe.delphiauto.net do?  

Do I need some sort of adminstrative rights in the AD to be able to
join?

Which security mode would I need to use?  domain?

Besides Samba, which other software/servers do I need on my server?
Kerberos?  I suppose I need to configure it somehow - how?  What do I
have to pay attention to?

I'd be very happy if someone could help me out - FAQ pointers concerning
this are welcome as well!  I've Google'd for answers but could basically
just find questions and sometimes answers regarding Samba 2.2.x and NT
4.0 Domains.

Thanks a lot,

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.biz |Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 17 days 4 hours 43 minutes
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] How to join a linux machine to a pure ActiveDirectoryDomain using Samba 3.0alpha21?

2003-02-13 Thread Alexander Skwar
GRRR... I send it only to him and not to the list.  Lists without
Reply-To are bad :(

Errol Neal wrote:
 net ads join will add your samba box to the windows 2000 domain, and the domain does 
not have to support mixed mode. You will need to have kerberos setup and tested on 
your system (linux). Do you already have this done?

No, I haven't yet setup kerberos.

Will net ads join prompt me for the AD to join, or does it somehow
automagically figure out which AD to join?

Alexander Skwar
-- 
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.biz  |  Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen

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



Re: [Samba] How to join a linux machine to a pure ActiveDirectoryDomain using Samba 3.0alpha21?

2003-02-13 Thread Alexander Skwar
Glenn J. Rowe wrote:
 See...
 http://www.experts-exchange.com/Operating_Systems/WinXP/Q_20461281.html#1

What should this tell me?  As far as I understood your link, it's about
making Win XP Home Edition join a Domain.  I don't have XP Home, just XP
Pro and some Windows 2000 Pro boxes.

Alexander Skwar
-- 
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.biz  |  Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen

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



Re: AW: [Samba] Samba server in a failover environment

2003-02-13 Thread Alexander Skwar
Oktay Akbal wrote:

 shared-storage or nfs (however this is made redundant in his case).
 Both servers would then have the same tdbs.

Hm, this would mean he'd need to introduce a third server which holds
the shared storage.  And to have this server be secured, he should have
a fourth server which is a clone of the third server.

I don't think this is a good idea...

Better rsync the tdb's quite often.  Like once an hour, since those
files aren't that big.  Futher, if he'd use rsync, the sync would go
very fast, as the files (probably) don't change all that much.

Alexander Skwar
-- 
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.biz  |  Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen


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



[Samba] Active Directory - Which Samba version is needed?

2003-02-07 Thread Alexander Skwar
Hi!

I'd like to setup a Samba server which should do user authentication
against an Active Directory.  Our AD admins told me, that we do not have
Window NT 4.0 Domains available.

What I'm trying to accomplish, is that the users can login with the same
username/password they use with the AD.  Also, if the password is
changed in the AD, this change should be reflected on the Samba server.
 It doesn't have to be the other way arround - ie. the Samba server
doesn't have to be able to do password changes.

The reason is, that I need a way for the Windows users to access files
on NFS shares.

All this is supposed to work on a HP-UX 11.00 server, but I also do have
a RedHat 8.0 server available.  So I'm either looking for a HP-UX
solution (preferrable with the HP CIFS server) or a Linux solution.
Actually, plain OS independant hints are also VERY much appreciated!

Thanks a lot,

Alexander Skwar
-- 
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.biz  |  Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen

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



Re: [Samba] Active Directory - Which Samba version is needed?

2003-02-07 Thread Alexander Skwar
So sprach Errol Neal am 2003-02-07 um 06:57:45 -0800 :
 

 You will need samba-3.0 then. It is in alpha, so it is not recommended

Do I need Samba 3.0, because we do not have Windows NT 4.0 Domains?

 for production use right now. But I am using it production w/o any
 issues. It requires samba to be compiled against kerberos and the
 openldap libraries. It also requires the use of winbindd.

Which configure options do I need at minimum?  Would the following be
sufficient?

--with-ads \
--with-krb5=/usr \
--with-ldap \
--with-winbind

Also, I'm unclear about the following options:

  --with-afs  Include AFS clear-text auth support
  --with-dce-dfs  Include DCE/DFS clear-text auth support

Thanks again,

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.biz |Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 11 days 10 hours 40 minutes
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Active Directory - Which Samba version is needed?

2003-02-07 Thread Alexander Skwar
So sprach Guenther Deschner am 2003-02-07 um 11:51:42 +0100 :
 you should set up samba with winbindd to achieve this.
 http://de.samba.org/samba/docs/Samba-HOWTO-Collection.html#WINBIND

Hmm, what's the command I need to type to join the Active Directory?
Would it be:

smbpasswd -j europe.delphiauto.net -U Administrator

europe.delphiauto.net is the tree of the AD that this server needs to
be a member of - I suppose.  Or rather, all the users that will login to
the server are in this AD tree.  So I suppose the server should also be
in this AD tree.

 maybe you should give us more details on this. how do you plan to restrict
 access to these shares?

Good question!

Well, we're migrating away from a Unix based network to a Windows
network (no, I don't particulary like it, but I can't do anything about
it...).

In Unix, we restricted access based on the machines.  Since all the
machines had static IPs, that wasn't a problem.  We haven't yet decided
how to restrict access in the Windows setup.  We're thinking about
implementing user based restrictions.  But that has yet to be decided...

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.biz |Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 11 days 11 hours 14 minutes
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Binary packages for RedHat 8.0 of 3.0?

2003-02-06 Thread Alexander Skwar
Hi!

The Samba 3.0 roadmap page says, that there should be binary packages of
3.0 alpha 21 available for Red Hat 8.0.  The link points to
http://download.samba.org/samba/ftp/Binary_Packages/RedHat - however
there doesn't seem to be such a directory...

Where can I get binary packages for RH 8.0?

Thank,s

Alexander Skwar
-- 
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.biz  |  Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen

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



[Samba] Compiling 3.0 alpha 21 on HP-UX 11.00

2003-01-30 Thread Alexander Skwar
Hi!

I'm trying to compile 3.0 alpha 21 on a HP-UX 11.00 machine.  make bombs 
out with the following error message:

lib/snprintf.c:790: conflicting types of `snprintf´
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/include/stdio.h:493: 
previous declaration of `snprintf´
*** Error exit code 1


I tried to compile it with gcc 3.2, which I got from the HP-UX porting 
centre.  I wanted to use gcc, because I've only got the bundled free cc 
and couldn't run ./configure with this compiler.  It errored out, 
because it couldn't find a way to set seteuid.

I've ran configure like this:

./configure \
	--prefix=/extern/software/misc/samba \
	--with-privatedir=/extern/software/misc/samba/private \
	--with-lockdir=/extern/software/misc/samba/var/locks \
	--with-piddir=/extern/software/misc/samba/var/locks \
	--with-swatdir=/extern/software/misc/samba/swat \
	--with-readline \
	--with-libiconv=/usr/local \
	--with-smbwrapper \
	--with-afs \
	--with-dce-dfs \
	--with-ads \
	--with-krb5=/opt/heimdal \
	--with-ldap \
	--with-xml-prefix=/usr/local \
	--with-automount \
	--with-pam \
	--with-tdbsam \
	--with-nisplus-home \
	--with-winbind

Did anyone get alpha21 to compile on HP-UX 11.00?

Thanks a lot,

Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.biz  |  Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen

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


Re: Spam (was: Re: [Samba] foriegn investment)

2002-05-14 Thread Alexander Skwar

»Andrew Bartlett« sagte am 2002-05-13 um 20:10:46 +1000 :
 Yes, by design.  The volume of this list is too much for some, and we
 would not want this to restrict who can ask (often quite legitimate)
 questions.

Well, there's always the digest option.  But while I don't agree (who
cares?), I can understand the reasoning.  IMO if someone asks a question
on the list, the answer should be send to the list as well, so that the
archives benefit from the answers.

But it's your (or rather the listmasters) decision and that's all I'm
gonna say to this.

 Yes, we occasionally get spam, virri etc - but it's pretty good, thanks
 to the hard work of the listmaster.

Yes, for an open list there are surprisingly few spam mails.

Thanks,

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 2 hours 55 minutes

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



Re: [Samba] WinXP joining a samba PDC

2002-05-14 Thread Alexander Skwar

»Alex Moen« sagte am 2002-05-13 um 07:54:01 -0500 :
 Where can I get the registry patch?

It's in the samba distribution.  See docs/Registry

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 2 hours 58 minutes

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



Re: [Samba] Logging in to the domain

2002-05-12 Thread Alexander Skwar

»Alexander Skwar« sagte am 2002-05-10 um 18:47:27 + :
 If somebody could please help me...

Hm, I'm still having no luck.  What's causing this problem?  Is the
account setup wrong in LDAP?  Here's the LDIF, in case it helps:

dn: uid=VIRTUAL-TEICH$,ou=People,o=Digital Projects,c=DE
cn: VIRTUAL-TEICH$
uid: VIRTUAL-TEICH$
uidNumber: 1002
gidNumber: 1000
homeDirectory: /dev/null
loginShell: /bin/false
description: Computer
objectClass: top
objectClass: posixAccount
objectClass: sambaAccount
pwdLastSet: 0
logonTime: 0
logoffTime: 2147483647
kickoffTime: 2147483647
pwdCanChange: 0
pwdMustChange: 2147483647
acctFlags: [W  ]
rid: 3004
primaryGroupID: 0
lmPassword: BA8B199FE763937AAAD3B435B51404EE
ntPassword: 2D8EE75FD49FB9125B216E5B87E4DA8C
userPassword: {SSHA}mF/mtq5+e5CPU0Q0HGh7aNXxl9gcOAIz
gecos: Computer Account fuer Virtual Teich
domain: MDKGROUP

Or did I do something wrong on the Windows side?  I also hda a look at
the WinXP_SignOrSeal.reg registry patch.  However, requiresignorseal is
already 0.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 17 hours 5 minutes

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



Re: [Samba] Logging in to the domain

2002-05-12 Thread Alexander Skwar

»Alexander Skwar« sagte am 2002-05-10 um 18:47:27 + :
 If somebody could please help me...

Is my smb.conf correct?  testparm doesn't complain.  Here it is:

[global]
log level = 9
os level = 64
preferred master = yes
domain master = yes
local master = yes
security = user
encrypt passwords = Yes
domain logons = yes
logon path = \\%N\profiles\%u
logon drive = H:
logon home = \\%N\%u
logon script = logon.bat

ldap admin dn = cn=root,o=Digital Projects,c=DE
ldap server = localhost
ldap ssl = off
ldap port = 389
ldap suffix = ou=People,o=Digital Projects,c=DE

passwd program = /usr/local/sbin/smbldap-passwd.pl %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully*
add user script = /usr/local/sbin/smbldap-useradd.pl -m -d /dev/null -g 1000 
-s /bin/false %u

workgroup = MDKGROUP
netbios name = TEICH
netbios aliases = SERVER
server string = Samba %v auf %h
interfaces = eth0 lo
update encrypted = Yes
map to guest = Bad User
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 512
time server = Yes
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
printcap name = lpstat
printer admin = askwar
printing = cups
character set = ISO8859-1
wins support = Yes
socket address = 10.20.30.40
veto files = *.vbs
dos filetime resolution = Yes
domain admin group =  @Domain Admins 

[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No

[Server]
comment = Verzeichnisse auf dem Server
path = /Verschiedenes/Shares/Groß
read only = No
volume = Shares für Windows
fstype = Samba
fake directory create times = Yes

[homes]
comment = Private Verzeichnisse
read only = No
browseable = No
Valid Users = %S

[netlogon]
path = /var/lib/samba/netlogon
writeable = no
write list = ntadmin
comment = Network Logon Service
guest ok = Yes

[profiles]
path = /home/local/samba-profiles
writeable = yes
browseable = no
create mask = 0600
directory mask = 0700
guest ok = yes

Thanks,

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 17 hours 8 minutes

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



[Samba] PDC login problem solved

2002-05-12 Thread Alexander Skwar

Hi.

I've now solved the problem.  If you remember, I was unable to login
from Windows 2000 to a Samba PDC.

To solve the problem, I changed the computer name in Windows 2000 and
then created a new machine account.  First, it was VIRTUAL-TEICH, and
now it is vm-teich.  However, this time I created the machine account
in samba in all lower case characters, whereas I first had it in all
upper case.

Can this be the root of my problems?

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 18 hours 36 minutes

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



[Samba] Can't use NET USE /HOME

2002-05-12 Thread Alexander Skwar

Hi.

When smbHome is set to \\SERVER\%u, I can't use NET USE X: /HOME on
Windows 2000.  However, when I change this setting to \\SERVER\homes,
it works allright.

Is this supposed to be this way in Samba 2.2.4?

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 19 hours 36 minutes

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



Re: [Samba] PDC login problem solved

2002-05-12 Thread Alexander Skwar

»Alexander Skwar« sagte am 2002-05-12 um 09:39:44 + :
 I've now solved the problem.  If you remember, I was unable to login
 from Windows 2000 to a Samba PDC.

Well, seems like I just was lucky with this Windows 2000 :(

I'm now trying to join a Windows XP Pro to the domain and am having the
exact same problems again:

[2002/05/12 12:35:09, 5] libsmb/credentials.c:cred_assert(124)
challenge : 7E4AAC6B38C9CDEE
[2002/05/12 12:35:09, 5] libsmb/credentials.c:cred_assert(125)
calculated: 23F65703AB1FDCFE
[2002/05/12 12:35:09, 5] libsmb/credentials.c:cred_assert(134)
  credentials check wrong

Urgs.  I've checked the registry for the signorseal bit and set it to 0
(as per the WinXP_reg patch).  The computer is named in all lower
case both on the Windows side and in Samba.

If somebody could please help me :|

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 21 hours 35 minutes

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



Re: [Samba] PDC login problem solved

2002-05-12 Thread Alexander Skwar

»Fernando Maidana« sagte am 2002-05-12 um 12:22:50 -0300 :
 A few days ago I was in the same situation...
 The registry patch only fix the Current Control Set, but if you use 
 regedit, you'll se 2 or 3 more controlsets... You have to patch the 
 other controlsets too.
 Usually the names of those controlsets are Controlset001, Controlset002...
 Make sure that your smb.conf contains domain logons = Yes

Nice idea, however ControlSet001 and ControlSet002 also contain
requiresignorseal=0 :(  domain logons is yes, else I would not be able
to login from my Windows 2000 PC.

 Hope this help!!

Sorry, no, however thanks a lot for your help.  Really appreciate it!

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 1 day 0 hours 29 minutes

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



Spam (was: Re: [Samba] foriegn investment)

2002-05-12 Thread Alexander Skwar

»Dagogo Jack« sagte am 2002-04-12 um 21:17:40 + :
 I am Dagogo Jack, an Engineer with the federal ministry of petroleum

Can anyone post to this list without being subscribed?

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 3 hours 28 minutes

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



[Samba] Does 2.2.4 need hex user and group rid?

2002-05-11 Thread Alexander Skwar

Hi.

I'm still having problems to login with Windows 2000 SP2 into my Samba
PDC.  The idealx howto says: user and group rids must be given in
hexadecimal in LDAP, however it also says: However, the rids were
written in decimal in LDAP. So at least 2.2.3-pre, Samba do not read
them as hexadecimal anymore..

What's the case for 2.2.4?  hex or dec?

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 23 hours 35 minutes

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



Re: [Samba] ldap_connect_system: Failed to retrieve password for from secrets.tdb

2002-05-11 Thread Alexander Skwar

»Dominik Geisel« sagte am 2002-05-11 um 12:35:00 +0200 :
 Hi,
 
 since samba 2.2.4 (I use the prebuilt Mandrake cooker RPMs) I got the 
 following problem on authorizing or changing a password using 'smbpasswd'.

Check the cooker and Samba archives.  I've answered this questions just
a few days ago.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 23 hours 44 minutes

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



Re: [Samba] Problem with samba 2.2.4 and Mandrake 8.2

2002-05-10 Thread Alexander Skwar

»[EMAIL PROTECTED]« sagte am 2002-05-10 um 14:15:39 -0300 :
 Hello all,
 
 I updated my mandrake 8.2 samba from version 2.2.3a to 2.2.4, using mandrake cooker 
package, but after the update my

The cooker package (2.2.4-1mdk) was built with LDAP support.  Thus, it
cannot (?) do normal lookups and needs a LDAP.

Rebuild the src.rpm with rpmbuild --without-ldap samba.spec.

PS: Your lines are very long and hard to read.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 3 hours 38 minutes

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



Re: [Samba] Problem with samba 2.2.4 and Mandrake 8.2

2002-05-10 Thread Alexander Skwar

»Alexander Skwar« sagte am 2002-05-10 um 18:11:12 + :
 The cooker package (2.2.4-1mdk) was built with LDAP support.  Thus, it
 cannot (?) do normal lookups and needs a LDAP.

Attached is the message from the Cooker list about this problem.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 3 hours 51 minutes

---BeginMessage---

Somehow the following crept into the specfile during preparation for the samba-2.2.4
release (Mandrake packaging stuff is now in samba CVS, so you can actually build
RPMs from a samba tarball with cd packaging/Mandrake; sh makerpms.sh, although
this wil currently cause the same problem on cooker;-)):

# Set defaults for each version
%if %build_cooker
%define build_acl 1
%define build_winbind 1
%define build_wins 1
%define build_ldap 1
%endif

The problem is that it should have
%define build_ldap 0

Samba can currently only support one sam backend, so if you don't use ldap, you will
want to rebuild the srpm as follows:

rpm --rebuild --without ldap samba-2.2.4-1mdk.src.rpm

or wait for -2mdk.

Thanks for the reminder.

Buchan

[EMAIL PROTECTED], [EMAIL PROTECTED] wrote:

[root@iq samba]# smbpasswd -L -a junfan
New SMB password:
Retype new SMB password:
fetch_ldap_pw: no ldap secret retrieved!
ldap_connect_system: Failed to retrieve password for  from secrets.tdb
fetch_ldap_pw: no ldap secret retrieved!
ldap_connect_system: Failed to retrieve password for  from secrets.tdb
Failed to add entry for user junfan.
Failed to modify password entry for user junfan
I don't ldap.
--
^^^
Jason Straight
President
BlazeConnect Internet Services
Cheboygan Michigan
www.blazeconnect.net
Phone: 231-597-0376





---End Message---


Re: [Samba] Logging in to the domain

2002-05-10 Thread Alexander Skwar

»Alexander Skwar« sagte am 2002-05-09 um 23:00:42 + :
 So, the answer is yes, I assume that it is setup correctly.

Hm, I'm now trying to debug what I might have done wrong.  So I've set
log level = 5 in smb.conf and tried to login to the domain.  From the
logs, I see that the LDAP setup seems to be working, as samba
successfully accessed the LDAP.  However, I see this in the logs:

[2002/05/10 18:31:28, 5] libsmb/credentials.c:cred_create(93)
sess_key : BF40CE6A37019FCF
[2002/05/10 18:31:28, 5] libsmb/credentials.c:cred_create(94)
stor_cred: CA218FCF71C19C2D
[2002/05/10 18:31:28, 5] libsmb/credentials.c:cred_create(95)
timestamp: 0
[2002/05/10 18:31:28, 5] libsmb/credentials.c:cred_create(96)
timecred : CA218FCF71C19C2D
[2002/05/10 18:31:28, 5] libsmb/credentials.c:cred_create(97)
calc_cred: 8C0FFDED509642ED
[2002/05/10 18:31:28, 4] libsmb/credentials.c:cred_assert(122)
  cred_assert
[2002/05/10 18:31:28, 5] libsmb/credentials.c:cred_assert(124)
challenge : 4E5DEC5A5302C957
[2002/05/10 18:31:28, 5] libsmb/credentials.c:cred_assert(125)
calculated: 8C0FFDED509642ED
[2002/05/10 18:31:28, 5] libsmb/credentials.c:cred_assert(134)
  credentials check wrong
[2002/05/10 18:31:28, 5] rpc_parse/parse_prs.c:prs_debug(60)
  00 net_io_r_auth_2 
[2002/05/10 18:31:28, 5] rpc_parse/parse_prs.c:prs_uint8s(645)
   data: 40 f2 1e 40 00 00 00 00 
[2002/05/10 18:31:28, 5] rpc_parse/parse_prs.c:prs_uint32(558)
  0008 neg_flags: 01ff
[2002/05/10 18:31:28, 5] rpc_parse/parse_prs.c:prs_ntstatus(587)
  000c status: NT_STATUS_ACCESS_DENIED

Well, seems like NT is sending 4E5DEC5A5302C957 whereas samba is
expecting 8C0FFDED509642ED.  What's going on here?  To me, this seems
like something is setup wrong, either on the Samba side or on the
Windows 2000 side.

If somebody could please help me...

Thanks,

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 3 hours 57 minutes

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



[Samba] Howto join Win2000 to a Samba acting as a PDC?

2002-05-09 Thread Alexander Skwar

Hi.

As you may have noticed, I'm trying to setup my Samba server so that it
is the PDC.  I'm reading the howtos on
http://www.unav.es/cti/ldap-smb/ldap-smb-2_2-howto.html and
http://de.samba.org/samba/docs/Samba-HOWTO-Collection.html#SAMBA-PDC .
Besides being a PDC, samba should use LDAP as the backend for storing
user stuff.

The LDAP contains the user/group accounts as listed in the idealx howto
from http://samba.idealx.org/dist/samba-ldap-howto.pdf, page 41.

The Windows 2000 Pro machine which should join the domain is called
VIRTUAL-TEICH, so I added a machine account VIRTUAL-TEICH$ to the
LDAP. 

I'm now trying to actually add the machine to the domain.  So I right
clicked on the Workspace (? Arbeitsplatz) icon to open the system
preferences.  Then on Network identification (?
Netzwerkidentifikation) - Properties (? Eigenschaften).  There I
changed the radio button from Workgroup to Domain and entered the name
I've set in /etc/samba/smb.conf workgroup = MDKGROUP (I entered
MDKGROUP).  Then a dialog popped up, and I entered a user name which is
listed in LDAP (I've tried using a username of a member of the Domain
Admins group as well as from a plain normal user).  Both times I get the
following error message in /var/log/messages:

May  9 21:42:04 teich smbd[31340]: [2002/05/09 21:42:04, 0] 
passdb/pdb_ldap.c:ldap_open_connection(79) 
May  9 21:42:04 teich smbd[31340]:   ldap_open_connection: cannot access LDAP when not 
root.. 

Attaching shares with usernames which are only listed in the LDAP works
fine.  But before I tried this, I made sure to remove all attached
shares and reboot the machine.

I also tried using root as the username, but then the Windows 2000
just hangs.  In /var/log/messages I get:

May  9 21:51:37 teich smbd[32235]:   api_samr_set_userinfo: Unable to unmarshall 
SAMR_Q_SET_USERINFO. 

Oh, after quite some time (~1 minute), a dialog in Win2000 popped up:
Willkommen zur Domäne MDKGROUP.  ;)

Well, I dislike this.  Do I really have to use root to join the domain?  

This is with samba 2.2.4 on MandrakeLinux 8.2.

What am I missing?

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 4 hours 45 minutes

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



[Samba] Logging in to the domain

2002-05-09 Thread Alexander Skwar

Hi again! ;)

Sorry if I'm being a pest, but I'd really like to be able to have my
samba as a PDC.

Okay, I've now joined the domain and rebooted.  Now I'd like to login to
the domain.  On the login screen, I've chosen a name which is in the
LDAP and thus should be a domain user.  I've also selected to login to
MDKGROUP (domain name); ie. I changed it from VIRTUAL-TEICH (this pc).

When I click on Ok to login, Windows right away pops up an error
message:

Das System kann Sie nicht bei dieser Domäne anmelden, da das
Computerkonto des Systems in seiner primären Domäne fehlt, oder das
Kennwort für dieses Computerkonto falsch ist.

Translation: Can't login to domain because the machine account is
missing from the primary domain or because the password for this machine
account is wrong.

Well, I've obviously missed a step.  But what?  I also wonder about the
password is wrong part.  I've never been asked for the machine account
password.  Is this correct?

samba 2.2.4 on MandrakeLinux 8.2.

Thanks again,

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 5 hours 17 minutes

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



Re: [Samba] Logging in to the domain

2002-05-09 Thread Alexander Skwar

»Luiz Alfredo Baggiotto« sagte am 2002-05-09 um 19:32:45 -0300 :
 Let me see if I could understand.

Thanks.

 You need to create one account - trust account - to each one of your machines (the
 machine name with the suffix $. For example: win101$). This accounts have a

Okay, done.

 password auto-generated for samba in the smbpasswd file and anyone password in the
 *nix system. Then, you need make anything similar to the following steps:

It doesn't exist in smbpasswd and also not in /etc/passwd.  But that's
correct, I think, because it exists in LDAP.  When I set things to a
workgroup setup in Windows 2000, I can attach shares using a username
which also does not exist in smbpasswd and passwd but only in LDAP.

So, the answer is yes, I assume that it is setup correctly.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 6 hours 11 minutes

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



[Samba] What to do for ACL support?

2002-05-07 Thread Alexander Skwar

Hi!

I'm trying to setup samba 2.2.4 on MandrakeLinux 8.2.  The server should
act as a file storage for about 25 Windows 2000 clients.

Setting up a basic server which just serves the files is easy.
However, I'd also like to support NT ACLs on the Samba server.  Well,
what do I have to do, to get it to work?

I'm using the Mandrake RPM for 2.2.4, which has ACL support compiled in
on a Mandrake 2.4.18 kernel (kernel-2.4.18.14mdk-1-1mdk to be exact)
which also has ACL support.  I use XFS as the filesystem.  acl-2.0.0 and
attr-2.0.1 are installed.

Thanks for help and/or pointers to documentation,

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 1 day 18 hours 11 minutes

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