[TriLUG] Newbie Question about smbclient

Stephen Schaefer stephen_schaefer27517 at yahoo.com
Fri Oct 11 15:55:43 EDT 2002


I've had them become effectively stale when I change
my windows password, or when the NT administrators
moved things around.  It was that or some other
circumstance that prevented me from unmounting and
remounting a working copy; I'm sorry, it's been a
while, so I don't have fresh details.  You can't
unmount, and you can't rmdir a directory with a file
system mounted on it, so the workaround was to rename
the directory with the stale mount (mv RDUNT01/Shared
RDUNT01/Shared.bad), recreate the directory name, and
remount.  After the next UPS draining power outage
forced a reboot, I could finally remove RDUNT01.bad.

    - Stephen

--- "Vestal, Roy L." <rvestal at rti.org> wrote:
> I've never had that happen with these.
> 
> -----Original Message-----
> From: Joseph Tate [mailto:jtate at dragonstrider.com] 
> Sent: Friday, October 11, 2002 12:20 PM
> To: trilug at trilug.org
> Subject: Re: [TriLUG] Newbie Question about
> smbclient
> 
> 
> It seems to me that SMTP mounts get stale after some
> time.  Does that 
> still happen?
> 
> Vestal, Roy L. wrote:
> 
> >If this is something you want to put into
> /etc/fstab to be a consistant 
> >mount use the following in your /etc/fstab:
> >
> >//w2kbox/share  /mnt/linuxdirectory smbfs 
>
>credentials=/path/to/creds,uid=userid,gid=groupid,fmask=775,dmask=775
> 0 
> >0
> >
> >This will do a few things:
> >
> >1st, create a credentials file in the users home
> directory that is 
> >mounting the directory. I use the filename
> smbcreds. In this put the 
> >following, one per line and chmod 700 the file:
> username=w2kusername
> >password=w2kpassword
> >
> >This is the way you can insure your credentials are
> NOT found by all 
> >users.
> >
> >Next, the uid is the owner you want the share
> mounted with, the gid is 
> >the group you want the share mounted with, fmask is
> the file mask 
> >permissions you want (the example is
> 775(-rwxrwxr-x) ), and the dmask 
> >is the directory mask of the directories (the
> example is 
> >775(drwxrwxr-x) ). Your system can mount your
> drives at boot or you can 
> >mount/umount a samba share using the standard
> "mount /sharename" 
> >"umount /sharename" commands.
> >
> >Hope this helps.
> >
> >-----Original Message-----
> >From: Robert Baker [mailto:rbaker at smithlaw.com]
> >Sent: Friday, October 11, 2002 11:52 AM
> >To: 'trilug at trilug.org'
> >Subject: RE: [TriLUG] Newbie Question about
> smbclient
> >
> >
> >Mark,
> >
> >Thanks that worked great. Just had to re-login as
> root to do it.
> >
> >Is there a way to make this connection persistent?
> >So every time I login it will be there?
> >
> >Do I have to edit the smb.conf or samba.conf file
> to accomplish this?
> >
> >I don't have an smb.conf file in the /etc dir.
> >Do I have to create one?
> >
> >Thanks
> >
> >
> >  
> >
> >>>>Rob Baker <<<
> >>>>        
> >>>>
> >Webcentric Applications Developer
> >
> >-----Original Message-----
> >From: Mark Fowle [mailto:mark at thefowles.com]
> >Sent: Friday, October 11, 2002 11:33 AM
> >To: trilug
> >Subject: Re: [TriLUG] Newbie Question about
> smbclient
> >
> >
> >If you are connecting to the Windows share from the
> linux box, its just 
> >a regular mount -
> >
> >mount -t smbfs -o
> username=w2kusername,password=w2kpassword
> >//w2kbox/share /mnt/linuxdirectory
> >
> >
> >You will have to user a valid username and password
> for the W2K box --
> >
> >Mark
> >
> >On Fri, 2002-10-11 at 11:27, Robert Baker wrote:
> >  
> >
> >>I just installed RH8 on a testing client machine
> and would like to 
> >>connect to a windows share on one of our W2K
> boxes.
> >> 
> >>Currently I can do this by using this command:
> >>"smbclient //servername/sharename
> <file://\\servername/sharename> "
> >> 
> >>Is there a way to "map" this to a directory?
> >>I'd like to assign this a path maybe? So I could
> change dir's to get 
> >>to the files.
> >> 
> >>Thanks
> >> 
> >><> Rob Baker <>
> >>Webcentric Applications Developer
> >>    
> >>
> >
> >
> >_______________________________________________
> >TriLUG mailing list
> >    http://www.trilug.org/mailman/listinfo/trilug
> >TriLUG Organizational FAQ:
> >   
> http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
> >_______________________________________________
> >TriLUG mailing list
> >    http://www.trilug.org/mailman/listinfo/trilug
> >TriLUG Organizational FAQ:
> >   
> http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
> >_______________________________________________
> >TriLUG mailing list
> >    http://www.trilug.org/mailman/listinfo/trilug
> >TriLUG Organizational FAQ:
> >   
> http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
> >  
> >
> 
> _______________________________________________
> TriLUG mailing list
>     http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>    
> http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
> _______________________________________________
> TriLUG mailing list
>     http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>    
http://www.trilug.org/~lovelace/faq/TriLUG-faq.html


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com



More information about the TriLUG mailing list