Re: [SLUG] Samba File sharing

From: Zoltan Patay (zoltanpatay@gmail.com)
Date: Thu Jun 30 2005 - 22:53:42 EDT


The computer you have the files on that you would like to access from
the others would have the NFS shares (see one of the posters how to
set up, they are called nfs exports)

You could also export the /home directory on your "server". If you
have the users on each individual machine, (and not using NIS - this
is a centralized authentication for unixes) make sure all your yousers
have the SAME user id and group id on all computers. For example "joe"
has uid (user id) 1000 on the "server" and guid (gorup id) 1000 then
the user "joe" on the client PCs should also have the same uid and
gid. All other user names should follow this. Providing you have only
a few PCs and few users you just have to create all usera on "server"
then match them on all "clients"

Now export the "shares" on server.

On client as root do:

mount <server ip>:/path-of-exported-directory

for example is you exported /home on server, and the server has ip 192.168.0.1

on client you do:

mount 192.168.0.1:/home /home

this will mount the exported /home directory of the server as /home on
client. Notice that the documents in /home on client are that of the
servers. The original documents in client's /home did not dissappear
nor got deleted. THey are overlayed by the server's exported /home. If
all works as expected, then unmount /home (the NFS), then move the
/home on client to say /home.local and create a new /home then remount
the server's NFS. Noe you have in /home.local the client's old data
and in /home the server's. Move users files from /home.local to /home.
Make sure you do this as each user (not as root, this is for
simplicity) and move only their own stuff.

Of course best thing is to read up on this and understand all the
bits, that is uid, guid, acl, but there is also a simpler way:

Use KDE, in kde you can simply say in any app in the address. Before
trying this make sure the target pc is running the ssh server.

fish://<<other machine's user name>@other machine's ip address>

hit enter, provide paswd. Now you can access all files from any kde app.

This is much simpler that setting up centralized authentication (NIS),
pam, NFS uid and gid.

To learn things quickly is to do things simple that gives the solution
right away (and have the warm kozzy feeling of sucess) then get into
the more complex big-boys setup...

So access files on other pcs running linux on your small home lan (or
any ip you can reach over the internet for that matter): use kde and
kioslaves (read up on kioslaves, fish:// is one of them).

Z

On 6/30/05, calebsr2k <calebsr2k@acm.org> wrote:
> SOTL wrote:
>
> >On Thursday 30 June 2005 13:59, calebsr2k wrote:
> >
> >
> >>Hello everone,
> >> I have linux installed on three machines in my home. All of the
> >>machines can access the internet. I have a router that use to share my
> >>broadband connection. My problem is that I have files on my desktop
> >>that I want to share with the other two workstations. I have tried smbk4
> >>and keep getting authenication errors. I am using the same username and
> >>password on all of the systems and have currently dropped the firewall.
> >>Can anyone tell me what I am missing or at least point me to a place
> >>that may be able to get me started on the right track?
> >>
> >>
> >>Thank you In Advance
> >>
> >>
> >
> >What do you mean by share?
> >
> >If you mean you want or need to open the same file in two different machines
> >at then same time then you need NFS [work only on Linux] or Samba [ allows
> >connection to MS network but is harder to set up than NFS].
> >
> >
> I would love to know how to use nfs properly.
> I have a desktop that I would like to setup to allow the other two
> computers on my netwwork to access files from. This is why I was trying
> to use samba.
>
> >If you mean that you want to transfer files easily between two or more
> >computers then best bet is to load KDE and use Kfish which rides on top of
> >SSH. Much easier and nicer than NFS or Samba and a charm to set up.
> >
> >Frank
> >
> >-----------------------------------------------------------------------
> >This list is provided as an unmoderated internet service by Networked
> >Knowledge Systems (NKS). Views and opinions expressed in messages
> >posted are those of the author and do not necessarily reflect the
> >official policy or position of NKS or any of its employees.
> >
> >
> >
>
> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages
> posted are those of the author and do not necessarily reflect the
> official policy or position of NKS or any of its employees.
>

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:29:30 EDT