From: Joe Beanfish on 5 Apr 2010 13:26 On 04/02/10 21:33, Grant Edwards wrote: > On 2010-04-03, Grant<omg(a)grrr.id.au> wrote: >> On Fri, 2 Apr 2010 21:58:38 +0000 (UTC), Grant Edwards<invalid(a)invalid.invalid> wrote: >> >>> On 2010-04-02, Todd<todd(a)invalid.com> wrote: >>>> On 04/02/2010 01:36 PM, Grant Edwards wrote: >>>>> On 2010-04-02, Todd<todd(a)invalid.com> wrote: >>>>>> On 04/02/2010 12:35 PM, Douglas Mayne wrote: >>>>>> >>>>>>> man smbclient >>>>>> >>>>>> But, can I do it without mounting the share. I want to do it on the >>>>>> fly. >>>>> >>>>> Here's a novel idea: >>>>> >>>>> Two people have told you you can use smbclient to do what you want, >>>>> so go read the documentation on smbclient. >>>> >>>> CIFS use to not work with smbclient. > > I'm afraid I still don't understand the meaning of that last sentence. > > Are there certain Microsfot CIFS/SMB servers that won't work with > smbclient? > >>> Isn't CIFS just Microsoft's latest re-branding of the SMB protocol? >> >> It's a bit more involved. > > OK, I'm willing to read. Where can I find out the difference between > CIFS and SMB? Wikipedia says they're the same thing: > > In computer networking, Server Message Block (SMB, also known as > Common Internet File System, CIFS) operates as an application-layer > network protocol[1] mainly used to provide shared access to files, > printers, serial ports, and miscellaneous communications between > nodes on a network. > > Microsoft says that CIFS is a particular version of SMB: > > The Server Message Block (SMB) Protocol is a network file sharing > protocol, and as implemented in Microsoft Windows is known as > Microsoft SMB Protocol. The set of message packets that defines a > particular version of the protocol is called a dialect. The Common > Internet File System (CIFS) Protocol is a dialect of SMB. > >> Linux smbfs is no longer maintained, cifs is. That's the reason for >> using cifs these days. > > I thought that smbfs was one particular implementation of SMB/CIFS for > Linux -- one that's been replaced by a newer implementation. > Wiki is wrong, they are not synonymous. Basically cifs is a superset of smb. Think along the lines of nfs v2 vs. v3. Newer software can handle either, older software can only handle older. There was a time when cifs support in linux was non-existent or experimental. For example in early cifs implementations trying to open a soft link from a cifs share would almost always hard lock the system.
From: Todd on 5 Apr 2010 14:22 On 04/05/2010 10:26 AM, Joe Beanfish wrote: > Wiki is wrong, they are not synonymous. Basically cifs is a superset of > smb. Think along the lines of nfs v2 vs. v3. Newer software can > handle either, older software can only handle older. There was a time > when cifs support in linux was non-existent or experimental. For example > in early cifs implementations trying to open a soft link from a cifs > share would almost always hard lock the system. That explains a lot of troubles I had years ago.
From: Morten L on 18 Apr 2010 07:31
Todd <todd(a)invalid.com> skrev 2010-04-02: > Hi All, > > There is a smb shared file out on my Samba Server > that I would like to read from a bash script. > Is there a way to do a one time read from my > bash script without having to mount the share? > > Something like: > > cat smb://server/netlogon/startup.bat \ > -u=todd -p=foo | grep -i set > $0.tmp Like this: ssh -l todd server cat /RealLinuxPathTo/netlogon/startup.bat NOT with password on command line, instead you can use authorized_keys for ssh login without password Enjoy -- Morten L |