On Tuesday November 7 2006 11:50 am, Drew Burchett wrote:
> I am attempting to mount a Windows 2003 share to a mount point on my
> Suse Linux 10 box. When I type:
>
> Mount -t cifs //server/share /mnt/point -o user=Me,password=mine
Should. But then you transition into the /etc/fstab file which doesn't
behave exactly the same. The -o options to be precise...
> Everything works perfectly. However, when I put the following entry in
> fstab:
> //server/share /mnt/point cifs user=Me,password=mine,rw 0 0
//server/share /mnt/point cifs credentials=/path/to/filename 0 0
Quoting the Samba mount.cifs man page which, if you've installed the
samba-docs package, can be found around
/usr/share/doc/packages/samba/htmldocs/manpages/mount.cifs.8.html:
___________
credentials=filename
specifies a file that contains a username and/or password. The format of the
file is:
username=value
password=value
This is preferred over having passwords in plaintext in a shared file, such
as /etc/fstab. Be sure to protect any credentials file properly.
___________
Make it read-only by the user. If this is a single user system then you
could create the credentials file in your home directory and make it
read-only.
If you don't mind plaintext passwords in /etc/fstab then you need to specify
username= and password= because 'user' means something else in /etc/fstab.
> Drew Burchett
Stan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]