Thanks for the tip. I wasn't real happy about having a username and password in that file. Now I know how to get around it. Larry R. Pint National Truck Underwriting Managers, Inc. larry.pint at ntuminc.com 952-229-3451 > -----Original Message----- > From: John Saxton [mailto:jsaxton at cems.umn.edu] > Sent: Monday, August 28, 2006 2:52 PM > To: Larry R. Pint > Cc: tclug-list at mn-linux.org > Subject: Re: [tclug-list] Mounting smbfs drive > > I would suggest creating a Samba credentials file. Simply create a file > (ie: ~/.smbcred) with the lines: > username=your_username > password=your_password > > I chmodded this file 700. > > Now you can put the following in your fstab file: > //ir01/images /mnt/ir smbfs uid=563, > credentials=/home/your_local_user_name/.smbcred 0 0 > > This is more secure as your samba password isn't directly in your > /etc/fstab file (which is system readable). > > HTH, > John > > Larry R. Pint wrote: > > > > I have a (hopefully) simple question about mounting a shared drive on > > a Windows machine under Linux (Red Hat release 9). > > > > In the fstab file, should I list the Windows drives to be mounted by > > their windows way of naming (\\computer_name\share_name > > <file:///%5C%5Ccomputer_name%5Cshare_name>) or the Linux way of naming > > (//computer_name/share_name)? I'm currently using the windows naming > > format. Could that be causing problems with the mounting of the drives? > > > > The reason I'm asking is that we have a drive that was mounting > > correctly for quite some time (over a year). Now we've added mounting > > of another drive and it sometimes hangs up on a reboot at the point of > > mounting the smb drives (as far as I can tell). Once mounted, both > > drives work. The new drive was added to fstab immediately after the > > original drive. (I just copied and modified the line from the working > > drive.) They are the last two lines in the file. The two lines are: > > > > \\ir01\images$ /mnt/ir smbfs > > > password=adminpassword,fmask=777,uid=563,dmask=777,gid=500,username=admi nn > ame/ourdomain > > 0 0 > > > > \\e-mail-receiver\dropfax$ <file:///%5C%5Ce-mail-receiver%5Cdropfax$> > > /mnt/dropfax smbfs > > > password=adminpassword,fmask=777,uid=563,dmask=777,gid=500,username=admi nn > ame/ourdomain > > 0 0 > > > > Thanks for any ideas you might have. > > > > Larry R. Pint > > > > National Truck Underwriting Managers, Inc. > > > > larry.pint at ntuminc.com <mailto:larry.pint at ntuminc.com> > > > > 952-229-3451 > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > > tclug-list at mn-linux.org > > http://mailman.mn-linux.org/mailman/listinfo/tclug-list > >