Re: Password on CIFS (52 Views)
Reply
Super Advisor
Jose_C_Moraes
Posts: 316
Registered: ‎11-09-1999
Message 1 of 7 (52 Views)
Accepted Solution

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
Super Advisor
Jose_C_Moraes
Posts: 316
Registered: ‎11-09-1999
Message 2 of 7 (52 Views)

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
Jose_C_Moraes
Posts: 316
Registered: ‎11-09-1999
Message 3 of 7 (52 Views)

Re: Password on CIFS

Thanks
Trusted Contributor
Eric Raeburn
Posts: 137
Registered: ‎11-26-2002
Message 4 of 7 (52 Views)

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
Jose_C_Moraes
Posts: 316
Registered: ‎11-09-1999
Message 5 of 7 (52 Views)

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
Dennis Handly
Posts: 25,292
Registered: ‎03-06-2006
Message 6 of 7 (52 Views)

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
Jose_C_Moraes
Posts: 316
Registered: ‎11-09-1999
Message 7 of 7 (52 Views)

Re: Password on CIFS

Thanks
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.