Re: [Samba] How do I lock a shared file?

2013-09-05 Thread Helmut Hullen
Hallo, steve,

Du meintest am 05.09.13:

 School classes often have projects with files that many students
 will need to edit.

[...]

 Also, nobody forces applications to keep files open while
 they are edited. For example even some Windows native editor
 (I don't remember which) loads files into memory and closes
 the file until saving.

 It's a pity that we'll have to work around it. Surely Samba knows if
 a file is open or not doesn't it?  What's all this oplock stuff? It
 would be useful if we could have an option for smb.conf like:
  lock open files = Yes
 I realise that it's not for everybody. Would that be hard to
 implement?

Perhaps you need another tool than a text editor which is designed for  
one man (m/f), one work. I'd test some wikis for such a job. But then  
still there is the problem with two pupils (or other persons) one  
filling the document and the other deleting word for word.

Programmers for data bases know this problem ...

And just for demonstration: group all pupils around the whiteboard or  
blackboard in the class room, let them create and edit one text on this  
board, everybody with a piece of chalk and a wiping cloth.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Version 4.0.7 replace netlogon: /usr/local/samba/var/locks/sysvol/my.domain/scripts

2013-08-22 Thread Helmut Hullen
Hallo, Daniel,

Du meintest am 22.08.13:

 I did fix this:
 In [global]
 Set:
 follow symlinks = yes
 wide links = yes
 unix extensions = no

 As with Samba 3

I wouldn't set follow symlinks = yes as a global option ...

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Winbind troubles

2013-07-23 Thread Helmut Hullen
Hallo, Jonathan,

Du meintest am 23.07.13:

 Why use a word like orthogonal?

 Orthogonal is a single word, is precise and describes what is
 required exactly.

Sorry - that depends.
I know this word as a synonym of rectangular, and I mostly know it in  
a geometrical environment.

90 degrees = pi/2 = 100 gon.

These degrees not to be mistaken with degrees Fahrenheit or degrees  
Celsius.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Can someone explain SMB passwords?

2013-07-22 Thread Helmut Hullen
Hallo, Volker,

Du meintest am 22.07.13:

 So is there ANY way to provide access to a share, with only a
 password, not caring about a username? Or must I pick a name (e.g.,
 root) and tell all clients to log in under that username? If I do
 the latter, and root isn't listed in smbpasswd, will it just do
 ordinary Unix authentication, demanding a password that matches the
 local root password? Is the purpose of an SMB password to allow a
 client to be assigned a different password, without having to reveal
 the local Unix one? Or MUST I list root in smbpasswd with the same
 password as the local Unix one?

 There is also the username map parameter, using which you
 can for example say

 username map = /etc/samba/usermap

 and then open a file named /etc/samba/username with a single
 line containing

/etc/samba/usermap
(looks like a cp error ...)

 root = *

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Does Samba Re-read Changes To smb.conf

2013-07-17 Thread Helmut Hullen
Hallo, bhogue,

Du meintest am 17.07.13:

 I was told that samba will re-read the smb.conf if you make changes
 without restarting the smb service.

That's not true for the [global] section.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Losing Permissions of Files

2013-06-17 Thread Helmut Hullen
Hallo,

I wrote am 16.06.13:


[...]

 The solution required the correct storage of the DOS attributes, the
 appropriate configuration lines are

 # store DOS attributes in extended attributes
  ea support = yes
  store dos attributes = yes
  map readonly = no
  map archive = no
  map system = no
  map hidden = no

 You need to make sure that your file system is mounted with extended
 attributes as well.

 In my case: all these options are set (in the [global] paragraph).

 The share is included with

 [WinUpdate]
   comment = Update Windows
   path= /srv/CDs/Update

   read only   = no
   public  = yes
   read list   = @schueler, @lehrer, @fachl, @adm
   write list  = @lehrer, @adm
   wide links  = no
   create mask = 0755
   directory mask  = 1755
   # AND
   force directory mode= 0755
   # OR

   inherit permissions = yes
   map archive = no
 #

 The directory /srv/CDs is an ext3 partition, mounted with
 user_xattr.

 Reading in this share is no problem, writing too. Only executing
 something like *.vbs or *.cmd or *.exe produces under Samba4 (Samba3
 mode, using smbd and nmbd like samba-3.6.x) the error message (in
 german, on my machine)

 Auf das angegebene Gerät bzw. den Pfad oder die Datei kann nicht
 zugegriffen werden. Sie verfügen eventuell nicht über ausreichende
 Berechtigungen, um auf das Element zugreifen zu können.

 That message is a bit different from that messages Tanveer showed:
 You do not have permission to view or edit this object's permission
 settings.
 Viewing is (in my case) possible, editing too - at least with *.vbs
 and *.cmd.

 p.e. file update.cmd

 @echo off
 cd /D %~dp0cmd
 start DoUpdate.cmd %*

 Only executing produces the above mentioned error message.

 When I run Samba-3.6.8 (or older): all works fine.

--

Maybe I've solved this problem.
Running with log level 3 showed

[2013/06/17 16:38:30.731946,  3] ../source3/smbd/ 
error.c:82(error_packet_set)
  NT error packet at ../source3/smbd/error.c(165) cmd=162 (SMBntcreateX) 
NT_STATUS_ACCESS_DENIED
[2013/06/17 16:38:30.732671,  3] ../source3/smbd/process.c:1794(process_smb)
  Transaction 439918 of length 126 (0 toread)
[2013/06/17 16:38:30.732909,  3] ../source3/smbd/process.c:1397(switch_message)
  switch message SMBntcreateX (pid 3997) conn 0x8060478
[2013/06/17 16:38:30.733102,  3] ../source3/smbd/vfs.c:1118(check_reduced_name)
  check_reduced_name [client/Update.cmd] [/srv/CDs/Update]
[2013/06/17 16:38:30.733316,  3] ../source3/smbd/vfs.c:1248(check_reduced_name)
  check_reduced_name: client/Update.cmd reduced to 
/srv/CDs/Update/client/Update.cmd
[2013/06/17 16:38:30.733625,  2] ../source3/smbd/dosmode.c:92(unix_mode)
  unix_mode(client/Update.cmd) inheriting from client
[2013/06/17 16:38:30.733796,  2] ../source3/smbd/dosmode.c:115(unix_mode)
  unix_mode(client/Update.cmd) inherit mode 40755
[2013/06/17 16:38:30.733892,  3] ../source3/smbd/dosmode.c:160(unix_mode)
  unix_mode(client/Update.cmd) returning 0644
[2013/06/17 16:38:30.735209,  3] ../source3/smbd/error.c:82(error_packet_set)
  NT error packet at ../source3/smbd/error.c(165) cmd=162 (SMBntcreateX) 
NT_STATUS_ACCESS_DENIED

---

The problem seems to be that samba4 (running in samba3 mode) expects an  
executable file (inherit mode) but the file Update.cmd had (under  
Linux) no executable flag.

Under Samba 3.6 and older: no problem.

When I changed the linux rights to 755 all worked fine.

Is that a desired behaviour, or is that an error?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Losing Permissions of Files

2013-06-16 Thread Helmut Hullen
Hallo, Jonathan,

Du meintest am 12.06.13:

 Here is the information that you requested. When I say that all
 permissions on a file are lost, this is at the windows level. In
 Windows Explorer, we go to open the file in the default program, we
 get an Access denied. Contact your administrator. error.

[...]

 The solution required the correct storage of the DOS attributes, the
 appropriate configuration lines are

 # store DOS attributes in extended attributes
   ea support = yes
   store dos attributes = yes
   map readonly = no
   map archive = no
   map system = no
   map hidden = no

 You need to make sure that your file system is mounted with extended
 attributes as well.

In my case: all these options are set (in the [global] paragraph).

The share is included with

[WinUpdate]
comment = Update Windows
path= /srv/CDs/Update

read only   = no
public  = yes
read list   = @schueler, @lehrer, @fachl, @adm
write list  = @lehrer, @adm
wide links  = no
create mask = 0755
directory mask  = 1755
# AND
force directory mode= 0755
# OR

inherit permissions = yes
map archive = no
#

The directory /srv/CDs is an ext3 partition, mounted with  
user_xattr.

Reading in this share is no problem, writing too. Only executing  
something like *.vbs or *.cmd or *.exe produces under Samba4 (Samba3  
mode, using smbd and nmbd like samba-3.6.x) the error message (in  
german, on my machine)

Auf das angegebene Gerät bzw. den Pfad oder die Datei kann nicht  
zugegriffen werden. Sie verfügen eventuell nicht über ausreichende
Berechtigungen, um auf das Element zugreifen zu können.

That message is a bit different from that messages Tanveer showed:
You do not have permission to view or edit this object's permission  
settings.
Viewing is (in my case) possible, editing too - at least with *.vbs and  
*.cmd.

p.e. file update.cmd

@echo off
cd /D %~dp0cmd
start DoUpdate.cmd %*

Only executing produces the above mentioned error message.

When I run Samba-3.6.8 (or older): all works fine.

Who or what blocks the execute right with samba4 but not in samba-3.6?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Losing Permissions of Files

2013-06-12 Thread Helmut Hullen
Hallo, Tanveer,

Du meintest am 11.06.13:

 Here is the information that you requested. When I say that all
 permissions on a file are lost, this is at the windows level. In
 Windows Explorer, we go to open the file in the default program, we
 get an Access denied. Contact your administrator. error. When I
 right click on the file and goto Properties - Security, I get a You
 do not have permission to view or edit this object's permission
 settings. This usually happens after someone has edited the file. It
 is not one individual or group that has this issue. It could be
 anyone within the organization. These files are mostly Microsoft
 Office files (xls, ppt, and doc).

Seems to be a problem which is related to (with? please excuse my  
gerlish) Samba4.

I've seen this error when I run a *.cmd file under Samba 4.06 (Samba3  
mode).
Running the same file under Samba 3.6.8: no problem.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] samba3/4: libpopt version

2013-05-16 Thread Helmut Hullen
Hallo,

I'm just playing with samba-4.0.5 (slackware), running as samba3 (and  
replacing/updating samba-3.6.x).


Seems to work fine - many thanks!

Perhaps one problem: when I start the server or when I run smbclient -N  
-L hostname (and perhaps with some other start commands) then samba  
tells me

smbclient: /usr/lib/libpopt.so.0: no version information available  
(required by smbclient)
smbclient: /usr/lib/libpopt.so.0: no version information available (required by 
/usr/lib/libpopt_samba3.so)

My actual slackware distribution comes with popt-1.16.

Is that message only a remark, or is it a warning, or is it an error  
message?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] missing libgnutls.so.26

2013-04-12 Thread Helmut Hullen
Hallo, Phil,

Du meintest am 09.04.13:

[...]

 So I did a bit of looking around and one very interesting thing I
 noticed is that /usr/local/samba/lib no longer has the libgnutls
 files (prefix is /usr/local/samba).

Just for the record: my system (slackware current) has installed

libgnutls-extra.so.26 - libgnutls-extra.so.26.20.0
libgnutls-openssl.so.27 - libgnutls-openssl.so.27.0.2
libgnutls.so.28 - libgnutls.so.28.10.2
libgnutlsxx.so.28 - libgnutlsxx.so.28.0.0

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Accsse Deny

2013-01-20 Thread Helmut Hullen
Hallo, Usuário,

Du meintest am 20.01.13:

 Substituting charset 'UTF-8' for LOCALE
 password:
 lang_tdb_init: /usr/lib/samba/en_US.UTF-8.msg: No such file or
 directory NT_STATUS_ACCESS_DENIED: Access denied (0xc022)

 Why it's returning Access Denied for me ?

As I've told you in the squid mailing list: the main problem is

/usr/lib/samba/en_US.UTF-8.msg: No such file or directory. Your  
machine can't find that file. Why?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Making Linux as client and Windows as server...

2012-12-25 Thread Helmut Hullen
Hallo, Nirmit,

Du meintest am 26.12.12:

 Please tell how to do this as I am not able to make my window as
 server,

Which Linux distribution have you installed on your client?

 Do I need to require to install samba on my windows machine,

No - it is installed. In German it is called Netzwerkumgebung.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Disabling Roaming Profile Support

2012-10-31 Thread Helmut Hullen
Hallo, Jeff,

Du meintest am 31.10.12:

 I have logon drive = in smb.conf but testparm does not report that.

Just try

testparm -sv

Then you can see the actual options (regardless wether they are set in  
smb.conf or not).

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Out of Memory error

2012-09-24 Thread Helmut Hullen
Hallo, Phibee,

Du meintest am 24.09.12:

 In my config, i have:

 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

TCP_NODELAY is the pre-installed option, and the *BUF options are  
really bad, since many years.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Out of Memory error

2012-09-24 Thread Helmut Hullen
Hallo, Phibee,

Du meintest am 24.09.12:

 In my config, i have:
  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

 TCP_NODELAY is the pre-installed option, and the *BUF options are
 really bad, since many years.

 Ok i can delete it, but it's the reason of Out of memory ?

Even if it isn't the reason for oom it's good for some nasty  
behaviour.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] server hardware (was: XP Administrator has no access to shares)

2012-08-20 Thread Helmut Hullen
Hallo, steve,

Du meintest am 20.08.12:

 This is a bit off thread, but could you specify any budget
 hardware/minimum Samba4 DC Samba3 fileserver server requirements for
 a college of 2000 students sharing 150 duel boot KDE/w7?

Where's the problem?
Such configurations need a machine with 2 GHz CPU, 4 GByte RAM and  
(better) 2 or 4 NICs.

No machine with a server label.
Here in germany many schools (especially vocational schools) run Samba  
3.x since many years for more than 1000 pupils and 100 to 200 clients.  
And since many months with private smartphones too (connected via WLAN).

The samba load (for directories on the server) is most times small,  
squid bears a much bigger load (for surfing).

The biggest samba problem seems to be where and how to store the user's  
profile.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] server hardware

2012-08-20 Thread Helmut Hullen
Hallo, steve,

Du meintest am 20.08.12:

 This is a bit off thread, but could you specify any budget
 hardware/minimum Samba4 DC Samba3 fileserver server requirements
 for a college of 2000 students sharing 150 duel boot KDE/w7?

 Where's the problem?
 Such configurations need a machine with 2 GHz CPU, 4 GByte RAM and
 (better) 2 or 4 NICs.

[...]

 Hi Helmut
 Thanks for taking on the thread.
 You give me encouragement in that the hardware requirements seem low.
 In fact we have been using 2 old laptops running from 16GB usb
 pendrives as our replicating DC's serving 10 client boxes no trouble
 at all. I see the main problem (and probably cost too) in the file
 server and redundancy. As the infrastructure is already in place
 (it's a 6 year old installation with cables everywhere) we need to
 make a decision on how to serve, store and backup files.

I prefer rsnapshot, at least on a separate disk (or bundle of disks).  
By the way: RAID is no backup.

 We have a low budget and have looked at raid,

Not necessary.
On schools with about 1000 pupils: install quota. Then you may need  
about 500 ... 1000 GByte HD place.

 a DRDB cluster and just rsyncing
 out to a backup server at regular intervals, switching cables and
 doing an IP takeover when the main fileserver goes down.

Take a look at rsnapshot. It allows online backups. HD place: I start  
with about 3 times the actual /home size (the used size, not the  
installed size).

Please excuse my gerlish.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4: rfc2307 compatibility with Samba3

2012-08-11 Thread Helmut Hullen
Hallo, Andrew,

Du meintest am 11.08.12:

 In Samba3, I have full rfc2307 compliance via winbind where all
 attributes can be obtained from AD.

 In Samba4 I only have partial rfc2307 compatibility with:
 idmap_ldb:use rfc2307 = yes
 uidNumber and gidNumber can be obtained from AD but
 uinxHomeDirectory and loginShell are missing.

[...]

 At this stage, we still don't recommend combining file server and DC
 functions.  By separating these functions onto different (virtual)
 servers, you can avoid this issue.

Sorry - that sounds ugly.
I prefer using samba as a combined system for SOHO (especially for  
schools). And working with several servers (especially virtual servers)  
is not attractive for someone who looks for the server as a second or  
third job, beneath his/her main job.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] 'x' bit always set?

2012-08-01 Thread Helmut Hullen
Hallo, Jonathan,

Du meintest am 01.08.12:

 Seems I can't find the root cause of $subj.
 When I store a file on my home, it gets chmodded ugo+x ...

[...]

 mount your file system with extended attributes
 enabled and then add the following to your smb.conf

 # store DOS attributes in extended attributes
  ea support = yes
  store dos attributes = yes
  map readonly = no
  map archive = no
  map system = no

Just for curiosity (3 years ago Guenter Kukkuk answered to a similar  
question in this mailing list):

what about an additional

   map hidden = no

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Kernel 3.4.6: cifs problem

2012-07-28 Thread Helmut Hullen
Hallo,

I've just tried kernel 3.4.6, self compiled, with the .config from  
kernel 3.3.7.

Samba version 3.5.14 (slackware)

When I run a script with (among many other lines) the command

  mount.cifs //$share/$src /path/to/$target \
-o noperm,sec=ntlmv2,$Loginparms

(which runs without any problem under kernel 3.3.7) then I get an error  
message (some cifs problem), and the script finishes its work.

Where should I look for more informations?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Kernel 3.4.6: cifs problem

2012-07-28 Thread Helmut Hullen
Hallo, Günter,

Du meintest am 28.07.12:

 When I run a script with (among many other lines) the command

   mount.cifs //$share/$src /path/to/$target \
 -o noperm,sec=ntlmv2,$Loginparms

 (which runs without any problem under kernel 3.3.7) then I get an
 error message (some cifs problem), and the script finishes its work.

[...]

 As a workaround sec=nontlm can be used.

It works - thank you!

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Trouble with mount.cifs while smbclient works (Ubuntu 12.04)

2012-05-16 Thread Helmut Hullen
Hallo, Scott_Purcell,

Du meintest am 16.05.12:

 mount.cifs fails (with mount error(13): Permission denied):


  sudo mount.cifs //server/share /mnt/ -o
 credentials=/etc/.smb_creds.txt


Just try

sudo mount.cifs -o ... //server/share ...

mount.cifs needs the options early.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] User's home folders

2012-05-04 Thread Helmut Hullen
Hallo, Stefano,

Du meintest am 04.05.12:

 What tells

   df

 i wrote this script:

 #!/bin/bash
 Login=rw,file_mode=0644,dir_mode=0755,username=zingalo,password=
 ,noserverino smbmount //192.168.5.219/users/zingalo /mnt/samba/Dati

 zingalo is user registered on ldap server. in his homeAttribute i
 wrote //192.168.5.219/users/zingalo.
 Trying the login on my laptop ubuntu 11.10 (client), black screen for
 few seconds and it comes back to login screen without message.

An what tells

df

now?

 I've seen syslog file lines during this operation, if you want please
 take a look. I used pastebin because there are many lines:

 http://pastebin.com/k0dQq6NN


A lot of LDAP messages. I don't use LDAP (and I don't like LDAP). Maybe  
you have to do something with LDAP - I don't know.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] User's home folders

2012-05-04 Thread Helmut Hullen
Hallo, Stefano,

Du meintest am 04.05.12:

 #!/bin/bash
 Login=rw,file_mode=0644,dir_mode=0755,username=zingalo,password=**
 ** ,noserverino
 smbmount //192.168.5.219/users/zingalo /mnt/samba/Dati


 df is

 Filesystem   1K-blocks  Used Available Use% Mounted on
 /dev/sda5 44186760   4459704  37482448  11% /
 udev   1539868 4   1539864   1% /dev
 tmpfs   618748   868617880   1% /run
 none  5120 0  5120   0% /run/lock
 none   1546868   480   1546388   1% /run/shm
 /dev/sda4195262036 186862356   8399680  96%
 /media/44A936374932B99A

Shit - no cifs share mounted. Maybe it's an LDAP problem ...

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] User's home folders

2012-05-03 Thread Helmut Hullen
Hallo, zingalo/Stefano,

Du meintest am 03.05.12:

 Hi,
 yes, home directories are specified in the homeDirectory attribute
 as:

 //amahoro/users/zingalo

That's the samba notation. //$SERVER/$SHARE

 but after logging this creates the same directory on the client and
 this is wrong.

What tells

df


 The home directories must be mounted at login time

No - that's no must. That may be convenient.

 and i wouldn't add
 a line on /etc/fstab for every home of every user on every client!!!

That's correct.

But a simple script should do the job. It should mount the special home  
share via cifs.

Have you tried my proposal?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] User's home folders

2012-05-03 Thread Helmut Hullen
Hallo, zingalo,

Du meintest am 03.05.12:

 yes, home directories are specified in the homeDirectory attribute
 as:

 //amahoro/users/zingalo

 That's the samba notation. //$SERVER/$SHARE

 You mean my notation is wrong?

No - that's one kind of notation.
When this share is mounted then you see this notation in the first  
column of df.

 What tells

  df

 df on the client?

 Filesystem   1K-blocks  Used Available Use% Mounted on
 /dev/sda5 44186760   4018224  37923928  10% /
 udev   1539868 4   1539864   1% /dev
 tmpfs   618748   864617884   1% /run
 /dev/sda4195262036 186862356   8399680  96%
 /media/44A936374932B99A

No samba share is mounted, the client can't access its home share on the  
server.

 But a simple script should do the job. It should mount the special
 home share via cifs.

 Have you tried my proposal?

 i never did a script to do this. I think the script should have some
 variables to recognize username and password typed on login. i don't
 where start!

For the first try just replace the variables with constants, p.e. your  
username (on the server), your password (on the server) etc.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] User's home folders

2012-05-03 Thread Helmut Hullen
Hallo, Daniel,

Du meintest am 03.05.12:

 Try ex.:

 [global]
 logon script = logon.bat  #--your logon.script,if not defined in
 ldap
 logon path = /users#--your path to homes.Leave empty if
 defined in ldap

 [netlogon]
 Path=/path/to/your/netlogon

Just for curiousity: that looks like a mix of DOS and Linux, especially  
with the logon script.

I know the samba.conf for DOS/Windows clients; how and where has it be  
to changed for Linux clients?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] User's home folders

2012-05-02 Thread Helmut Hullen
Hallo, zingalo/Stefano,

Du meintest am 02.05.12:

 I have a computer room with 30 machine Ubuntu and about 200
 differents users.
 So user_1 will logon on client_1 and he will work on
 /usersHomes/user_1 directory.
 Then, the user_2 will logon on the same client and he will work on
 /usersHomes/user_2 directory.

Perhaps you should mount the home directories on the server via cifs.

I use the following script lines (as part of a longer script):

  
Login=rw,file_mode=0644,dir_mode=0755,username=$User,password=$Passwort,noserverino
  mount -t cifs  -o $Login //$Rechner/$1 /mnt/$Rechner/$Verz

By the way (and as mentioned some days ago): you don't need something  
like freeradius for this job.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] SAMBA-FREERADIUS-LDAP

2012-04-26 Thread Helmut Hullen
Hallo, stefano,

Du meintest am 26.04.12:

 The LAN has a computer room with 30 pc Ubuntu.
 In addition to these there are others computers will can connect to
 the LAN using wireless connection and they can have differents
 operating systems (Mac, Windows, Ubuntu).
 I want that every user can connect using a computer of the room or
 his own computer. Every user will be registered on the LDAP server.
 I want that every user will have his home directory on the server and
 not on the client.

We try/evaluate a solution for this problem on/in some schools.
No freeradius, no LDAP.

The clients try to login into the samba domain on the Linux-/Samba  
server, they must have a linux-/samba account on this server. That's  
all.

No Microsoft domain, no machine account or so. Quite simple.

The next probably problem (not related to samba): the server also works  
as a communication server, as a proxy server for surfing. We have  
defined that using the proxy server requires an authentication (with the  
linux account) - it works.

No Microsoft domain, no winbind etc.
The client works as a kind of thin client. It must have an OS which can  
mount samba shares - that's enough.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] SAMBA-FREERADIUS-LDAP

2012-04-26 Thread Helmut Hullen
Hallo, stefano,

Du meintest am 26.04.12:

 I'll do some questions:

 I need that after the power-on of the client, will appear the login
 screen. Is this like your solution also?

No - that's at least impossible for private machines.
Our school machines can show such a screen via autostart (or something  
like this).

 I found many manuals and guide but everyone explain samba
 configuration with windows, hosts, winbind, etc. and am confused
 about it. I don't understand the difference on the configuration
 using not winbind and hosts.

If I have understood the relations (and I'm not sure): you don't need  
winbind if you only use a samba server (and no microsoft server).

 Which proxy server do you have?

We use squid - works fine.

 Did you configured also pam for the login?

No - we use slackware as base distribution, and slackware doesn't need  
pam. But if I have understood the special pam scripts and configuration  
files: may be you don't need to change them.

It's really a quite simple configuration: the server runs samba, and  
samba has an smb domain (p.e. WORKGROUP) and some shares. The clients  
run some application which can mount samba shares. And the user of the  
client must have a linux-/samba account on the server, for logging in,  
for own shares (home), for shared shares (public) etc.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba 3.5: dumping core

2012-02-02 Thread Helmut Hullen
Hallo,

in a neighbourhood school Samba (versions 3.5.7 and 3.5.10) show (for  
only one machine) the following log:

...
[2012/02/02 11:08:34.974139,  0] lib/fault.c:326(dump_core)
  dumping core in /var/log/samba/cores/smbd

[2012/02/02 11:37:33.245678,  0] smbd/sesssetup.c:1401(shutdown_other_smbds)
  shutdown_other_smbds: shutting down pid 18379 (IP 192.168.0.175)
[2012/02/02 11:37:33.245983,  0] lib/bitmap.c:120(bitmap_clear)
  clearing invalid bitmap entry 38480 (of 128)
[2012/02/02 11:37:33.246152,  0] lib/popt_common.c:64(popt_s3_talloc_log_fn)
  talloc: double free error - first free may be at smbd/conn.c:293
[2012/02/02 11:37:33.246188,  0] lib/popt_common.c:64(popt_s3_talloc_log_fn)
  Bad talloc magic value - double free
[2012/02/02 11:37:33.246212,  0] lib/util.c:1468(smb_panic)
  PANIC (pid 18379): Bad talloc magic value - double free
[2012/02/02 11:37:33.248340,  0] lib/util.c:1572(log_stack_trace)
  BACKTRACE: 24 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x2d) [0x403665ad]
[2012/02/02 11:37:33.249043,  0] smbd/sesssetup.c:1401(shutdown_other_smbds)
   #1 /usr/sbin/smbd(smb_panic+0x2d) [0x403666cd]
  shutdown_other_smbds: shutting down pid 18379 (IP 192.168.0.175)
   #2 /usr/sbin/smbd(+0x6af90a) [0x406af90a]
   #3 /usr/sbin/smbd(_talloc_free+0xbe) [0x406af83e]
   #4 /usr/sbin/smbd(+0xb60c7) [0x400b60c7]
   #5 /usr/sbin/smbd(+0x138018) [0x40138018]
   #6 /usr/sbin/smbd(+0x6af5d2) [0x406af5d2]
   #7 /usr/sbin/smbd(+0x13737c) [0x4013737c]
   #8 /usr/sbin/smbd(+0x6af551) [0x406af551]
   #9 /usr/sbin/smbd(+0x6ad198) [0x406ad198]
   #10 /usr/sbin/smbd(+0x6ad7c0) [0x406ad7c0]
   #11 /usr/sbin/smbd(+0x6adbfb) [0x406adbfb]
   #12 /usr/sbin/smbd(messaging_dispatch_rec+0x53) [0x40344e23]
   #13 /usr/sbin/smbd(+0x346e3d) [0x40346e3d]
   #14 /usr/sbin/smbd(tevent_common_check_signal+0x190) [0x4037a740]
   #15 /usr/sbin/smbd(run_events+0x26) [0x40377cc6]
   #16 /usr/sbin/smbd(smbd_process+0x9c1) [0x40125391]
   #17 /usr/sbin/smbd(+0x6ad9fc) [0x406ad9fc]
   #18 /usr/sbin/smbd(run_events+0x1f5) [0x40377e95]
   #19 /usr/sbin/smbd(+0x37809b) [0x4037809b]
   #20 /usr/sbin/smbd(_tevent_loop_once+0x98) [0x40378dd8]
   #21 /usr/sbin/smbd(main+0xd7a) [0x406ae9ba]
   #22 /lib/libc.so.6(__libc_start_main+0xe6) [0x40a25db6]
   #23 /usr/sbin/smbd(+0x995c1) [0x400995c1]
[2012/02/02 11:37:33.661736,  0] lib/fault.c:326(dump_core)
  dumping core in /var/log/samba/cores/smbd

-

Who or what can produce these messages?

(I don't yet know what that machine wants to do ...)

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] smbpasswd not working

2012-01-19 Thread Helmut Hullen
Hallo, John,

Du meintest am 20.01.12:

 root@hayek:~# smbpasswd john
 New SMB password:
 Retype new SMB password:
 Failed to find entry for user john.

 This is despite the existence of the user
 root@hayek:~# cat /etc/samba/smbpasswd
 #
 # SMB password file.
 #
 nobody:65534::XXX
 X:[U ]:LCT-:nobody
 john:1000::XX
 XX:[U ]:LCT-:John Tate,,,

Tells

pdbedit -Lw -u john

the same contents?
And - please - don't show this contents (at least the unchanged  
contents); it's very simple to restore the original password from this  
contents.

Additional (related to Volkers answer): what tells

testparm -sv 2/dev/null | grep backend

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba-server, windows7-clients, server-hostname

2011-12-30 Thread Helmut Hullen
Hallo, luxInteg,

Du meintest am 30.12.11:

 I have setup a computer to act as a  'samba-server'.  The machine has
 these:- --cpu: amd64
 --OS: cblfs linux
 --samba-3.6.0  compiled from sources in /usr/local/samba

 The clients are windows 7 clients.  They can  only see the server as
 its IP- address not a name/hostname.


 QUESTION:
 
 Are there entries to be made in smb.conf to enable the smbserver to
 be seen as its hostname/or-any-other-name rather than by its
 IPaddress?


On the clients:
What tells

ping IP-address
ping Server-name

net view \\IP-address
net view \\Server-name

If net view \\Server-name fails with system error 53 then the  
problem is/may be related to the server's name server.

If even ping Server-name fails then it's no samba problem but looks  
like a name server problem.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba passwd

2011-12-26 Thread Helmut Hullen
Hallo, Rajesh,

Du meintest am 26.12.11:

 In which file the user entry and password is stored when i added a
 user using
 smbpasswd  -a username
 in redhat enterprise linux 6 (64bit)

That depends - what tells

  testparm -sv 21 | grep 'passdb backend'

If you only will see the result of smbpasswd -a username:

pdbedit -L -u username
pdbedit -Lv -u username

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] logon scripts and variable substitution on the windows side

2011-12-17 Thread Helmut Hullen
Hallo, nikos,

Du meintest am 17.12.11:

 i am really wondering a logon script stated in the config file with
 for example logon script = %L.bat

 can't contain inside variable substitutions from samba for example

 a script that it will have inside and it will be uploaded in the
 client to contain

 net use z: \\%L\%u to be translated to net use z: \\SERVER\username

If I have understood the system(s):

%L is a linux variable on the server,
net use is (mostly) a command which is run from/on a client (windows  
or Linux) which knows nothing about the servers'/samba's variables.

For those purposes I run on the server (in the home share) a command

root preexec = /etc/samba/exec/parameter %u %a %g %m

which runs the linux/bash script parameter, and parameter writes a  
(windows) batch file into the user's home directory which contains lines  
like

@echo off
if a%Server% == a set Server=192.168.0.1
set opsys=WinXP
set group=lehrer
set machine=___192.168.0.42


Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Preserving timestamps with smbclient

2011-11-09 Thread Helmut Hullen
Hallo, Phillip,

Du meintest am 09.11.11:

 I have a backup script that uses smbclient to push files to a Windows
 server and I have noticed that the mtime on the server is the time of
 upload, not the mtime of the original file.  I can not find an option
 to preserve the original mtime.  Does such a thing exist?  Shouldn't
 it do this by default?

cp -a
rsync

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Realtime virus scanning

2011-10-26 Thread Helmut Hullen
Hallo, Ian,

Du meintest am 26.10.11:

 I just came across an interesting question. Is there a way to do
 realtime virus scanning on samba 3.4.7 on ubuntu 10.04.

Maybe there is some way. But it may produce only virtual security.

In the last months I've tested many malware mail attachments, p.e. with  
http://jotti.org;. About 4 hours after sending time perhaps only 10 of  
the 20 scanners which jotti.org uses had found a virus, some scanners  
needed more than 24 hours for updating their signature file.

When you use an online scanner than you can be sure it doesn't detect  
really new malware - you have to use some other tool for searching such  
malware.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] how to upgrade to samba 3.6.0

2011-08-12 Thread Helmut Hullen
Hallo, Christian,

Du meintest am 11.08.11:

 I am running a version of ubuntu lucid 64 bit, and so will be
 upgrading with the apt-get program.

 Well, I have no idea what are plans for Ubuntu (you don't tell what
 version you're usingsounds like 8.04) but I don't think there
 will be official upgrades to 3.6 in that version of the distro.

What about

   http://ftp.sernet.de/pub/samba/3.6/src/rpm/samba3-3.6.0-44.src.rpm

and then compiling it to the actual binary?

 So, you're either on your own rolling out your own packages or local
 buildsor play russian roulette by using a random repository from
 random people who backport packages:-)

Shock and awe?

 Or you can just continue using the quite rock solid version you have
 right now.

rock solid is often used for antique, for petrified.

I'm using another distribution which now offers samba 3.5.10 - it works  
fine.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] reading write list from a file

2011-07-15 Thread Helmut Hullen
Hallo,

for a school server I'd like the option

write list = /path/to/class-8a-list

for the share [class-8a]

Ok - I can work with

  [class-8a]

...
include /path/to/writelistdefinition.txt
...

but that's more ugly.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] reading write list from a file

2011-07-15 Thread Helmut Hullen
Hallo, Chris,

Du meintest am 15.07.11:

 for a school server I'd like the option

        write list = /path/to/class-8a-list

 for the share [class-8a]


 why not use a user group?

The simple class list still exists, for mail aliases. It's very simple  
to change if necessary.

Why should I install an additional Linux group for a problem which is  
only related to Samba?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] reading write list from a file

2011-07-15 Thread Helmut Hullen
Hallo, Jeremy,

Du meintest am 15.07.11:

 for a school server I'd like the option

 write list = /path/to/class-8a-list

 for the share [class-8a]

 Ok - I can work with

   [class-8a]

 ...
 include /path/to/writelistdefinition.txt
 ...

 but that's more ugly.

 Well, patches welcome for that :-). Shouldn't be too
 hard, we already have all the infrastructure.

Sounds very nice!

 Change the write list code to check for a leading '/' then
 open that path.

Yes - that's the way squid uses (too).

By the way: may be there's a problem for Samba notifying changes in such  
a file.
Changing an include file is notified (and that's fine).

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] reading write list from a file

2011-07-15 Thread Helmut Hullen
Hallo, Jeremy,

Du meintest am 15.07.11:

 for a school server I'd like the option

 write list = /path/to/class-8a-list

 for the share [class-8a]

 Ok - I can work with

   [class-8a]

 ...
 include /path/to/writelistdefinition.txt
 ...

 but that's more ugly.

 Well, patches welcome for that :-). Shouldn't be too
 hard, we already have all the infrastructure.

Just an additional wish:

smb.conf wants

write list = Peter Paul Mary Puff

(all in one line).
An included text file is more simple to produce and to maintain in the  
form

Peter
Paul
Mary
Puff

If you (or someone else) adds this kind of list options: may you please  
include this kind of separator? Thank you!

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Braindead Autoreply filters... WAS Re: samba Digest, Vol 102, Issue 8

2011-06-09 Thread Helmut Hullen
Hallo, Charles,

Du meintest am 09.06.11:

 This should be official list policy for ALL email lists...

 just like do not top post *g ?

 Don't be stupid Robert... there are times when top-posting is
 perfectly acceptable, and that was one of them (ie, when the content
 of the quote is irrelevant).

When it's irrelevant it's not necessary to quote it.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Strange problem with my new PDC

2011-05-20 Thread Helmut Hullen
Hallo, Marc,

Du meintest am 19.05.11:

 You can find two Logfiles in the attached archive. One's named
 Success.log and the other one Failing.log.

No - this mailing list doesn't support such attachments. Try inline  
copies.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist

2011-05-09 Thread Helmut Hullen
Hallo, Chris,

Du meintest am 08.05.11:

 information for NetBIOS and WINS.
 And fix the name resolve order in
 smb.conf (you have a typo - hosts instead of host).

 
 In smb.conf:
 
 name resolve order = wins host bcast
 

host and hosts are allowed.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] smbclient doesn't work from cron

2011-04-26 Thread Helmut Hullen
Hallo, Jeronimo,

Du meintest am 26.04.11:

 /usr/bin/smbclient windows-server\backup db$ -U jelo 123456 -c
 lcd /root;put mysql-dump.sql

 But when I try to run the same command from /etc/crontab, it fails:

 00 10   * * *   root/usr/bin/smbclient
 windows-server\\backup db$ -U jelo 123456 -c lcd /root;put
 mysql-dump.sql

 I tell you I've restarted cron daemon and it always fails.

 What's wrong in cron line ???

One simple way to test the many problems (none of them a samba problem):  
make a simple (executable) shell script and let cron call this shell  
script.
By the way: smbclient should accept / as delimiter instead of the  
windows delimiter \. That makes such lines more reliable.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] FW: ACL Lost and unable to set rights from explorer (xp)

2011-04-02 Thread Helmut Hullen
Hallo, L.P.H.,

Du meintest am 02.04.11:

 Ok problem 2 is solved, made a typo in disabling the unix extentions.

 this works.
 (in global)
 unix extentions = no

Sure?

My samba (3.5.7) uses unix extensions, with 1 t.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] converting smbpasswd to passdb.tdb - machine accounts

2011-03-29 Thread Helmut Hullen
Hallo,

I'm trying to convert smbpasswd to passdb.tdb.

   cd /etc/samba/private
   # (where smbpasswd lies)
   pdbedit -i smbpasswd -e tdbsam:/etc/samba/private/passdb.tdb

converts all human users, but it converts (or transfers) no machine  
account.

In smbpasswd are many entries beginning with (p.e.)

mac001$

for these accounts,

   pdbedit -L -v | grep -i mac

shows no such entry.

What goes wrong?
Samba 3.5.7

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Urgent: Unable to change owner of the file through smbcacls

2011-03-24 Thread Helmut Hullen
Hallo, Katariya,

Du meintest am 24.03.11:


 I am unable to change owner to Administrator of the file through
 smbcacls command.



 CIFS share is in french domain.



 SMBACLS for the file are:

 ==

 smbcacls -n //10.10.18.19/Rahulk\ test /test.txt -U
 es1kr\\USERNAME%PASSWORD

 REVISION:1

 OWNER:ES1KR+èçæreg;ôû

 GROUP:ES1KR+Utilisa. du domaine

 ACL:+Tout le monde:DENIED/0/0x000d0116

 ACL:ES1KR+èçæreg;ôû:ALLOWED/0/FULL


No ASCII - is that the problem?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working

2011-03-24 Thread Helmut Hullen
Hallo, Katariya,

Du meintest am 24.03.11:

 I have French CIFS server.

[...]

 mount -t cifs //MACHINE/DatasetFIGS_ùÉ??ÄÑ£??¬nbsp; /tmp/rahul
 -o user=ùù,password=ùù,domain=eKKDr mount error 13 = Permission
 denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
 nbsp;

 Does CIFS supports non-ascii password?

Maybe it's not only a problem with the password; the path seems to be  
non-ASCII too.

And non-ASCII has many representations - not only UTF-8.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Announce] Samba 3.5.7, 3.4.12 and 3.3.15 Security Releases Available

2011-03-18 Thread Helmut Hullen
Hallo, Eckert,,

Du meintest am 17.03.11:

 Can I go directly from 3.4.7 to the new 3.5.8 without installing
 any intermediate versions? Or is there a different route I should
 follow?

Should work. I've done this update/upgrade many times, without problems.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba4 won't compile

2011-03-13 Thread Helmut Hullen
Hallo,

I've just tried to compile Samba 4.0.0alpha14 under Slackware 13-current  
- it failed.

206 warnings, 257 errors, and last famous words

 cite on ---

[2152/2374] Linking default/source4/heimdal_build/libroken-samba4.so
[2153/2374] Linking default/source4/heimdal_build/libasn1-samba4.so
/lib/libcom_err.a(error_message.o): In function `et_list_unlock':
error_message.c:(.text+0x20): undefined reference to `sem_post'
/lib/libcom_err.a(error_message.o): In function `fini_et_lock':
error_message.c:(.text+0x3e): undefined reference to `sem_destroy'
/lib/libcom_err.a(error_message.o): In function `setup_et_lock':
error_message.c:(.text+0x6e): undefined reference to `sem_init'
/lib/libcom_err.a(error_message.o): In function `et_list_lock':
error_message.c:(.text+0x9d): undefined reference to `sem_wait'
collect2: ld returned 1 exit status
Waf: Leaving directory `/tmp/samba-4.0.0alpha14/source4/bin'
Build failed:  - task failed (err #1):
{task: cc_link 
asn1_rfc2459_asn1_65.o,der_get_60.o,der_put_60.o,der_free_60.o,der_format_60.o,der_length_60.o,der_copy_60.o,der_cmp_60.o,extra_60.o,timegm_60.o,asn1_err_60.o,asn1_cms_asn1_80.o,asn1_krb5_asn1_70.o,asn1_pkinit_asn1_75.o
 - libasn1-samba4.so}
make: *** [all] Error 1

 cite off ---

The complete log (about 23 kByte) is downloadable at

   http://helmut.hullen.de/filebox/Linux/s4.log.bz2

Build options:

Prog=samba

./configure --prefix=/usr \
--sysconfdir=/etc/$Prog \
--localstatedir=/var/lib/$Prog \
--enable-fhs

# ---

Where's the problem?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Can you see this letter.

2011-03-08 Thread Helmut Hullen
Hallo, Kalev,

Du meintest am 08.03.11:

 ive tried to send letters to samba list few times and every time i
 get a mail back with an error Message status - undeliverable from
 mailer-dae...@mthelen7.ballarat.edu.au. The contents of the letter is
 following:

 The message that you sent was undeliverable to the following:

   Mdelves (User account is expired)

That's not related with Samba - the administrator of  
mthelen7.ballarat.edu.au has misconfigured his system.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba 3.5!

2011-03-06 Thread Helmut Hullen
Hallo, Paulo,

Du meintest am 17.02.11:


 I would take a little doubt, installed the Samba 3.5. And where is
 the file smbpasswb? I know, it is in  /etc/samba/ , but it isn't
 there!

Look for passdb.tdb instead.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Access to a share resource without password

2011-03-01 Thread Helmut Hullen
Hallo, J.,

Du meintest am 01.03.11:

 testparm output:

 [global]
 workgroup = CASA
 map to guest = Bad User
 passdb backend = tdbsam
 username map = /etc/samba/smbusers
 cups options = raw

 (I put security = user but is not displayed in testparm)

There's a big difference between testparm and testparm -v; the -v  
option shows what is, including the defaults.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Access to a share resource without password

2011-02-25 Thread Helmut Hullen
Hallo, Chris,

Du meintest am 25.02.11:

 1) The Linux local user guest must be added to samba with
 smbpasswd -a guest ???

 In the example I show their is no local 'nix user named guest. The
 purpose of the username map file is to map the Windows guest
 user/account to the 'nix nobody user/account - this (nobody) is
 typically, in the distros I have run across, the 'nix default guest
 account (no login privileges necessary).

Have I to add nobody to the samba password file?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] What to backup on PDC with security=user

2011-02-16 Thread Helmut Hullen
Hallo, Robert,

Du meintest am 16.02.11:

 Burned once and all that.  I am setting up rsync cron jobs to back up
 what I would need to completely rebuild the server.

 My PDC is running with security=user.  I know I have to backup:

 /home
 /netlogon
 /profiles
 /etc/passwd (and shadow, how to do this with rsync?)
 /etc/groups (ditto)

 What else?

Command:
net getlocalsid  localsid.txt

Files:
 /etc/samba/private/passdb.tdb
 /etc/samba/private/secrets.tdb
 /etc/samba/smb.conf

(and/or perhaps the whole /etc/samba directory)

Do you use LDAP? Then there ist still more to backup.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] What to backup on PDC with security=user

2011-02-16 Thread Helmut Hullen
Hallo, Robert,

Du meintest am 16.02.11:

 Burned once and all that.  I am setting up rsync cron jobs to back
 up what I would need to completely rebuild the server.

[...]

 What else?

 Command:
  net getlocalsid  localsid.txt

 And on a rebuild, how do I use this sid instead of whatever a new
 system creates?

Command:

net setlocalsid localsid

The simpliest way to get the parameter localsid is looking into the  
above file localsid.txt; the SID starts with S-1.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Problems with Windows7-Clients and Samba-Shares

2011-02-10 Thread Helmut Hullen
Hallo, Sabine,

Du meintest am 10.02.11:

 The logoff from the network shares on the Windows 7 clients is
 realised by a simple net use * /d /yes

But you can't assure that every user disconnects via this command.

[logon]

 The little programm sends username
 und password to the server and the server creates then the *.bat file
 with the net use-command to connect the shares. To do so the
 connection uses the linux-server ip adress e.g.
 \\10.94.1.3\login$\connect.exe and user nobody as guest. The
 created *.bat file contains the net use commands as
 \\servername\share with the username and individual password.

Windows is a multitasking system. Subsequent lines in a *.bat or *.cmd  
may be executed nearly parallel.

To avoid that you should work with start /w ..., p.e.

   start /w net use * /del /yes

   start /w net use u: \\%SERVER%\%USERNAME%

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] cooperation with samba?

2011-02-09 Thread Helmut Hullen
Hallo, Simon (and Andrew),

Du meintest am 08.02.11:

 in the samba mailinglist there was a remark that samba 4 is designed
 only for the BIND nameserver; look escpecially at

   http://lists.samba.org/archive/samba/2011-February/160848.html

 I know that most programmers work in their free time (me too). But
 I don't like working with the ISC DNS, and I'd like working with
 dnsmasq under samba 4 too.

 My understanding of the situation is that full integration with AD
 requires support for dynamic DNS and the ability to update DNS zones
 with a fair variety of esoteric record types. To provide that sort of
 facility in dnsmasq would require re-writing and generalising a lot
 of code.

[...]

But what about people who want to use Samba without ADS, perhaps far  
away from a Windows environment? It's more simple to configure, it  
doesn't need specially trained operators.

What about Samba 4 light for SOHO?

I prefer using cifs instead of nfs, p.e., even in a LAN only with Linux  
clients. And there's no need for an ADS. There's no need for a DNS  
monster like ISC bind.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] archive in the future

2011-02-08 Thread Helmut Hullen
Hallo, samba,

the mailinglist archive shows some articles from the future:

  http://lists.samba.org/archive/samba/

I'm impressed!

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] understanding users mapping

2011-02-03 Thread Helmut Hullen
Hallo, fdelval,

Du meintest am 03.02.11:

 I dont want to use root to join clients to the domain; i prefer
 creating a plain user.

Look at admin users in [global, file /etc/samba/smb.conf.

There you can define which linux user is allowed to do this job.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] understanding users mapping

2011-02-03 Thread Helmut Hullen
Hallo, fdelval,

Du meintest am 03.02.11 zum Thema Re: [Samba] understanding users mapping:

 now i have like 3 ways of achieving what i want.

 1) username map = /etc/samba/smbusers (linking users to root)

 2) admin users = frank

 3) messing up with my netgroups and granting rights


 Which one should i use?

I prefer admin users in the smb.conf. Don't know wether it is the  
best of all possible solutions.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Double user name

2011-02-03 Thread Helmut Hullen
Hallo, Robert,

Du meintest am 03.02.11:

 I have two samba servers running Ubuntu 10.04 Samba Version 3.4.7
 One server acts as domain controller and stores user ids in a .tdb

 Somehow I've ended up with a duplicate user name.

 On the Domain Controller

 # pdbedit -w -L|grep debbie
 debbie:1005::84DEC6FE3B018B0FB977EDDF
 5009742C:[U ]:LCT-4D4B086F:

Looks like no valid password.

 On the other Server running winbind I get

 # getent passwd|grep debbie
 debbie:*:10025:10001::/home/ATLANTA/debbie:/bin/bash
 LOUISE\debbie:*:10055:10232::/home/LOUISE/debbie:/bin/bash
 LOUISE\thelma\debbie:*:10056:10232::/home/LOUISE/thelma\debbie:/bin/b
 ash

Looks like no valid password too.
Do you use LDAP?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Seperate BIND server for Samba 4

2011-02-03 Thread Helmut Hullen
Hallo, Andrew,

Du meintest am 04.02.11:

 Just for curiousity: I prefer dnsmasq as nameserver; do you support
 this program too?

 No.  BIND is the only server that will support the range of functions
 Samba requires.

That doesn't please me - sorry.

 I know BIND has a bad name in some minds, but we did look and there
 is no suitable alternative.  I also don't think BIND deserves the
 reputation it has gained, but that's just my opinion.

Perhaps you should ask at least the maintainer(s) of dnsmasq for some  
additions. ISC-named is a monster.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Seperate BIND server for Samba 4

2011-02-02 Thread Helmut Hullen
Hallo, Andrew,

Du meintest am 03.02.11:

 Is it possible to use a seperate BIND server instead? I'd like to
 not run BIND on my file server.

 This isn't recommended.  In future versions of Samba4, we will
 support BIND 9.8 and a plugin that will directly read and write our
 database, to support GSSTSIG dynamic updates and to allow multiple
 DNS servers in the domain.  This will need to be on a real DC.

Just for curiousity: I prefer dnsmasq as nameserver; do you support this  
program too?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] PDC broke after upgrade

2011-01-17 Thread Helmut Hullen
Hallo, Mat,

Du meintest am 17.01.11:

 Samba 3.5.6 uses tdbsam, earlier versions have used smbpasswd;
 you should look which file (smbpasswd or passdb.tdb) your old
 version has used.
 For converting you can use pdbedit.

   Danke, I will check this I am sure that is the problem as
   I was
 using smbpasswd.  Will pdbedit convert my smbpasswd file to tdbsam?



If your distribution puts smbpasswd into /etc/samba/private:


pdbedit -i smbpasswd:/etc/samba/private/smbpasswd -e 
tdbsam:/etc/samba/private/passdb.tdb


It's a very good idea to first look into the directory and look at the  
timestamps of source and target file ... the pdbedit command overwrites  
existing files.

  Or did the upgrade convert smbpasswd to  tdbsam and all I
 need to do is change my smb.conf?

I can't see what has happened.
Which timestamp has your smbpasswd, which timestamp has your  
passdb.tdb?

Or do you use LDAP? Then perhaps your system wants to use the LDAP crap  
as password backend.

You can define your special backend in the [global] part of your  
smb.conf.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] PDC broke after upgrade

2011-01-16 Thread Helmut Hullen
Hallo, Mat,

Du meintest am 16.01.11:

 I upgraded from Debian Lenny (Samba 3.2.5) to Squeeze (Samba 3.5.6)
 and now my PDC does not work.

 In the past when upgrading from one release to another all of the
 machine trust accounts no longer worked but I was able to just rejoin
 then to the domain.  Now however the join fails with unknown user and
 bad password.  I have always used root and roots password what am I
 missing?  What changed between these 2 releases?

What tells

testparm -s 2/dev/null | grep passdb
testparm -sv 2/dev/null | grep passdb

The first line tells what is defined in the smb.conf, the second tells  
all pre-defined options too.

Samba 3.5.6 uses tdbsam, earlier versions have used smbpasswd; you  
should look which file (smbpasswd or passdb.tdb) your old version  
has used.
For converting you can use pdbedit.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Problem: how to make users use unique passwords

2011-01-13 Thread Helmut Hullen
Hallo, Konstantin,

Du meintest am 13.01.11:

 I have also added a call to cracklib to check password strength prior
 to applying it. It all works well, but the task it to force users to
 use unique password every time they have to change it. A typical
 scenario I must prevent is this: user change the password for
 anything temporary, then changes it back to the one it used (or to a
 password slightly different from the one having been used).

 Could someone suggest an existing tool to integrate into
 smbldap-passwd to prevent using similar or the same passwords?

Good luck.
It's very simple to crack samba passwords ...

First you convert (with root rights) the LDAP passdb data to smbpasswd,  
and then you run ophcrack.

I've done this work on some systems; cracking 400 passwords needed about  
4 hours (on slow machines).
Yes - I had the rights to do the job ...

--

It's no samba problem, it's an NTLM problem (a Microsoft problem).

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba migration to a new server

2011-01-13 Thread Helmut Hullen
Hallo, Henri,

Du meintest am 13.01.11:

 What is the best way to proceed to make this migration as seamless
  as
 possible for all users (more than 200 user accounts with more than
 200 PC in the domain) ?

  My usual way:

  - copy/overwrite /etc/samba to the new machine
  - copy/overwrite all user account and all machine account
  informations (especially in /etc/passwd and /etc/shadow) to the
  new machine

  - Stop samba on both machines
  - Shut off all Clients (that may be a bit neurotic ...)
  - start samba on the new machine

  - Start one client for testing

  - if ok: start the other clients

 I have done a similar test some weeks ago without success. The client
 I tested have lost the Domain membership but I am not sure it was
 shutdown at the moment I switched from old to new server.
 In your case, has your new server a different DNS Name , IP address
 and netbios name from the old one ?

The new server replaces the old. It runs with the copied /etc/samba  
directory, especially with the same /etc/samba/smb.conf. And with the  
sam IP address and DNS name.

 Actually, if there are only a few clients that have to be manually
 rejoinded to the domain, it could be acceptable.

In other cases (don't remember what the special difference was) it was  
necessary to

- boot the client local as administrator
- leave the domain
- restart (local, as administrator)
- join the domain

In the above mentioned case that wasn't necessary (and that system has  
about 200 clients ...)

 The *ABSOLUTE*
 condition is that every users keep their windows profile (so their
 Domain SID I guess) once the switch has occurred.

You have to copy
- /home/user
- /etc/passwd
- /etc/shadow
- /etc/samba/private (with its *.tdb)

And if the user's profile is no part of his home directory it has to be  
copied too.

---

In the above mentioned case we first had to change from

passdb backend = smbpasswd:/etc/samba/private/smbpasswd
to
passdb backend = tdbsam:/etc/samba/private/passdb.tdb

Long time ago smbpasswd was the default, but now passdb.tdb is the  
default.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba migration to a new server

2011-01-12 Thread Helmut Hullen
Hallo, henri,

Du meintest am 12.01.11:

 Is it possible to migrate Samba to a new server without breaking
 Domain membership of all the clients ?

 I didn?t get any info on that issue, is there someone that has
 previous experience of doing that ? Or maybe a link to some relevant
 info ?

 I have currently a Samba 3.5.6 server that acts as a PDC and print
 Server, with tdbsam backend, no LDAP at all, no roaming profile. I
 have to migrate samba to a new server. Everything (Samba release,
 Domain Name, shares, ...) will remain the same except for the DNS
 name and IP address of the server, and the samba server netbios name.

 What is the best way to proceed to make this migration as seamless as
 possible for all users (more than 200 user accounts with more than
 200 PC in the domain) ?

My usual way:

- copy/overwrite /etc/samba to the new machine
- copy/overwrite all user account and all machine account informations  
(especially in /etc/passwd and /etc/shadow) to the new machine

- Stop samba on both machines
- Shut off all Clients (that may be a bit neurotic ...)
- start samba on the new machine

- Start one client for testing

- if ok: start the other clients

Last friday a colleague and I have done these steps once more,  
successfully.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba migration to a new server

2011-01-12 Thread Helmut Hullen
Hallo, Mike,

Du meintest am 12.01.11:

 Thank you too, for your kind response.

Don't mention ...

By the way: that description assumes that the new server is the new  
login server too and runs instead of the old server.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Please Help me (share linux to MS-DOS)

2010-12-06 Thread Helmut Hullen
Hallo, TAKAHASHI,

Du meintest am 03.12.10:

 I want to share( Map as drive) Linux folder to Windows.If posible
 share to MS-DOS operating system

 You can connect from MS-DOS to Samba with LAN Manager or
 MS Network Client.

 They are still available from Microsoft at
 ftp://ftp.microsoft.com/bussys/Clients/LANMAN/
 or ftp://ftp.microsoft.com/bussys/Clients/MSCLIENT/

 Also you have to need proper device driver of your network adapter
 for MS-DOS.

Perhaps he has to switch password encryption to

encrypt passwords = no

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] windows 7

2010-11-29 Thread Helmut Hullen
Hallo, Stefan,

Du meintest am 29.11.10:

 A little off-topic (as I don't use LDAP with samba in my particular
 case), but regarding Win7 and Samba-PDC:

 Could someone here please tell me/us what the current recommended
 best practise is for using Win7-clients with a Samba PDC?

http://arktur.de/FAQ/content/38/213/de/domaenenanmeldung-bei-windows-7.html

Especially:

http://bolug.uni-bonn.de/archive/mailinglisten/html/SchAN-User/2010-11/msg00040.html

It's all in german, but I suppose that's no problem for you.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] WG: CTDB and PDC Role

2010-11-02 Thread Helmut Hullen
Hallo, Volker,

Du meintest am 02.11.10:

 Although the concepts of Primary and Backup
 Domain Controller are a lot less relevant in a full Active
 Directory Domain. All domain controllers are equal for most
 purposes.

Animal farm?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] INCLUDEs in smb.conf

2010-10-21 Thread Helmut Hullen
Hallo, Robert,

Du meintest am 21.10.10:

 Do I need a separate INCLUDE in each section, or can I have one
 INCLUDE at the end and just include needed sections?

include replaces the calling line with the lines of the invoked  
file.

You can put many include lines into the smb.conf. At nearly(?) every  
place.

Please excuse my gerlish ...

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba 3.6 startup configuration

2010-10-17 Thread Helmut Hullen
Hallo, Derek,

Du meintest am 17.10.10:

 I have compiled and installed Samba 3.6 from git to a separate
 directory for testing.  Now that everything is operating, I would
 like to start Samba at the boot-up of the server.  The installation
 did not configure Samba to start automatically, and I wondered if
 there is a startup script I could use.  I thought that the
 build/compile process would generate the required scripts but I have
 not found them.

That depends - every distribution goes its own way. Which distribution  
do you run, which path options have you used when compiling?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Helmut Hullen
Hallo, Gilles,

Du meintest am 29.07.10:

 So what's the correct way on Ubuntu 10.04 to (re)start Samba,
 including smbd and nmbd?

If the daemons run and only need to re-read the smb.conf:

killall -HUP smbd
killall -HUP nmbd

on Linux machines.
I know - there are some Unix machines beyond Linux where killall does  
work in a slightly other way than on Linux.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Problem re-writing on a SAMBA share.

2010-07-27 Thread Helmut Hullen
Hallo, Mark,

Du meintest am 26.07.10:

 I set up a Slackware 13 file server running Samba 3.2.13.

Perhaps you first change to Samba 3.5.2 from Slackware 13.1 or to Samba  
3.5.3 from slackware-current.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Set ACLs on Samba share from Windows

2010-07-08 Thread Helmut Hullen
Hallo, Dadoo,

Du meintest am 08.07.10:


 #testparm -v | grep acl 

 acl compatibility = auto
 acl check permissions = Yes
 acl group control = No
 acl map full control = Yes
 force unknown acl user = No
 nt acl support = Yes
 map acl inherit = No

 testparm gives me the same output.

Just control with

testparm -sv

these options show what Samba does use, not only what is written into  
the smb.conf.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Problem After Upgrade - NT_STATUS_FILE_IS_A_DIRECTORY

2010-07-07 Thread Helmut Hullen
Hallo, Leandro,

Du meintest am 07.07.10:

 The problem with simply moving the files over to the
 Ubuntu server is that the files on the XP box are
 stored on a RAID array that comes with a controller
 card whose driver is really only designed to be run on
 Windows, not Linux.

Sorry - where is the problem?
You can access these shares via cifs and copy them to every place on the  
Ubuntu machine you may want.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] sambaLogonScript problem

2010-07-03 Thread Helmut Hullen
Hallo, Leonardo,

Du meintest am 03.07.10:

 My scripts consist only im mapping network folders.

[...]

 Hmm, it looks like that there are no users running the scripts
 partially. What happens is some users that have manually mapped their
 drives. None of the users are really running the scripts.

Are their machines fixed to Domänenanmeldung (I don't know the english  
expression)? That is one way to put the client into the LAN, it's not  
the only way.
And if the users have the administrator rights on their clients they can  
choose some other way ...

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Forum vs. Mailing List?`!

2010-06-30 Thread Helmut Hullen
Hallo, Tom,

Du meintest am 30.06.10:

 No I do not want any commercial support. I want structured
 information at my fingertips :-)

You get what you pay for.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Forum vs. Mailing List?`!

2010-06-30 Thread Helmut Hullen
Hallo, Tom,

Du meintest am 30.06.10 zum Thema RE: [Samba] Samba Forum vs. Mailing List?`!:

 No I do not want any commercial support. I want structured
 information at my fingertips :-)

 You get what you pay for.

 With all respect, but what you write to me sounds like irony against
 the whole open source  community idea.

Not against the idea - only against you.

 I certainly DO think that well structured information is something
 that an open source community is very well able to provide.

I agree. But that isn't related to forums. And structuring information  
is work. Someone has to do it.

Don't cry for other people's work, do it yourself. Or pay for it.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Forum vs. Mailing List?`!

2010-06-29 Thread Helmut Hullen
Hallo, Tom,

Du meintest am 30.06.10:

 I wanted to ask if there is an official Samba Forum



 No need?

 Why do you need a forum with a mailing list?



 Because a forum IMHO has certain advantages over a mailing list.

But you should first try to use the possibilities of a mailing list -  
beginning with reply to when you answer to Linda's mail.

It's no good behaviour starting a new thread instead.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] gecos?

2010-06-15 Thread Helmut Hullen
Hallo, Neil,

Du meintest am 15.06.10:

 This has always bothered me.. wtf does gecos mean (in the samba
 ldap)?

General Electric Computer Operating System.

They invented the GECOS field in the /etc/passwd file. Long time  
ago.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Spurious data in file retrieved from Windows share via Samba

2010-05-21 Thread Helmut Hullen
Hallo, Robert,

Du meintest am 21.05.10:

 I am using Samba to read a file on a Windows share from Linux.
 Linux version is Ubuntu 9.04 (I think). Not sure about the Samba
 version (sorry, can't check it now); it's whatever was packaged with
 Ubuntu. Windows version is Windows Server 2003 SP 2.

 Sometimes the file contains obviously spurious data such as
 random bytes, and excerpts of programs or log files.

[...]

 The file is updated every few minutes on the Windows side
 (new lines are appended). When I read (via cp) any given version
 of the file, the spurious parts remain the same.

Please try

tail -f /path/to/cifs-file

(stopping with ctrl-c)

just to see if the spurious data vanishes in this way.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] smbclient -k works; mount -t cifs does not

2010-05-04 Thread Helmut Hullen
Hallo, Mike,

tur...@mike-leone.com meinte am 04.05.10 in Samba zum Thema Re: [Samba] 
smbclient -k works; mount -t cifs does not:

 $ sudo mount -t cifs //dual-booter/TestShare /mnt -o sec=krb5
 mount error(2): No such file or directory

 Try using the FQDN of the server in the UNC. For instance:

//dual-booter.dacrib.local/TestShare

 Nothing. I used the FQDN in /etc/fstab, and nothing happens. No error
 listed, but also nothing mounts.

It's no good idea to put a (perhaps not working) mount directive into / 
etc/fstab.

What you want has to work at least in a command line, and then (and  
there) you can see more messages.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Windows 7 Policies????

2010-04-15 Thread Helmut Hullen
Hallo, Timothy,

Du meintest am 14.04.10:

 I am hoping someone can point me in the right direction. I just
 started adding windows 7 to my domain, and my logon scripts are not
 running. They arent even trying to run. How do you enforce policies
 on windows 7? --

Which samba version?
Windows 7 makes some trouble, especially with older samba versions.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] XP clients regularly lost mapped samba share. samba 3.5

2010-03-31 Thread Helmut Hullen
Hallo, live.fx,

Du meintest am 31.03.10:

 I have some complaints from Win XP users.
 Win XP clients regularly lost samba share - mapped as network drive.
 I don`t see any errors in logs.

 1. I have 4 linux machines, with mapped SAMBA 3.5 shares as CIFS. -
 never lost.
 2. Some Windows XP clients have this problem, but some is not.

 Why i ask ? Because the same clients did not lose a mapped network
 drive while was WIN 2003 Server.

How do they lose the connection?
I am working in a (very small) LAN with a Samba 3.4.x server, a Windows- 
2000 client and a Windows XP-Home client.

The Windows 2000 client always loses the working connection and shows  
(in the Windows Explorer) a red colored symbol for the share and  
target in the contents window. Clicking mostly doesn't reconnect.  
searching the computer or net view IP address reconnects.

The XP home client doesn't show such nasty things.

In both cases: no domain connection.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] XP clients regularly lost mapped samba share. samba 3.5

2010-03-31 Thread Helmut Hullen
Hallo, John,

Du meintest am 31.03.10:

 How do they lose the connection?
 I am working in a (very small) LAN with a Samba 3.4.x server, a
 Windows- 2000 client and a Windows XP-Home client.

 They just can not use P drive after some time.
 1. User simple mount network share as permanent drive named P. All
 ok. 2. Some time later,in the morning, user come and starting the
 job and see disconnected drive P.
 3. I very confused, because i have 2 Win XP Professional clients,
 who never lost mapped disks. Second thing = They never had same
 problems with 2003 (as they say)

 Automatic disconnection after a period of inactivity is normal and by
 clicking on the drive reconnect without issue. Is that not working?

Windows XP Home (in my LAN): no such problem.
Windows 2000: automatic disconnection. And clicking on the share name  
doesn't help in any case, clicking on the target icon doesn't help in  
any case (sometimes it helps).

Only net view IP-address or search computer does reconnect in  
every case. Nasty.

Changing the registry as shown in

 http://arktur.de/FAQ/content/38/217/de/samba_freigabe-verschwindet.html

doesn't help. I've set disconnect to 7220, but the system (Windows  
2000) disconnects after about 15 minutes.

Samba 3.2, 3.4 and 3.5

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba 3.5 slow. Help with benchmarks !

2010-03-14 Thread Helmut Hullen
Hallo, John,

Du meintest am 14.03.10:

 I just did a search in Google and I also found the warnings about
 the use of sockect options with Linux kernel 2.6. So, I suppose
 that one finds what one is looking for...

 I have seen enough recommendations not to mess with the socket
 options on modern kernels.

Give a man a switch, and he'll switch!

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Illegal characters in filename?

2010-03-06 Thread Helmut Hullen
Hallo, Daniel,

Du meintest am 06.03.10:

 I have a server that uses both NFS and Samba. I noticed on a Windows
 client that some directories and files were in the 8.3 format, and
 clicking on them resulted in an Access denied. message.

 I've since upgraded to 3.5.0 - now the Access denied. message is
 gone and I can enter and open files, but all of the names are shown
 in the 8.3 format and are almost unreadable. I discovered that the
 filenames in question have full colons (:) in them, and this is
 illegal for Windows clients. Windows itself won't let you create a
 file with an invalid filename.

 I have listings like:

 T7UFO1~9
 --TAHX6K~4.txt
 --TAHX6K~B.ods
 etc.

No help, just an idea:

Looks that like

dir /x

on the Windows/DOS side?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Windows 7 + Samba 3.4.5 locking problem

2010-03-05 Thread Helmut Hullen
Hallo, Lars,

Du meintest am 05.03.10:

 The application works with a lot of database files (*.DBF) and
 everything works fine if only one workstation has started the
 application. Getting from the main menu to the data for the first
 patient takes about 3 to 5 seconds which is fine. But every station
 started after the first one takes about 35 seconds to get to the data
 for the first patient. Once the application is started further
 requests are fast.

Have you tested the switch too?
Switches, NICs, cable outlets (Steckdosen) and cables may produce such  
a behaviour too.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba 3.4.5 - rights for /etc/samba/private and smbusermap

2010-02-20 Thread Helmut Hullen
Hallo,

compiling 3.4.5 worked.
Installing it was no problem.

But now I get the message

   can't open username map /etc/samba/private/smbusermap Error Keine  
Berechtigung

The rights were

700 for dir /etc/samba/private
644 for file smbusermap

When I change the dir private to 711 no error is reported.

What are the minimal rights for directory and file?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba 3.4.5 won't compile (Slackware)

2010-02-19 Thread Helmut Hullen
Hallo,

I try to compile samba 3.4.5 in my slackware installation (slackware- 
current).
Kernel compiling and compiling other packets works as desired.

I use the samba.SlackBuild script from slackware.org (changing the  
version number of samba only).

  
ftp://ftp5.gwdg.de/pub/linux/slackware/slackware_source/n/samba/samba.SlackBuild

Compiling 3.4.5 shows

 Start --

samba-3.4.5/
samba-3.4.5/README
samba-3.4.5/lib/
samba-3.4.5/lib/replace/
samba-3.4.5/lib/replace/autogen.sh



Compiling registry/reg_eventlog.c
Compiling registry/reg_perfcount.c
Compiling registry/reg_util_legacy.c
Compiling lib/popt_common.c
Generating smbd/build_options.c
Building include/build_env.h
Compiling smbd/build_options.c
Compiling smbd/server.c
Linking bin/smbd
lib/gencache.o: In function `gencache_iterate_fn':
gencache.c:(.text+0xb1): undefined reference to `ap_fnmatch'
collect2: ld returned 1 exit status
make: *** [bin/smbd] Error 1

-- End -

Where is the problem?

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba 3.4.5 won't compile (Slackware)

2010-02-19 Thread Helmut Hullen
Hallo,

I wrote am 19.02.10:

 Compiling 3.4.5 shows

  Start --

[...]

 Linking bin/smbd
 lib/gencache.o: In function `gencache_iterate_fn':
 gencache.c:(.text+0xb1): undefined reference to `ap_fnmatch'
 collect2: ld returned 1 exit status
 make: *** [bin/smbd] Error 1

 -- End -

 Where is the problem?

The problem is (has been) my machine. Newer kernel, newer glibc, newer  
gcc - and all works fine (ok - I have to wait some time, but till now:  
no errors).

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] How do I mount a share on my Debian server ?

2010-02-17 Thread Helmut Hullen
Hallo, Gungne,

Du meintest am 17.02.10:

 I need to access a share on one of the win2003 servers. How do I do
 this? I want to mount the win share so that I permanently can access
 it from the debain workstations.

Structure (not completely tested)

smbclient -N -L win2003

shows the names of the shares.

mount //win2003/Share /mnt/localshare

should ask for username and password; the mountpoint has to exist.

I've just tried the mount line: mount.cifs doesn't work, but mount  
tells to try the cifs type and works well, mount -t cifs too. Samba  
3.4.4

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] How do I mount a share on my Debian server ?

2010-02-17 Thread Helmut Hullen
Hallo, Gungne,

Du meintest am 17.02.10:

 I just want to access the shares on the windows server.

 My server   (where I want to mount shares)

 My gateway (FW)
 10.23.152.1
 10.23.1.2
 10.23.150.100 (win2003 with shares)

What tells

smbclient -N -L 10.23.150.100

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] How do I mount a share on my Debian server ?

2010-02-17 Thread Helmut Hullen
Hallo, Gungne,

Du meintest am 17.02.10:

 I just want to access the shares on the windows server.

 My server   (where I want to mount shares)

 My gateway (FW)
 10.23.152.1
 10.23.1.2
 10.23.150.100 (win2003 with shares)

 What tells

smbclient -N -L 10.23.150.100




 myserver:~# smbclient -N -L 10.23.150.100
 Anonymous login successful
 Domain=[CORPNET] OS=[Windows Server 2003 R2 3790 Service Pack 2]
 Server=[Windows Server 2003 R2 5.2]

 Sharename   Type  Comment
 -     ---
 cli_rpc_pipe_open: cli_nt_create failed on pipe \srvsvc to machine
 10.23.150.100.  Error was NT_STATUS_ACCE
 SS_DENIED
 Error returning browse list: NT_STATUS_ACCESS_DENIED

That's not good. But I don't know how to repair this behaviour.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


  1   2   3   >