How to disable to clear text password

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.


Try these:


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,