Re: Samba update moved my shares (again)
On Sunday 24 April 2005 02:56, Kevin Krumwiede wrote:
> OK, if that's the case, then why is it moving my shares into /var/lib?
> If /var doesn't imply dynamic data, /lib definitely doesn't. Note that
> apache and mysql also puts their data in /var by default, which has
> always seemed perfectly reasonable.
There seems to be two issues being discussed here
1) Is /var/lib/samba the right place to put shared files. I haven't read the
linux standards base in detail so this is not a comment on that,
but /var/lib/xxx seems to be the place where lots of packages store data that
is common to more than one user. Indeed on my setup I
have /var/lib/samba/fileshare as one such share that all users automatically
have access to and can store files there, but if you look in /var/lib you
will see directories for lots of packages.
2) That files are being moved into this position.
This is the part that really suprises me. In order to make that happen the
installation software would have to parse an existing /etc/samba/smb.conf and
figure out where the shares currently were, then move the data and update
smb.conf, and all just to confuse the user.
(I just looked over a previous post and you sort of imply - not sure I
understood you correctly - that your data got moved but smb.conf did not get
updated. In this scenario I just cannot believe it is the samba installation
doing it, but some other task on your system. Have you looked
in /etc/logrotate.d and checked nothing in there is moving stuff?)
On the otherhand, I could imagine a situation were and
existing /etc/samba/smb.conf got overwritten with a new one which just put
some standard fileshares in that position (with old data being left behind).
>
> The point is, samba should respect where I choose to put my files, and
> it certainly should not delete users from my system without asking me!
Now you have changed what you said slightly "delete users". What do you mean
by that?
> In my case, it wouldn't hurt anything to just let the shares be in
> /var/lib, because all of /var is on a single partition. It's the
> principle of the thing that's bugging me...
>
On my setup I have some samba shares in /var/lib/samba and others in
differernt directories. Never has anything ever updated my stuff without me
wanting it to (I use SWAT to manage my configuration). I think we have to
spend more time getting down to exactly what is happening here.
--
Alan Chandler
http://www.chandlerfamily.org.uk
Reply to: