1829147 Members
2661 Online
109986 Solutions
New Discussion

SAMBA

 
Jeffrey F. Goldsmith
Super Advisor

SAMBA

Actually I have a couple questions about SAMBA.

1. I had SAMBA working on my D380 server which has HPUX 11.i and now for some reason I cant get SAMBA to start. Keeps saying "Unable to start Samba!"

2. Yesterday I setup SAMBA to work on my L2000 server which has HPUX 11.0 and I cant seem to be able to connect to the server from within my windows 2K pc. Keeps asking for a name and PS and doesnt accept anything I give it. Which name and password does it want? I am sure that there is a step that I have forgotten.

Any help would be greatful.
3 REPLIES 3
Dave Olker
Neighborhood Moderator

Re: SAMBA

Hi Jeffrey,

Regarding the first problem, is anything showing up in the samba log file? I believe the log file is located in the /var/opt/samba directory and it is called log* - there may be many logfiles in that directory.

If you don't see anything obvious in the log files you could try increasing the log level in the /etc/opt/samba/smb.conf file to a higher number (like 10) and see if anything useful is logged in the log file. The logging level variable is called (coincidentally) "log level = #".

As for the second problem, I believe the login/password authentication method used, and thus the combination it is looking for, depends on how you have Samba configured to authenticate users. There are a few different methods: USER, SHARE, SERVER, and DOMAIN. Depending on how the "security" parameter is set, you may need to take different steps to configure the authentication to work.

My best advice to you would be to attach to the L2000 system with a web browser and use the SWAT tool to configure Samba. The SWAT tool is available at:

http://:901

Using SWAT you can configure the entire Samba server, and the online help provided by SWAT contains everything you'd ever need to know about what the various samba parameter mean and how they affect eachother.

Hope this helps,

Dave



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
BONNAFOUS Jean Marc
Trusted Contributor

Re: SAMBA

Hello,

For second question:
See: http://samba.linuxbe.org/fr/samba/learn/encryption.html. (In french).
The problem when if you want to use /etc/passwd users for SAMBA, you must choose option: 'encrypt passwords = NO ' in SAMBA configuration but Windows OS crypt password by default. You can configure Windows for no crypt password (HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP for W95 and W98, HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services\Rdr\Parameters for WNT, W2000 or WXP. Add DWORD key 'EnablePlainTextPassword' with value = 1).
This works well with W95 and W98, but W2000 and XP crypt already password when you open session. You can connect SAMBA ressources like with W98 and W95 AFTER session is opening but you must enter user and password again one time.

Other solution is using 'encrypt password = yes' but with this option you can't use /etc/passwd for SAMBA users. You must use SAMBA password file. The two files are independant and you must manage twice.


See also:
http://sambafr.idealx.org/samba/docs/man/Samba-Guide/

Rgds
JMB
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
Steve Steel
Honored Contributor

Re: SAMBA

Hi


For part 1

"/sbin/init.d/samba start" start samba at reboot and so

So I start samba with the CIFS startsmb script:

**************************************************************************

#!/usr/bin/sh

samba_path=/opt/samba/bin

${samba_path}/nmbd -D
${samba_path}/smbd -D

ps -e | grep smbd | awk '{ print $1 }' | read smbd_pid
ps -e | grep nmbd | awk '{ print $1 }' | read nmbd_pid
if [ -n "$smbd_pid" -a -n "$nmbd_pid" ]
then
echo "Samba started successfully; process ids: smbd: $smbd_pid, nmbd:
$nmbd_pid"
logger -t "CIFS/9000 Server" "Samba started successfully; process ids:
smbd: $smbd_pid, nmbd: $nmbd_pid"
else
echo "Unable to start Samba!"
logger -t "CIFS/9000 Server" -p user.error "Samba failed to start"
exit 1
fi



From these extracts you see that a daemon is not started

Try to stop and restart samba

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)