Well, this certainly works, as long as you don't want non-root users to be
able do the mount.  Cool.  I searched, though, and the man page for smbmnt
and smbmount (as well mount) don't mention the "credentials=" parameter.
How did you happen to know about it?  I'd like to make mention of wherever
it might be documented on linuxvm.org.


Mark Post

P.S., before anyone else tries it too, I tried to put the workgroup=
parameter in the credentials file, and the mount failed.  So, it looks like
that value needs to stay in /etc/fstab.  Oh well, it is still tons better
than trying to play with the permissions on /etc/fstab!

-----Original Message-----
From: Herve Bonvin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: RE : linux seeing windows files


You could also try the following :

in /etc/fstab

//server/share  /mountpoint         smbfs
rw,workgroup=xxxxx,uid=501,credentials=/home/user/cred 0 0


in file /home/user/cred
username=yyyyyyy
password=xxxxxxxxx

chmod 600 /home/user/cred

Regards,
Herve

-----Original Message-----
From: Kern, Thomas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 5:14 PM
To: [EMAIL PROTECTED]
Subject: Re: linux seeing windows files


Does /etc/fstab have to be world-readable? Will a linux system boot up if
/etc/fstab is set to 0500 and owned by root?

/Thomas Kern
/301-903-2211

> -----Original Message-----
> From: Richard Troth [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 10:58
> To: [EMAIL PROTECTED]
> Subject: Re: linux seeing windows files
>
>
> > Post, Mark K wrote:
> > > According to the Samba team, the preferred method is now this:
> > >         mount -t smbfs //server/share /mountpoint -o
> > > username=abcde,workgroup=etc...
>
> One of the options being "password=".
>
> > Ok that works great, except why am i being asked for a password
> > and how do i setup the mount to be permanent...like when i
> > shutdown and restart Linux the mount will be there
>
> You can include "password=".   Obviously that is otherwise a no no.
> But the problem is that you need to pass credentials.   Perhaps
> someone else knows how to make it work w/o scribbling the password
> into your /etc/fstab file.   I think I understand WHY you get prompted
> but I surely don't know how to stop it.
>
> -- R;
>

Reply via email to