How to disable to clear text password

hi,
I am sankar,working on mount/umount for the windows shared folders.When i mounting(cifs) the windows shared folder ,i am enter my user credentials(user name and password).some how i enter wrong password…it shows me error in the front end jsp page.when i was doing some debugging,i can see the password that i entered in the /var/log/messages file.Do you have way to get rid of my clear text password…

Please can somebody help me.

Regards,
Sankar

Try these:
http://anothersysadmin.wordpress.com/2007/12/17/howto-mount-samba-shares-in-fstab-using-a-credential-file/
http://andrewmemory.wordpress.com/2009/11/27/creating-credential-files-for-automatic-samba-mounts-in-etcfstab/

Hi

You can also use kerberos to authenticate against a windows-server and mount a smb-share. This prevents you to put a password in a file. You just need to ‘kinit’ (follow by entering your pw) and then mount the smb-share.

  1. Place a valid configuration in /etc/krb5.conf
  2. /usr/bin/kinit [ad-user]
  3. /sbin/mount.cifs //windows-server/share /mnt -o sec=krb5,user=[ad-user],uid=[enter here the unix-uid]

This should work.
Kind regards,
Tom