Re: [SLUG] fstab and networked shared drives

From: Ken Billings (lists@coffeehouseltd.com)
Date: Fri Sep 13 2002 - 12:49:23 EDT


On Thu, 2002-09-12 at 13:32, Matt wrote:
> > //nt_server/share /local/mount smbfs \
> > username=<nt_userid>,password=<nt_password> 0 0
>
> Just a side security note:
> Adding the lines above to your fstab exposes your nt username/password
> in cleartext. Your fstab is globally readable. You may want to limit the
> account used for samba connections to specific shares/directories.

There is a provision to get around the readable fstab. The option
"credentials=<file>" will look in <file> for the username/password.
Like so:

/etc/fstab:

//host/share /mount smbfs credentials=/home/user/.smbpass 0 0

/home/user/.smbpass: (Permissions 700)

username=user
password=password

-Ken



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:29:27 EDT