03-17-2009 07:21 AM
Is there any way to configure username and password in cifs client, to avoid setting the user and password in the mount command ?
Solved! Go to Solution.
03-17-2009 07:46 AM
In /etc/fstab, I added the entry:
arcserver:/bancosqa /u03/applqa/files cifs username=applqa,password=applqa 0 0
# mount -aF cifs
and it worked fine.
03-19-2009 12:58 AM
This method is not secure. Placing a plaintext password in a universally-readable file is not considered good practice.
The better method of accomplishing your goal would be to use the CIFS Client user database, which will store your password encrypted. See the cifsdb manpage and/or the CIFS Client Administrator's Guide (at docs.hp.com) for details.
03-19-2009 07:37 AM
I did not know about cifsdb. You are right, it is not safe. But this box has only 1 local user, the sysadmin. All the others are Oracle clients.
I am going to take a look at cifsdb to change the approach.
Sorry i can not assign points for you.