Samba configuration on HPUX 11i

Here is a quick step by step to create a SAMBA shared directory on HPUX for windows desktops

1) determine Samba uses its own security file or Active Directory

To use Active Directory and Kerberos for authentication,
Set in smb.conf
[global]
realm = yourdomain.com
security = ADS

To use samba user own security file,
smbpasswd -a usrname (same user name)
Set in smb.conf
[global]
security = user

2) set the share in smb.conf (/etc/opt/samba/smb.conf). You can find examples in the file.
[publicshare1]
comment = Public Samba share 1
path = /media/user/share
valid users = …
write list = ….
read only = Yes
directory mask = 0755
directory security mask = 0755
short preserve case = Yes

3) /sbin/init.d/samba start

4)
Configure samba to autostart in /etc/rc.config.d/samba (first variable set to 1).

WRQ Reflection X cached OpenSSH Keys

WRQ Reflection X caches OpenSSH keys for client connections automatically. Therefore, you don’t have to acknowledge the “RSA key fingerprint” at every login. But this feature has a bug that the software will only quit connecting to servers if the key does not match the server’s’ key.  It would not detect a new key and prompt for human decisions if a new key was found like other softwares like ‘putty’.

Today, I rebuild a UNIX server “serverB” using a good image from another server “serverX”. The SSH keys are changed after OS restore and recompile. I tried to logon the server using OpenSSH client mode from WRQ Reflection X Manager; the connection was refused and terminated. I turned on “Host Response” and noticed the root cause was the keys did not match. So, I removed the stored SSH keys for the server in “C:\Documents and Settings\….\My Documents\Reflection\.ss\known_hosts”

For example:
serverA,122.122.11.21 ssh-rsa ABDA8877JMM…..
serverB,122.122.11.34 ssh-rsa ABDA8877JMM…..       <=remove it, because it is an old key.

Then tried logon from X Manager successfully after acknowledged the new keys.

Follow

Get every new post delivered to your Inbox.