Hi Vishal,
Looking at your smb.conf file, you are NOT specifying guest ok = no; since
you have a
";" in front of this line, guest ok = yes by default. and you have
set your
guest account
to be 'praveen'.
Also, the reason that your username/password is not working is that with
encrypt passwords=yes, it is expecting to be able to check the password
fields in smbpassword for the user praveen; you have to explicity set this
using smbpasswd praveen
and type in the password you expect to use.
Hope this helps,
Don
-----Original Message-----
From: vishal srivastava [mailto:planetjeans@hotmail.com]
Sent: Monday, October 22, 2001 10:20 PM
To: cbarry@infiniconsys.com; samba@samba.org
Cc: teg@redhat.com; tdiehl@rogueind.com; danieltan@shopnsave.com.sg
Subject: Samba Configuration Problems
Hi there,
I have solved the earlier execvp problem. I had misktaken the smbd and
nmbd files of the installation directory and pointed my script to them. But
now the samba server starts up after placing the smb.conf in the
/usr/local/samba/lib dir. But there is one another question that I needed
help on.
I have listed some shares in the smb.conf file and I am able to see the
shares on the network neighbourhood on Win2000. But I cannot get into the
shared directory [praveen] even though I have given the correct username and
password. It just says incorrect username and password. Also I have the user
and group permissions set to the user and group praveen on the server. So it
could not be a permissions problem. Also everytime I do a smbclient -L
<servername> I get a prompt asking me for a password and when I press
<enter> it says "anonymous login successful" eventhough I have
denied guest
access. I am enclosing my smb.conf, smbusers and smbpasswd files along with
the output of the smbclient -L <servername> output. Please help me by
telling me the steps to share a directory based on username and password and
how to add users to the samba server.
######smb.conf file
------------------------------------------------
# Global Settings ====================================[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = @home
# netbios name
netbios name = redhat
# server string is the equivalent of the NT Description field
server string = Samba Server
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
; hosts allow = 192.168.0.1 192.168.0.2
# Uncomment this if you want a guest account, you must add this to
/etc/passwd
# otherwise the user "nobody" is used
guest account = praveen
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
encrypt passwords = yes
smb passwd file = /usr/local/samba/lib/smbpasswd
# Unix users can map to different SMB User names
username map = /usr/local/samba/lib/smbusers
# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
password level = 8
username level = 8
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
interfaces = 192.168.0.3/24
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
[praveen]
path = /home/praveen
; guest ok = no
username = praveen
valid users = praveen
writable = yes
---------------------------------------------------------------------
#####smbusers
---------------------------------------------------
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin ci67861-a ci67861 praveen
nobody = guest pcguest smbguest
----------------------------------------------------
####smbpasswd
----------------------------------------------------
# SMB password file.
#
root:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:root
bin:1:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:bin
daemon:2:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[
U
]:LCT-00000000:daemon
adm:3:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:adm
lp:4:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:lp
sync:5:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:sync
shutdown:6:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
:[U
]:LCT-00000000:shutdown
halt:7:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:halt
mail:8:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:mail
news:9:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:news
nobody:99:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:
[U
]:LCT-00000000:Nobody
apache:48:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:
[U
]:LCT-00000000:Apache
named:25:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[
U
]:LCT-00000000:Named
xfs:43:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:X Font Server
rpcuser:29:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
:[U
]:LCT-00000000:RPC Service User
rpc:32:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-00000000:Portmapper RPC user
mailnull:47:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X:[U
]:LCT-00000000:
vishal:500:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
:[U
]:LCT-00000000:
praveen:501:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X:[U
]:LCT-00000000:
--------------------------------------------------------
###Smbclient -L redhat (output)
-------------------------------------
[root@redhat lib]# smbclient -L redhat
added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Anonymous login successful
Domain=[@HOME] OS=[Unix] Server=[Samba 2.2.2]
Sharename Type Comment
--------- ---- -------
praveen Disk
IPC$ IPC IPC Service (Samba Server)
ADMIN$ Disk IPC Service (Samba Server)
Server Comment
--------- -------
REDHAT Samba Server
Workgroup Master
--------- -------
@HOME
-----------------------------------------
thanks,
Regards
Vishal SRivastava
From: "Barry, Christopher" <cbarry@infiniconsys.com>
To: "vishal srivastava" <planetjeans@hotmail.com>,
<samba@samba.org>
Subject: RE: Samba installation - "execvp - permission denied" problem
- Plz
help
Date: Sun, 21 Oct 2001 11:49:59 -0400
smb.conf will reside in /usr/local/samba/lib if you install from
sources. Also, make sure you clean up any RedHat prior installation
stuff. Create symlinks in the (I think) /usr/local/bin that point to the
new binaries in /usr/local/samba/bin. Run testparm to see if everything
is cool.
RedHat feels the need to change file locations from what other unixes
use. - it really is most annoying.
-C
-----Original Message-----
From: vishal srivastava [mailto:planetjeans@hotmail.com]
Sent: Friday, October 19, 2001 11:09 PM
To: samba@samba.org
Subject: Samba installation - "execvp - permission denied" problem -
Plz
help
Hi there,
I have installed samba-2.2.2 on Redhat linux 7.0 . I have setup the
whole
server properly and have run the ./configure, make and make install
commands
successfully. I have even written a basic smb.conf file which is located
in
/etc/samba . The testparm on the conf file shows no errors. i have
checked
the /etc/services file for the netbios services and they are all done
properly
But when I try to start the smbd server I get the following error.
Please
tell me where I am wrong.
--------------------------------------------------------------------
[root@redhat lock]# /etc/rc.d/init.d/smb restart
Restarting SMB services: Shutting down SMB services: [FAILED]
Starting SMB services: execvp: Permission denied
execvp: Permission denied [FAILED]
[FAILED]
done.
--------------------------------------------------------------------
>>>Here is my smb.conf file
-----------------------------
[global]
workgroup = MYGROUP
[homes]
guest ok = no
read only = no
---------------------------
>>>Here is my script file located in /etc/rc.d/init.d/
---------------------------------------------------------
#!/bin/sh
#
# chkconfig: 345 91 35
# description: Starts and stops the Samba smbd and nmbd daemons \
# used to provide SMB network services.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# Check that smb.conf exists.
[ -f /etc/samba/smb.conf ] || exit 0
# See how we were called.
case "$1" in
start)
echo -n "Starting SMB services: "
daemon /usr/local/bin/samba-2.2.2/source/smbd -D
daemon /usr/local/bin/samba-2.2.2/source/nmbd -D
echo
touch /var/lock/subsys/smb
;;
stop)
echo -n "Shutting down SMB services: "
killproc /usr/local/bin/samba-2.2.2/source/smbd
killproc /usr/local/bin/samba-2.2.2/source/nmbd
rm -f /var/lock/subsys/smb
echo ""
;;
status)
status /usr/local/bin/samba-2.2.2/source/smbd
status /usr/local/bin/samba-2.2.2/source/nmbd
;;
restart)
echo -n "Restarting SMB services: "
$0 stop
$0 start
echo "done."
;;
*)
echo "Usage: smb {start|stop|restart|status}"
exit 1
esac
_________________________________________________________________
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba