All of lore.kernel.org
 help / color / mirror / Atom feed
* correct format for mounting cifs/smbfs shares
@ 2005-09-07 14:10 Jeff Moyer
  2005-09-07 15:20 ` Jehan PROCACCIA
  2005-09-07 15:57 ` Ian Kent
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Moyer @ 2005-09-07 14:10 UTC (permalink / raw)
  To: autofs

Hi,

I had a user report a bug as follows:

---
Description of problem:
automount does not understand //hostname in its config files, which is needed by mount.cifs and mount.smbfs
I found a "solution", but I don't like it:
use \/\/hostname in /etc/auto.misc file


Version-Release number of selected component (if applicable):
autofs-4.1.3-114
samba-client-3.0.14a-2.1.fc3.kde

How reproducible:
Always

Steps to Reproduce:
1. put following line in /etc/auto.misc file:
share  -fstype=cifs                                                                                                     //HOST/SHARE
(of course, I hope that you have host HOST with share SHARE and you can make
mount -t cifs //HOST/SHARE /misc/share)

2. ls /misc/share 
  

Actual Results:  in /var/log/messages:
automount[1624]: mount(generic): failed to mount  (type cifs) on /misc/share/HOST/share

Expected Results:  //HOST/SHARE mounted in /misc/share
;-)

Additional info:

Same results with -fstype=smb
---

I have no experience with this.  What is the expected configuration to get
this to work?

Thanks,

Jeff

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: correct format for mounting cifs/smbfs shares
  2005-09-07 14:10 correct format for mounting cifs/smbfs shares Jeff Moyer
@ 2005-09-07 15:20 ` Jehan PROCACCIA
  2005-09-07 16:03   ` Ian Kent
  2005-09-07 15:57 ` Ian Kent
  1 sibling, 1 reply; 5+ messages in thread
From: Jehan PROCACCIA @ 2005-09-07 15:20 UTC (permalink / raw)
  To: jmoyer; +Cc: autofs

For automounting smb/cif I use this:

$ tail -3 /etc/auto.misc
windowsshare    
-fstype=smbfs,username=mylogin,workgroup=myworkgroup,credentials=/etc/smbwindows.auth 
://winserver/share1
unixshare    
-fstype=smbfs,username=mylogin,credentials=/etc/smbunix.auth 
://sambaserver/mylogin

$ cat /etc/smbunix.auth
username=mylogin
password=secret

$ cat /etc/smbwindows.auth
username=mylogin
password=secret

$ cd /misc/windowsshare
[root@calaz /misc/windowsshare]
$ df .
Filesystem           1K-blocks      Used Available Use% Mounted on
//winserver/share1        858652672 122945536 735707136  15% 
/misc/windowsshare


However, as you can see, I need two smb*.auth files because my password 
is diffrent on both shares (windows/unix)
And the major problem is THE use of a smb.auth file where the password 
must be in clear text :-( . If someone knows how to automount cifs/smb 
FS without pre-entering the password ... The problem is that If I don't 
do that, autofs/mount won't prompt me to enter the password :-(
pehaps there's something to do with pamcred ... ?

thanks .

Jeff Moyer wrote:

>Hi,
>
>I had a user report a bug as follows:
>
>---
>Description of problem:
>automount does not understand //hostname in its config files, which is needed by mount.cifs and mount.smbfs
>I found a "solution", but I don't like it:
>use \/\/hostname in /etc/auto.misc file
>
>
>Version-Release number of selected component (if applicable):
>autofs-4.1.3-114
>samba-client-3.0.14a-2.1.fc3.kde
>
>How reproducible:
>Always
>
>Steps to Reproduce:
>1. put following line in /etc/auto.misc file:
>share  -fstype=cifs                                                                                                     //HOST/SHARE
>(of course, I hope that you have host HOST with share SHARE and you can make
>mount -t cifs //HOST/SHARE /misc/share)
>
>2. ls /misc/share 
>  
>
>Actual Results:  in /var/log/messages:
>automount[1624]: mount(generic): failed to mount  (type cifs) on /misc/share/HOST/share
>
>Expected Results:  //HOST/SHARE mounted in /misc/share
>;-)
>
>Additional info:
>
>Same results with -fstype=smb
>---
>
>I have no experience with this.  What is the expected configuration to get
>this to work?
>
>Thanks,
>
>Jeff
>
>_______________________________________________
>autofs mailing list
>autofs@linux.kernel.org
>http://linux.kernel.org/mailman/listinfo/autofs
>  
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: correct format for mounting cifs/smbfs shares
  2005-09-07 14:10 correct format for mounting cifs/smbfs shares Jeff Moyer
  2005-09-07 15:20 ` Jehan PROCACCIA
@ 2005-09-07 15:57 ` Ian Kent
  1 sibling, 0 replies; 5+ messages in thread
From: Ian Kent @ 2005-09-07 15:57 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: autofs

On Wed, 7 Sep 2005, Jeff Moyer wrote:

> Hi,
> 
> I had a user report a bug as follows:

Jehan got it.
Remember the : Sun escape for map entries starting with /.

> 
> ---
> Description of problem:
> automount does not understand //hostname in its config files, which is needed by mount.cifs and mount.smbfs
> I found a "solution", but I don't like it:
> use \/\/hostname in /etc/auto.misc file
> 
> 
> Version-Release number of selected component (if applicable):
> autofs-4.1.3-114
> samba-client-3.0.14a-2.1.fc3.kde
> 
> How reproducible:
> Always
> 
> Steps to Reproduce:
> 1. put following line in /etc/auto.misc file:
> share  -fstype=cifs                                                                                                     //HOST/SHARE
> (of course, I hope that you have host HOST with share SHARE and you can make
> mount -t cifs //HOST/SHARE /misc/share)
> 
> 2. ls /misc/share 
>   
> 
> Actual Results:  in /var/log/messages:
> automount[1624]: mount(generic): failed to mount  (type cifs) on /misc/share/HOST/share
> 
> Expected Results:  //HOST/SHARE mounted in /misc/share
> ;-)
> 
> Additional info:
> 
> Same results with -fstype=smb
> ---
> 
> I have no experience with this.  What is the expected configuration to get
> this to work?
> 
> Thanks,
> 
> Jeff
> 
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: correct format for mounting cifs/smbfs shares
  2005-09-07 15:20 ` Jehan PROCACCIA
@ 2005-09-07 16:03   ` Ian Kent
  2005-09-08 15:49     ` Jehan PROCACCIA
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Kent @ 2005-09-07 16:03 UTC (permalink / raw)
  To: Jehan PROCACCIA; +Cc: autofs

On Wed, 7 Sep 2005, Jehan PROCACCIA wrote:

> For automounting smb/cif I use this:
> 
> $ tail -3 /etc/auto.misc
> windowsshare
> -fstype=smbfs,username=mylogin,workgroup=myworkgroup,credentials=/etc/smbwindows.auth
> ://winserver/share1
> unixshare    -fstype=smbfs,username=mylogin,credentials=/etc/smbunix.auth
> ://sambaserver/mylogin
> 
> $ cat /etc/smbunix.auth
> username=mylogin
> password=secret
> 
> $ cat /etc/smbwindows.auth
> username=mylogin
> password=secret
> 
> $ cd /misc/windowsshare
> [root@calaz /misc/windowsshare]
> $ df .
> Filesystem           1K-blocks      Used Available Use% Mounted on
> //winserver/share1        858652672 122945536 735707136  15%
> /misc/windowsshare
> 
> 
> However, as you can see, I need two smb*.auth files because my password is
> diffrent on both shares (windows/unix)
> And the major problem is THE use of a smb.auth file where the password must be
> in clear text :-( . If someone knows how to automount cifs/smb FS without
> pre-entering the password ... The problem is that If I don't do that,
> autofs/mount won't prompt me to enter the password :-(
> pehaps there's something to do with pamcred ... ?

Mount doesn't know how to do this.
I agree that clear text passwords ar bad.
Aren't the permissions restrictive enough to protect them?

I don't know what pamcred could do. Let me know if you find a better 
method.

> 
> thanks .
> 
> Jeff Moyer wrote:
> 
> > Hi,
> > 
> > I had a user report a bug as follows:
> > 
> > ---
> > Description of problem:
> > automount does not understand //hostname in its config files, which is
> > needed by mount.cifs and mount.smbfs
> > I found a "solution", but I don't like it:
> > use \/\/hostname in /etc/auto.misc file
> > 
> > 
> > Version-Release number of selected component (if applicable):
> > autofs-4.1.3-114
> > samba-client-3.0.14a-2.1.fc3.kde
> > 
> > How reproducible:
> > Always
> > 
> > Steps to Reproduce:
> > 1. put following line in /etc/auto.misc file:
> > share  -fstype=cifs
> > //HOST/SHARE
> > (of course, I hope that you have host HOST with share SHARE and you can make
> > mount -t cifs //HOST/SHARE /misc/share)
> > 
> > 2. ls /misc/share  
> > Actual Results:  in /var/log/messages:
> > automount[1624]: mount(generic): failed to mount  (type cifs) on
> > /misc/share/HOST/share
> > 
> > Expected Results:  //HOST/SHARE mounted in /misc/share
> > ;-)
> > 
> > Additional info:
> > 
> > Same results with -fstype=smb
> > ---
> > 
> > I have no experience with this.  What is the expected configuration to get
> > this to work?
> > 
> > Thanks,
> > 
> > Jeff
> > 
> > _______________________________________________
> > autofs mailing list
> > autofs@linux.kernel.org
> > http://linux.kernel.org/mailman/listinfo/autofs
> >  
> 
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: correct format for mounting cifs/smbfs shares
  2005-09-07 16:03   ` Ian Kent
@ 2005-09-08 15:49     ` Jehan PROCACCIA
  0 siblings, 0 replies; 5+ messages in thread
From: Jehan PROCACCIA @ 2005-09-08 15:49 UTC (permalink / raw)
  To: Ian Kent; +Cc: autofs

Ian Kent wrote:

>On Wed, 7 Sep 2005, Jehan PROCACCIA wrote:
>  
>
>
>Mount doesn't know how to do this.
>I agree that clear text passwords ar bad.
>Aren't the permissions restrictive enough to protect them?
>
>I don't know what pamcred could do. Let me know if you find a better 
>method.
>  
>
don't know either ... but I suspect that it could help :
http://www.padl.com/OSS/pam_ccreds.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-08 15:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-07 14:10 correct format for mounting cifs/smbfs shares Jeff Moyer
2005-09-07 15:20 ` Jehan PROCACCIA
2005-09-07 16:03   ` Ian Kent
2005-09-08 15:49     ` Jehan PROCACCIA
2005-09-07 15:57 ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.