How can I mount a Samba share using /etc/fstab while at the same time hide the user password?

Updated -

There are several ways to mount a Samba share using /etc/fstab. One is to use the username and password options:

//server/share     /mount/point      smbfs   username=myacount,password=mypassword 0 0

This procedure renders the username and password visible to all users since /etc/fstab is readable by everyone (f...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content