[Samba] Samba4 fails to work following upgrade - library version errors

Graeme Porter graeme.porter at yahoo.co.uk
Wed Apr 17 06:34:22 MDT 2013


Whoops  :(

Well, every day's a school day - pretty much the reason why I got the Raspberry Pi in the first place was to learn Linux, so thanks for the tip!

Also love the Roald Dahl reference in your e-mail address.

Kind regards

Graeme



________________________________
 From: Michael Wood <esiotrot at gmail.com>
To: Graeme Porter <graeme.porter at yahoo.co.uk> 
Cc: Andrew Bartlett <abartlet at samba.org>; "samba at lists.samba.org" <samba at lists.samba.org> 
Sent: Wednesday, 17 April 2013, 12:54
Subject: Re: [Samba] Samba4 fails to work following upgrade - library version errors
 

On 17 April 2013 13:41, Graeme Porter <graeme.porter at yahoo.co.uk> wrote:
> The symlinks were made by entering:
>
> ln /usr/local/samba/sbin/samba /usr/bin/samba
> ln /usr/local/samba/sbin/smbclient /usr/bin/smbclient

That's what I suspected :)

Those are hard links, not symbolic/soft links.

You need to use "ln -s source destination" to create symlinks.

> I realise this isn't the correct way of doing things (obviously the correct
> way would be to update the system PATH environment variable), but at the
> same time I can't see why it's a bad idea.  Unless something happens to the
> symlink that I wasn't expecting when the file it is linking to is removed or
> altered?

If you create a hard link to a file, the original file name and the
new hard link are indistinguishable from each other.  They are both
names that point to the actual file.  If you remove one of them (e.g.
by running "make install") the other one will still be there, pointing
to the original file on disk.

i.e. hard links point to the actual file.  Symbolic links are names
that point to other names.

-- 
Michael Wood <esiotrot at gmail.com>


More information about the samba mailing list