1748280 Members
3979 Online
108761 Solutions
New Discussion юеВ

Re: Password on CIFS

 
SOLVED
Go to solution
Jose_C_Moraes
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
6 REPLIES 6
Jose_C_Moraes
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
Jose_C_Moraes
Super Advisor

Re: Password on CIFS

Thanks
Eric Raeburn
Trusted Contributor
Solution

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
Jose_C_Moraes
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
Dennis Handly
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
Jose_C_Moraes
Super Advisor

Re: Password on CIFS

Thanks