Re: [Samba] ldap backend samba

2008-01-09 Thread Kenneth Westelinck
I have always found this the perfect howto to help me:
http://home.subnet.at/~max/ldap/ http://home.subnet.at/%7Emax/ldap/
It is Debian based, but it should be applicable for other distros as well.
It also uses smbldap-tools.

On Jan 9, 2008 1:30 PM, Francis Galiegue [EMAIL PROTECTED] wrote:

 Le mercredi 09 janvier 2008, Andy a écrit:
  Hello everyone
 
  I have been trying for a week now to complete a simple task of
 integrating
  samba and ldap. I have run into a few problems, and have been helped by
  others.  I finally completed the task and when I try get a windows xp
 user
  to logon I get the following error The system cannot find message text
 for
  message number 0x%1 in the message file for %2  I have asked for help
 on
  many forums and even posted here with no success.
 
  I have followed a few how tos now even they run into a few problems
 
 
  Can someone teachl me how to setup samba as a PDC, and use a ldap
 backend
  for the storage of usernames and passwords.
 

 I have always used smbldap-tools for this. It works pretty well.

 They have a pretty comprehensive howto as well.

 --
 Francis Galiegue, One2team - [EMAIL PROTECTED]
 [ATTENTION : CHANGEMENT DE COORDONNÉES !]
 +33178945552, +33683877875, http://www.one2team.com
 40 avenue Raymond Poincaré - 75116 PARIS
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba

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


RE: [Samba] authenticate from /etc/passwd

2003-07-17 Thread kenneth . westelinck
You'll need to set encrypt passwords option to no in the smb.conf file
and hack your win2k client to send passwords in plain text (Local Security
Settings/Local Policies/Security Options/Send unencrypted password ...).
I'm not sure if this is wat you want. You can keep /etc/passwd en smbpasswd
in sync using the unix password sync = yes option.

-- Origineel Bericht --
From: samba [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Thu, 17 Jul 2003 14:06:12 +0500
Subject: [Samba] authenticate from /etc/passwd


Hi All,

I want my samba to authenticate users from UNIX /etc/passwd instead of
smbpasswd file when they access the samba shares from win2k. What parameter

should I define to make it happen.

Sincerely,

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




Solden Tiscali ADSL : 27,50 euro/maand tot eind 2003.
U bent veel betalen niet meer gewoon!
Meer info? Klik hier... http://reg.tiscali.be/default.asp?lg=nl



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


Re: [Samba] authenticate from /etc/passwd

2003-07-17 Thread kenneth . westelinck
I'm sending you this mail from a win2000 and my server at home is running
the latest version from samba without encrypted passwords. Works like a
charm ;)

-- Origineel Bericht --
From: Thilo Rößler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Thu, 17 Jul 2003 13:00:51 +0200
Subject: Re: [Samba] authenticate from /etc/passwd


Am Donnerstag, 17. Juli 2003 12:32 schrieb [EMAIL PROTECTED]:
 You'll need to set encrypt passwords option to no in the smb.conf
file
 and hack your win2k client to send passwords in plain text (Local Security
 Settings/Local Poli
ies/Security Options/Send unencrypted password ...).

OK, didn't think of that ;-)
But I am not sure if Win2k is willing to cooperate with a server that does
NOT
offer encrypted passwords. AFAIK, WinNT does but 2k and XP only acept servers

that
t least offer encrypted passwords.

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




Solden Tiscali ADSL : 27,50 euro/maand tot eind 2003.
U bent veel betalen niet meer gewoon!
Meer info? Klik hier... http://reg.tiscali.be/default.asp?lg=nl



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


RE: [Samba] Winbind ?

2003-07-10 Thread kenneth . westelinck
http://ftp.easynet.be/samba/docs/man/winbindd.8.html

-- Origineel Bericht --
From: eduardo de oliveira hernandes [EMAIL PROTECTED]
To: Lista Samba [EMAIL PROTECTED]
Date: 10 Jul 2003 11:19:39 -0300
Subject: [Samba] Winbind ?


hi people !!

What's Winbind ??

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




Solden Tiscali ADSL : 27,50 euro/maand tot eind 2003.
U bent veel betalen niet meer gewoon!
Meer info? Klik hier... http://reg.tiscali.be/default.asp?lg=nl



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


RE: [Samba] winbind on SUSE8.2

2003-07-10 Thread kenneth . westelinck
This is my working ssh file in /etc/pam.d/

#%PAM-1.0
auth   required pam_nologin.so
auth   sufficient   pam_winbind.so
auth   required pam_unix.so use_first_pass shadow
auth   required pam_env.so # [1]

accountsufficient   pam_winbind.so
accountrequired pam_unix.so use_first_pass

sessionsufficient   pam_mkhomedir.so skel=/etc/skel umask=0022
sessionrequired pam_unix.so
sessionoptional pam_lastlog.so # [1]
sessionoptional pam_motd.so # [1]
sessionoptional pam_mail.so standard noenv # [1]
sessionrequired pam_limits.so

password   required pam_unix.so

# Alternate strength checking for password. Note that this
# requires the libpam-cracklib package to be installed.
# You will need to comment out the password line above and
# uncomment the next two in order to use this.
#

I think the order is important and you shouldn't add it at the end of
the file.



Solden Tiscali ADSL : 27,50 euro/maand tot eind 2003.
U bent veel betalen niet meer gewoon!
Meer info? Klik hier... http://reg.tiscali.be/default.asp?lg=nl



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


RE: [Samba] winbind on SUSE8.2

2003-07-10 Thread kenneth . westelinck
should be /etc/pam.d/login
make sure to make a backup, in case something goes wrong ;)

-- Origineel Bericht --
From: Klesel, Roman [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED],
'Lammersdorf, Lorenz' [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Date: Thu, 10 Jul 2003 16:46:51 +0200
Subject: RE: [Samba] winbind on SUSE8.2


Dear Keneth,

yes, now I can ssh into my box with the domainusers. I guess I can figure
out which file I have to modify to enable the console login.

Thanks so far everyone for your kind help.

Roman



-Original Message-
From: kenne
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 10. Juli 2003 16:33
To: Klesel, Roman; 'Lammersdorf, Lorenz'
Cc: '[EMAIL PROTECTED]'
Subject: RE: [Samba] winbind on SUSE8.2


This is my working ssh file in /etc/pa
.d/

#%PAM-1.0
auth   required pam_nologin.so
auth   sufficient   pam_winbind.so
auth   required pam_unix.so use_first_pass shadow
auth   required pam_env.so # [1]

accountsufficient   pam_winbind.so
account
equired pam_unix.so use_first_pass

sessionsufficient   pam_mkhomedir.so skel=/etc/skel umask=0022
sessionrequired pam_unix.so
sessionoptional pam_lastlog.so # [1]
sessionoptional pam_motd.so # [1]
sessionoptio
al pam_mail.so standard noenv # [1]
sessionrequired pam_limits.so

password   required pam_unix.so

# Alternate strength checking for password. Note that this
# requires the libpam-cracklib package to be installed.
# You will nee
 to comment out the password line above and
# uncomment the next two in order to use this.
#

I think the order is important and you shouldn't add it at the end of
the file.



Solden Tisca
i ADSL : 27,50 euro/maand tot eind 2003.
U bent veel betalen niet meer gewoon!
Meer info? Klik hier... http://reg.tiscali.be/default.asp?lg=nl






Solden Tiscali ADSL : 27,50 euro/maand tot eind 2003.
U bent veel betalen niet meer gewoon!
Meer info? Klik hier... http://reg.tiscali.be/default.asp?lg=nl



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


RE: [Samba] Need a little help here.

2003-07-09 Thread kenneth . westelinck
Keith,

There's no specific command console for samba to edit smb.conf files. I
usually edit this file using vi (or other prefered editor). You can check
if your file is valid when runing 'testparm'. Since you configured samba
with the default options (plain ./configure), samba will expect your config
to be at: /usr/local/samba/etc/smb.conf (not /etc/smb.conf). If you don't
like this please issue ./configure --help and you'll see how to change the
prefix for the config file (something like --sysconfdir i think).


regards,

Kenneth


Solden Tiscali ADSL : 27,50 euro/maand tot eind 2003.
U bent veel betalen niet meer gewoon!
Meer info? Klik hier... http://reg.tiscali.be/default.asp?lg=nl



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


RE: [Samba] Need a little help here.

2003-07-09 Thread kenneth . westelinck
If you extract the tarball, do a ./configure, make and make install, then
samba will be installed in /usr/local/samba. The daemons (smbd, nmbd) reside
underneath /usr/local/samba/bin. If this is not wat you want, try to fiddle
with the --prefix options for the ./configure script. You can see all options
when you type ./configure --help. Maybe there's a possibility to tell Webmin
where to look for samba ... I don't use this, so I am not sure

-- Origineel Bericht --
From: Keith Williams [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: 09 Jul 2003 01:06:11 -0500
Cc:
Reply-To: [EMAIL PROTECTED]
Subject: [Samba] Need a little help here.


Hi all,
I am back for more punishment-
Anyway I reinstalled my Linux using SuSe 8.2 pro. I did not install the
defualt Samba , instead I got the latest tarball for 3.0b2
I also installed webmin.
Now it comes up with error

 The Samba server ex
cutable /usr/sbin/smbd was not found. Either Samba
is not installed on your system or your module configuration is
incorrect.

Now when I downloaded it I stored it on the Desktop and used terminal to
extract it and install it from there.

How c
n I fix this problem? Or is there a way to uninstall it without
redoing the whole thing again?

Sorry for my mistake but any help would be greatly apreciated.

K Williams

--
To unsubscribe from this list go to the following URL and read the

nstructions:  http://lists.samba.org/mailman/listinfo/samba




Solden Tiscali ADSL : 27,50 euro/maand tot eind 2003.
U bent veel betalen niet meer gewoon!
Meer info? Klik hier... http://reg.tiscali.be/default.asp?lg=nl



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


RE: [Samba] Using PAM - Logging into Linux using an NT Domain account

2003-07-08 Thread kenneth . westelinck
Just follow this man page:
http://ftp.easynet.be/samba/docs/man/winbindd.8.html
this worked for me. The only extra thing I had to do was to specify the
user to use when winbindd is connecting to the IPC$ share, using wbinfo
-A user. Make sure you create backups of pam files before tinkering with
them ;)

-- Origineel Bericht --
From: Ian Clancy [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Date: Mon, 7 Jul 2003 19:35:01 +0100
Subject: [Samba] Using PAM - Logging into Linux using an NT Domain account


Hello Samba Users,
I work for the IT Department of a small company and we've already replaced
our NT4 File Servers with Linux servers running Samba. We'd like to replace
some of our windows workstations also. It would be really cool if employee's
c
uld log into the Linux workstations using their existing NT accounts !

Has anybody had much luck using winbind and PAM to allow log on to Linux
worksataions using a windows NT Domain acount ?. Any info, or past
experiences shared will be helpful a
d much appriciated
Ian Clancy


Legal Disclaimer: Any views expressed by the sender of this message are
not necessarily those of Connaught Electronics Ltd. Information in this

e-mail may be confidential and is for the use of the intended recipie
t
only, no mistake in transmission is intended to waive or compromise such

privilege. Please advise the sender if you receive this e-mail by mistake.



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




Solden Tiscali ADSL : 27,50 euro/maand tot eind 2003.
U bent veel betalen niet meer gewoon!
Meer info? Klik hier... http://reg.tiscali.be/default.asp?lg=nl



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


[Samba] strange error

2003-07-03 Thread kenneth . westelinck
Hi all,

I've set up ssh successfully authenticating with a PDC. So I am using Samba
+ pam_winbind. This is all working very nice. The only 'problem' I have
is a strange error appearing in the winbindd logs every now and then.
--8---8---8---8---8---8---8---8---8---8---8---8-
[2003/07/02 06:23:01, 0] lib/util_sock.c:read_socket_with_timeout(300)
  read_socket_with_timeout: timeout read. read error = Connection reset
by peer.
[2003/07/02 06:23:01, 0] rpc_client/cli_pipe.c:rpc_api_pipe(359)
  cli_pipe: return critical error. Error was Read error: Connection reset
by pee
r
--8---8---8---8---8---8---8---8---8---8---8---8-
Anyone knows what it means or what is causing this? Maybe caused by the
PDC being on a different subnet?

Thanks.


regards,

Kenneth

-
Tiscali ADSL: 19,50 euros/maand...schrijf u in op www.tiscali.be



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


Re: [Samba] Fw:

2003-06-20 Thread kenneth westelinck
encrypt passwords should be yes in globals section. See smb.conf manual .
- Original Message - 
From: Jerry Moore [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 6:10 PM
Subject: [Samba] Fw:



 Anyone know why I get this message on my NT when trying to mount
 unix home to NT. see config etc... below:

 The account is not authorized to login from this station.



 --
 Ran smbpasswd -u moorej

 Ran:
 root-fairchd1: smbclient -L fairchd1
 added interface ip=199.254.200.1 bcast=199.254.200.255 nmask=255.255.255.0
 Password:
 Domain=[MYGROUP] OS=[Unix] Server=[Samba 2.2.3a]

 Sharename  Type  Comment
 -    --- 
 moorej Disk  Home Directory
 tmpDisk  Temporary file space
 IPC$   IPC   IPC Service (Samba Server)
 ADMIN$ Disk  IPC Service (Samba Server)
 root   Disk  Home Directories

 Server   Comment
 ---- 
 FAIRCHD1 Samba Server

 WorkgroupMaster
 ---- 
 MYGROUP


 
 netstat -a|grep netbios

 tcp   0  0  localhost.4437 localhost.netbios_ TIME_WAIT
 tcp   0  0  localhost.4435 localhost.netbios_ TIME_WAIT
 tcp   0  0  localhost.4433 localhost.netbios_ TIME_WAIT
 tcp   0  0  localhost.4431 localhost.netbios_ TIME_WAIT
 tcp   0  0  *.netbios_ *.*LISTEN
 udp   0  0  fairchd1.netbios_  *.*
 udp   0  0  fairchd1.netbios_  *.*
 udp   0  0  *.netbios_ *.*
 udp   0  0  *.netbios_ *.*

 ---
 ON THE NT:

 C:\net user e: \\199.254.200.1\moorej
 The password is invalid for \\199.254.200.1\moorej.

 Type the password for \\199.254.200.1\moorej:

 The account is not authorized to login from this station.


 --

 smb.conf

 # Samba config file created using SWAT
 # from mfg_jsuther_95.sat.faidor.com (172.16.15.242)
 # Date: 2003/06/19 10:01:07

 # Global parameters
 [global]
 workgroup = MYGROUP
 server string = Samba Server
 security = SHARE
 unix password sync = Yes
 log file = /usr/local/samba/var/log.%m
 max log size = 50
 dns proxy = No

 [homes]
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No

 [moorej]
 comment = Home Directory
 path = /home/moorej
 valid users = moorej
 read only = No

 [tmp]
 comment = Temporary file space
 path = /tmp

 -

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




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


Re: [Samba] samba restart

2003-06-07 Thread kenneth westelinck
On Linux I always use 'ps fax'
On SunOS I always us 'ps -ef'
This should give you a list of all processes running. If the list is to big,
just pipe it to grep: ps fax | grep nmbd and ps fax | grep smbd. If you're
alsoe using winbindd, don't forget to grep for that as well. There's a
similar thread going on in the list called stability. If you need decent
scripts. it might help poking around in the stability thread. This is a
script kindly taken from Joel Hammer ;)

-8---8---8---8---8---8---8---8---8---8---8---8---8---8--
#!/bin/bash
case $1 in
 start)
  killall smbd
  killall nmbd
/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D
  ;;

 stop)
  killall smbd
  killall nmbd
 ;;
 reload)
 kill -SIGHUP `cat /usr/local/samba/var/locks/smbd.pid`
 kill -SIGHUP `cat /usr/local/samba/var/locks/nmbd.pid`
 ;;
 *)
 echo Usage:
 echo start stop reload
 ;;
esac
exit 0
-8---8---8---8---8---8---8---8---8---8---8---8---8---8--

The location for your pid files and binaries might be different though.

- Original Message - 
From: Raymond Gree [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 10:31 PM
Subject: Re: [Samba] samba restart


 [EMAIL PROTECTED] wrote:

 Dude, it's UNIX/Linux. You should never reboot ;)
 That's not normal. Did you try to stop the service and start it again,
like so:
 samba stop
 samba start
 and not
 samba restart
 
 Are you sure the daemons are dead after issueing a samba stop.
 
 
  Raymond Gree [EMAIL PROTECTED] wrote:
 
 Hi,
 
 
 I start to use Samba with difficulties for now but I just blame me
 I have the following problem when I change my smb.conf I reload or
 restart Samba but most of the time my changes are not available
 I have to reboot my server
 is there anything special to do?
 Thanks
 Raymond
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba
 
 
 
 
 
 
 I did it also but same result. how can I verify that the deamon is dead
 (ps -A)?





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


Re: [Samba] CVS over SSH

2003-06-06 Thread kenneth westelinck
What does wbinfo -u, wbinfo -g, getent passwd, getent group say?

- Original Message - 
From: Christophe Reynders [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 5:22 PM
Subject: [Samba] CVS over SSH


 Hi there

 I'm running a samba cvs server in a windows domain with a W2K PDC. I want
to authenticate windows users through ssh. I'm able to login with a windows
user to the server on the server himself but when I want to login via a
windows client It doesn't work. The connection is refused. Could it be
something mis configured in my ssh pam module.
 This is my pam ssh module
  PAM configuration file for sshd
 auth   required /lib/security/pam_nologin.so
 auth   sufficient   /lib/security/pam_winbind.so
 auth   required /lib/security/pam_pwdb.so shadow nullok

 accountsufficient   /lib/security/pam_winbind.so
 accountrequired /lib/security/pam_pwdb.so

 sessionrequired /lib/security/pam_pwdb.so
 sessionoptional /lib/security/pam_console.so

 password   required /lib/security/pam_cracklib.so
 password   required /lib/security/pam_pwdb.so nullok use_authtok
shadow
 Could anybody please help me out, I would appreciate it
 Thanks in advance
 Regards


 -
 Do you Yahoo!?
 Free online calendar with sync to Outlook(TM).
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba



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


Re: [Samba] Re: 45443-343556

2003-06-04 Thread kenneth westelinck
Is this a new virus or something. I am subscribed to different lists and I
am seeing this kind of messages in the other lists as well.

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 4:20 AM
Subject: [Samba] Re: 45443-343556


 Please see the attached file.






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

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


Re: AW: AW: AW: Re: AW: [Samba] samba installatio

2003-06-03 Thread kenneth westelinck
This is how I configured samba:

./configure  --sysconfdir=/etc/samba --localstatedir=/var/log/samba --mandir
=/usr/local/man --with-lockdir=/var/run --with-configdir=/etc/samba --with-s
mbmount

Depending on your situation, you might want to add some features. Full help
is available typing ./configure --help

I have directory called /usr/local/src. I always unpack sources in this
directory, which is a good habit I think.

Using the above config results in the following:
- all samba stuff is in /usr/local/samba
- configuration is in /etc/samba
- logs are in /var/log/samba

Startup/stop script will be (Debian):
-8-88---
#! /bin/sh
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
SMBDAEMON=/usr/local/samba/bin/smbd
NMBDAEMON=/usr/local/samba/bin/nmbd
SMBNAME=smbd
SMBOPT=-D
NMBNAME=nmbd
NMBOPT=-D
NAME=samba
DESC=samba service

test -f $SMBDAEMON || exit 0
test -f $NMBDAEMON || exit 0

set -e

case $1 in
  start)
echo -n Starting $DESC:

if start-stop-daemon --start --quiet \
--pidfile /var/log/samba/locks/$SMBNAME.pid \
--exec $SMBDAEMON -- $SMBOPT
then echo -n  $SMBNAME
else echo -n  $SMBNAME (already running)
fi

if start-stop-daemon --start --quiet \
--pidfile /var/log/samba/locks/$NMBNAME.pid \
--exec $NMBDAEMON -- $NMBOPT
then echo -n  $NMBNAME
else echo -n  $NMBNAME (already running)
fi

echo .
;;
  stop)
echo -n Stopping $DESC:

if start-stop-daemon --stop --quiet \
--pidfile /var/log/samba/locks/$SMBNAME.pid \
--exec $SMBDAEMON
then echo -n  $SMBNAME
else echo -n  $SMBNAME (already stopped)
fi

if start-stop-daemon --stop --quiet \
--pidfile /var/log/samba/locks/$NMBNAME.pid \
--exec $NMBDAEMON
then echo -n  $NMBNAME
else echo -n  $NMBNAME (already stopped)
fi

echo .
;;
  *)
N=/etc/init.d/$NAME
echo Usage: $N {start|stop} 2
exit 1
;;
esac

exit 0
-8-88---

Or edit the startup script you currently have to point to the new location
for smbd and nmbd.

- Original Message - 
From: A.A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, June 02, 2003 4:39 PM
Subject: AW: AW: AW: AW: Re: AW: [Samba] samba installatio



hi ke,

Since you've compiled with default options, your smb.conf is located in
/usr/local/lib/smb.conf . You should copy your working smb.conf for version
2.2.7 (/etc/samba/smb.conf) to /usr/local/lib.

You should run ./testparm as well.

***
That's just what i did and the Result is the same!
Is there a way for a better (new) compiling?
My idee is to compile and install in old samba dirctory and overwrite in
this Directory old scripts and files(/etc/samba)??
In any case i will do a better compiling option.
Or maybe i should delete all old files in old Samba (smaba-2.2.7a) and than
try to compile and install in this directory??

??

henry



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Gesendet: Montag, 2. Juni 2003 16:17
An: A.A; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: Re: AW: [Samba] samba installatio


Since you've compiled with default options, your smb.conf is located in
/usr/local/lib/smb.conf . You should copy your working smb.conf for version
2.2.7 (/etc/samba/smb.conf) to /usr/local/lib.

You should run ./testparm as well.


 A.A [EMAIL PROTECTED] wrote:

there is some new Error:connections.tdb not initialized.



balalayka:/usr/local/samba/bin # ./smbstatus
params.c:OpenConfFile() - Unable to open configuration file
/usr/local/samba/lib/smb.conf:
No such file or directory
Can't load /usr/local/samba/lib/smb.conf - run testparm to debug it
*
I do copy the old smb.conf to /usr/local/samba/lib/
after that use ./smbstatus
***

balalayka:/usr/local/samba/bin # ./smbstatus
/usr/local/samba/var/locks/connections.tdb not initialized.
This is normal if an SMB client has never connected to your server.

*
and testparm get the smb.conf from old samba directory in /etc/samba 
!
***

balalayka:/usr/local/samba/bin # testparm
Load smb config files from /etc/samba/smb.conf
Processing section [homes]
Processing section [netlogon]
Processing section [Profiles]
Processing section [printers]
Processing section [amshared]


??
henry











-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Gesendet: Montag, 2. Juni 2003 

Re: AW: AW: AW: Re: AW: [Samba] samba installatio

2003-06-03 Thread kenneth westelinck
As I already said, all the samba stuff will be in /usr/local/samba. So if
you want to start the daemons you'll need to type:
- /usr/local/samba/bin/smbd -D
- /usr/local/samba/bin/nmbd -D
The old daemons are still there (unless you removed them) and are in
/usr/sbin/.

If you want to use the new version of smbstatus, you'll have to type:
/usr/local/samba/bin/smbstatus
The old version of smbstatus is still there as well (unless you removed
them).

It seems this is your first time compiling something instead of using the
darn RPMs isn't it ;)

- Original Message - 
From: A.A [EMAIL PROTECTED]
To: kenneth westelinck [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 12:20 AM
Subject: AW: AW: AW: AW: Re: AW: [Samba] samba installatio


hi kenn ,
now i installed samba again like you wrote. I have know the same
configuration on your machine:)
I see that the new installation has no smbd/nmbd Daemons(see Error).




**
ps fax  --- ID for smbd and nmbd
balalayka:kill -9 1234
balalayka:kill -9 1235
balalayka:/usr/local/src/samba-2.2.8a # rcsmb
Samba daemon, /usr/local/src/samba-2.2.8a/source/classic/smbd is not
skippeded.
balalayka:/usr/local/src/samba-2.2.8a # whereis smbd
smbd: /usr/sbin/smbd /usr/share/man/man8/smbd.8.gz
balalayka:/usr/local/src/samba-2.2.8a # which smbd
/usr/sbin/smbd
balalayka:/usr/local/src/samba-2.2.8a #
**
/usr/sbin/smbd this is the old smbd(and  nmd too)
what i did wrong? this is the same configuration like you have it?

:(

Thanks

henry











-Ursprüngliche Nachricht-
Von: kenneth westelinck [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 2. Juni 2003 18:50
An: A.A
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: Re: AW: [Samba] samba installatio


This is how I configured samba:

./configure  --sysconfdir=/etc/samba --localstatedir=/var/log/samba --mandir
=/usr/local/man --with-lockdir=/var/run --with-configdir=/etc/samba --with-s
mbmount

Depending on your situation, you might want to add some features. Full help
is available typing ./configure --help

I have directory called /usr/local/src. I always unpack sources in this
directory, which is a good habit I think.

Using the above config results in the following:
- all samba stuff is in /usr/local/samba
- configuration is in /etc/samba
- logs are in /var/log/samba

Startup/stop script will be (Debian):
-8-88---
#! /bin/sh
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
SMBDAEMON=/usr/local/samba/bin/smbd
NMBDAEMON=/usr/local/samba/bin/nmbd
SMBNAME=smbd
SMBOPT=-D
NMBNAME=nmbd
NMBOPT=-D
NAME=samba
DESC=samba service

test -f $SMBDAEMON || exit 0
test -f $NMBDAEMON || exit 0

set -e

case $1 in
  start)
echo -n Starting $DESC:

if start-stop-daemon --start --quiet \
--pidfile /var/log/samba/locks/$SMBNAME.pid \
--exec $SMBDAEMON -- $SMBOPT
then echo -n  $SMBNAME
else echo -n  $SMBNAME (already running)
fi

if start-stop-daemon --start --quiet \
--pidfile /var/log/samba/locks/$NMBNAME.pid \
--exec $NMBDAEMON -- $NMBOPT
then echo -n  $NMBNAME
else echo -n  $NMBNAME (already running)
fi

echo .
;;
  stop)
echo -n Stopping $DESC:

if start-stop-daemon --stop --quiet \
--pidfile /var/log/samba/locks/$SMBNAME.pid \
--exec $SMBDAEMON
then echo -n  $SMBNAME
else echo -n  $SMBNAME (already stopped)
fi

if start-stop-daemon --stop --quiet \
--pidfile /var/log/samba/locks/$NMBNAME.pid \
--exec $NMBDAEMON
then echo -n  $NMBNAME
else echo -n  $NMBNAME (already stopped)
fi

echo .
;;
  *)
N=/etc/init.d/$NAME
echo Usage: $N {start|stop} 2
exit 1
;;
esac

exit 0
-8-88---

Or edit the startup script you currently have to point to the new location
for smbd and nmbd.

- Original Message -
From: A.A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, June 02, 2003 4:39 PM
Subject: AW: AW: AW: AW: Re: AW: [Samba] samba installatio



hi ke,

Since you've compiled with default options, your smb.conf is located in
/usr/local/lib/smb.conf . You should copy your working smb.conf for version
2.2.7 (/etc/samba/smb.conf) to /usr/local/lib.

You should run ./testparm as well.

***
That's just what i did and the Result is the same!
Is there a way for a better (new) compiling?
My idee is to compile and install in old samba dirctory and overwrite in
this Directory old scripts and files(/etc/samba)??
In any case i will do a better compiling option.
Or maybe i

Re: I could use some help here... Re: [Samba] Accessing printerfromoutside the domain

2003-05-30 Thread kenneth westelinck
You'll probably have to put your printer public, and map bad users to guest
user. This is working for me:
[global]
...
   map to guest = Bad User

this is my printer:
[lj5l]
path = /tmp
printer name = lj5l
writable = yes
public = yes
guest ok = yes
guest account = smbprint
printable = yes
print command = lpr -Praw %s
lpq command = lpq -Praw
lprm command = lprm -Praw %j

make sure smbprint (or the guest account) exists on your UNIX/Linux machine.


- Original Message - 
From: lloyd [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 7:36 PM
Subject: I could use some help here... Re: [Samba] Accessing printer
fromoutside the domain


 I'm doing my best to advocate F/OSS in our organization, but this has
 been a problem for over a week now and it's starting to look bad.

 Any takers?


 lloyd wrote:
 
  We need to give a user in another domain access to our printer:
 
 
  our domain: OURDOM  (samba)
 
  other domain: OTHERDOM (AD?)
 
  user's workstation: \\OTHERDOM\WKSTN, in other domain
 
  printer: in our domain
 
  user: JOEBLOW - an account in each domain with the same login/password
 
 
  We're getting this error in wkstn.log:
 
  [2003/05/28 20:44:20, 1] smbd/password.c:server_validate(1101)
password server  is not connected
  [2003/05/28 20:44:20, 1] smbd/password.c:pass_check_smb(545)
Couldn't find user 'joeblow' in passdb.
  [2003/05/28 20:44:20, 2] smbd/reply.c:reply_sesssetup_and_X(975)
NT Password did not match for user 'joeblow'!
  [2003/05/28 20:44:20, 2] smbd/reply.c:reply_sesssetup_and_X(985)
Defaulting to Lanman password for joeblow
  [2003/05/28 20:44:20, 1] smbd/password.c:pass_check_smb(545)
Couldn't find user 'joeblow' in passdb.
  [2003/05/28 20:44:20, 1] smbd/reply.c:reply_sesssetup_and_X(1001)
Rejecting user 'joeblow': authentication failed
  [2003/05/28 20:44:20, 3] smbd/error.c:error_packet(94)
error string = No such file or directory
  [2003/05/28 20:44:20, 3] smbd/error.c:error_packet(113)
error packet at smbd/reply.c(1003) cmd=115 (SMBsesssetupX)
  NT_STATUS_LOGON_FAILURE
 
 
 
  Our password server (samba pdc) is ourdc.ourorg.org and has smbpasswd
  accounts on it.  The print server has no user accounts on it, smbpasswd
  or passwd.
 
  The guest account sambaguest exists in smbpasswd and passwd both on
  the print server and password server, with the same password in all
files.
 
 
  this smb.conf is from the print server:
 
  [global]
 debuglevel = 3
 workgroup = OURDOMAIN
 server string = samba print server
 printcap name = /etc/printcap
 load printers = yes
 printing = cups
 guest account = sambaguest
 log file = /var/log/samba/%m.log
 max log size = 0
 security = server
 password server = ourdc.ourorg.org
 encrypt passwords = yes
 smb passwd file = /etc/samba/smbpasswd
 unix password sync = Yes
 passwd program = /usr/bin/passwd %u
 passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
 pam password change = yes
 obey pam restrictions = yes
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 domain master = no
 preferred master = no
 wins server = 123.123.123.123
 dns proxy = no
 
  [printers]
 comment = All Printers
 path = /var/spool/samba
 browseable = no
 public = yes
 guest ok = yes
 writable = no
 printable = yes
 
 
  Any suggestions appreciated.
 


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



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