[Tfug] Mounting smbfs

Jeremy Rogers JDRogers at optics.arizona.edu
Wed Nov 12 14:57:40 MST 2003


Coincidentally, I was trying to get some automagic backup things working using samba today, and I put exactly the same thing as Josh in my fstab and everything worked fine.. no hanging.  I did have problems with password authentication and whatnot that I had to straighten out first.  Could it be that the wrong username and/or password is being sent?

I have:
debian/testing
samba 2.2.3a-12.3

Cheers,
JDR

-----Original Message-----
From:	tfug-bounces at tfug.org on behalf of Terence Rudkin
Sent:	Wed 11/12/2003 8:56 AM
To:	Tucson Free Unix Group
Cc:	
Subject:	Re: [Tfug] Mounting smbfs
I too have hung mounting smbfs. 
This is what I did

in /etc/fstab 
//server/d$  /mnt/D     smbfs defaults,user,credentials=/root/cred    0 0

in /root/cred 
username = somename
password = somepass 

Non root users cannot see the file with permissions:
drwxr-x---   22 root     root         4096 Nov 12 08:46 root
-rw-r--r--    1 root     root           37 Jul 22 08:24 /root/cred
as long as there are not member of group root. 


On Wed, 2003-11-12 at 08:22, Josh Miller wrote:
> This isn't a problem, it's an annoyance and a curiosity.
> 
> I want to mount an smb share on my linux box.
> At the command line, I can do "$smbmnt //server/share ... etc" and it
> works fine, but I want to enter "$mount /mnt/smb", which is a little
> quicker, so i put an entry in fstab:
> 
> //server/share /mnt/smb  smbfs  noauto,user      0 0
> 
> Now when I enter "$mount /mnt/smb", I am asked for the password and the
> volume is mounted, but the command doesn't finish and return to the
> shell prompt.  i.e. it seems to hang and I have to hit ctl-c to get the
> prompt back.
> 
> Any ideas?
-- 

_______________________________________________
tfug mailing list
tfug at tfug.org
http://www.tfug.org/mailman/listinfo/tfug



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3322 bytes
Desc: not available
Url : /pipermail/attachments/20031112/40d1b526/attachment.bin


More information about the tfug mailing list