Topic: Assembling on cifs and secret of the password.
Is RHEL 6.5 out of the domain and there there is a local user user_lin.
There is resource Windows in the domain dom where the domain user user_win (to be exact dom/user_win) has access.
Physically user_lin and user_win is the same person, it is simple in office at Windows there is a domain, and at Linux is not present.
It is necessary this resource with the rights of the user user_win to RHEL 6.5.
In/etc/fstab we write
//server/dir/dir cifs credentials =/home/user_lin/pass 0 0
In a file/home/user_lin/pass we write
We do to this file it is right 460
4 - that the system could read
6 - that the user could change the password if it changes in the domain
All works perfectly;
To security police, naturally, such variant is not pleasant, for the password of the user can read root.
I can not find the information in any way as in such situation to store the password in the ciphered type, and it is even better in an implicit place.
Thanks the one who gives .
P.S. To enter Linux into the domain not to offer. It is other history.