Showing results for 
Search instead for 
Do you mean 

Password on CIFS

SOLVED
Go to Solution
Super Advisor

Password on CIFS

Hi I need help.

Is there any way to configure username and password in cifs client, to avoid setting the user and password in the mount command ?

TIA, regards
Jose
1 ACCEPTED SOLUTIONS
Highlighted
Trusted Contributor Trusted Contributor

Re: Password on CIFS

> In /etc/fstab, I added the entry...

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.

-Eric
6 REPLIES
Super Advisor

Re: Password on CIFS

I solved the problem.

In /etc/fstab, I added the entry:
arcserver:/bancosqa /u03/applqa/files cifs username=applqa,password=applqa 0 0

then
# mount -aF cifs

and it worked fine.

Thanks, regards
Jose
Super Advisor

Re: Password on CIFS

Thanks
Highlighted
Trusted Contributor Trusted Contributor

Re: Password on CIFS

> In /etc/fstab, I added the entry...

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.

-Eric
Super Advisor

Re: Password on CIFS

Thanks for your reply Eric.

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.

Regards
Jose
Acclaimed Contributor Acclaimed Contributor

Re: Password on CIFS

>Sorry i can not assign points for you.

You can reopen threads with:
http://forums.itrc.hp.com/service/forums/helptips.do?#41
Super Advisor

Re: Password on CIFS

Thanks