On Sun, 2002-03-24 at 23:18, Christopher Booth wrote:
> On 24 Mar 2002 18:52:23 +1100
> "Tony Green" <[EMAIL PROTECTED]> wrote:
> > mount -t smbfs -o username=tgreen,passwd=mypass //windowsbox/windows
> > share /mnt/windowsbox
> 
> For security, reasons, you can leave out putting the ",passwd=mypass" bit
> and it will ask you passwd on the fly when you actually run the command.

Even better: Newer versions of samba let you store usernames and
passwords in external files, referenced with the credentials option:
mount -t smbfs -o credentials=/path/to/credentials //machine/share /mnt/share

Where a credentials file contains:
username = peter
password = supersecret

This means you can mount Windows shares at boot time without storing
passwords in /etc/fstab, which is readable by anyone.

-- 
Pete
[EMAIL PROTECTED]

And now it seems there are lots of other worlds as well.  When I think I
might die without seeing a hundredth of all there is to see it makes me
feel, well, humble, I suppose.  And very angry, of course.
                -- Twoflower the tourist.
                   (Terry Pratchett, The Colour of Magic)

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to