Samba Configuration Problems

MCCALL,DON (HP-USA,ex1) don_mccall at
Tue Oct 23 06:51:03 GMT 2001

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,

-----Original Message-----
From: vishal srivastava [mailto:planetjeans at]
Sent: Monday, October 22, 2001 10:20 PM
To: cbarry at; samba at
Cc: teg at; tdiehl at; danieltan at
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 =====================================

# 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 =

# Uncomment this if you want a guest account, you must add this to 
# 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 =

# 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

              path = /home/praveen
;             guest ok = no
              username = praveen
              valid users = praveen
              writable = yes

# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin ci67861-a ci67861 praveen
nobody = guest pcguest smbguest


# SMB password file.









         ]:LCT-00000000:X Font Server
          ]:LCT-00000000:RPC Service User

         ]:LCT-00000000:Portmapper RPC user

###Smbclient -L redhat (output)
[root at redhat lib]# smbclient -L redhat
added interface ip= bcast= nmask=
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
        ---------            -------

Vishal SRivastava

From: "Barry, Christopher" <cbarry at>
To: "vishal srivastava" <planetjeans at>, <samba at>
Subject: RE: Samba installation - "execvp - permission denied" problem - Plz

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.


-----Original Message-----
From: vishal srivastava [mailto:planetjeans at]
Sent: Friday, October 19, 2001 11:09 PM
To: samba at
Subject: Samba installation - "execvp - permission denied" problem - Plz

Hi there,
    I have installed samba-2.2.2 on Redhat linux 7.0 . I have setup the
server properly and have run the ./configure, make and make install
successfully. I have even written a basic smb.conf file which is located
/etc/samba . The testparm on the conf file shows no errors. i have
the /etc/services file for the netbios services and they are all done

But when I try to start the smbd server I get the following error.
tell me where I am wrong.

[root at 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]

 >>>Here is my smb.conf file
            workgroup = MYGROUP

               guest ok = no
               read only = no

 >>>Here is my script file located in /etc/rc.d/init.d/
# 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
         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
         touch /var/lock/subsys/smb
         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 /usr/local/bin/samba-2.2.2/source/smbd
         status /usr/local/bin/samba-2.2.2/source/nmbd
         echo -n "Restarting SMB services: "
         $0 stop
         $0 start
         echo "done."
         echo "Usage: smb {start|stop|restart|status}"
         exit 1

Get your FREE download of MSN Explorer at

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

Get your FREE download of MSN Explorer at

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

More information about the samba mailing list