[Tfug] Mounting smbfs

Terence Rudkin trexx at pobox.com
Wed Nov 12 08:56:16 MST 2003


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?
-- 



More information about the tfug mailing list