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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.