Results 1 to 6 of 6

Thread: How does filesharing work?I

  1. #1
    Member registered user
    Join Date
    Jul 2003
    Location
    Delft, the Netherlands
    Posts
    76

    How does filesharing work?I

    I am trying so set up a LAN with all Linux-boxes. Mounting a Windows-share works like a breeze, but with the devotion of a newly convert I like to keep it all Linux. Here is the setup so far: two machines, both running knoppix, network is up, both machines can ping each other, I have an account on both machines.

    On box_1:
    - "enable users to share folders from there home directory" is enabled.
    - Start Konqueror.
    - In my home-directory I right-click a folder, select "properies" and in the tab sharing I enable sharing. Then I click OK.
    - I right-click again, and sharing is still _disabled_ (and yes it is the same folder).
    - Several repeats with the same result; clicking "cancel" doesn't work either.

    So, this option has an attitude or I am doing something wrong?.

    But, on box_2:
    - Start Konqueror.
    - Type "lan:/192.168.0.1" <enter>
    - The location-bar changes to "lan://localhost/192.168.0.1 and I see two folders: "FISH" and "SMB".
    - Clicking "SMB" produces an error.
    - Clicking "FISH" prompts my for my name and password.
    - The location-bar changes to "FISH://192.168.0.1/home/edwin

    And then I get to see my entire home-directory on box_1, hidden files and dirs included. In fact I can see every directory on that machine, and it seems that I have all the permissions of my account on that box.

    Is this the way it is supposed to work? I must be missing something here, but what I want is for every user on the LAN to have only one folder to show on box_1. They can can put their files there and daddy will take care of the backup, just because no one else will :=(

    Any pointers are greatly appreciated.

    - - Edwin

  2. #2
    Junior Member registered user
    Join Date
    Jul 2003
    Posts
    12

    Re: How does filesharing work?I

    Check either the 'docs' link up top, or the FAQ link. There is one of them there about setting up Samba sharing. (windows friendly) Its all command line stuff... and I there were a few things that, atleast for me, I had to do a hair differently. But... the nice thing (Im hoping) about it being command line... is it can all be done via a script. If you cant get it working, post back and I'll post the exact commands I did to get it working. I wrote them down somewhere.

    I can't vouch this is the smartest way to do it, but it is in the FAQ's *shrug*.


    Brad

    Now... if I could just figure out how to add a printer and share it... hehehe

  3. #3
    Member registered user
    Join Date
    Jul 2003
    Location
    Delft, the Netherlands
    Posts
    76

    Re: How does filesharing work?I

    Quote Originally Posted by scissors
    Check either the 'docs' link up top, or the FAQ link. There is one of them there about setting up Samba sharing. (windows friendly)
    I did check the FAQ and the DOC's before posting. Could not find an answer, though. But I am not interessed in Samba sharing. I can do that, and don't even need a command-line for it. I use LinNeighborhood... works great.

    I guess I did not explain myself clearly. I want to have a Linux-machine on the LAN act as a file-server. And I don't want to see users to see the whole directory-tree, but only their folder.

    Quote Originally Posted by scissors
    I can't vouch this is the smartest way to do it, but it is in the FAQ's *shrug*.
    Could you provide a URL to that FAQ please?

    Regards,

    - - Edwin

  4. #4

  5. #5
    Member registered user
    Join Date
    Jul 2003
    Location
    Delft, the Netherlands
    Posts
    76
    Quote Originally Posted by scissors
    http://www.knoppix.net/docs/index.php/FaqSambaQuick
    Thank you. But I have read that. I even read the German version to see if that made more sense. It is not what I am looking for. On the second line it states: "CAUTION: The complete filesystem of Knoppix will be shared". The German version adds to that: "Das ist also nur für eine Rettung geeignet, da jeder im Netzwerk auf die Dateien Zugriff hat". Please see my original post. I have already managed to share my entire filesystem (without any shell-commands). But what I want is to share only certain directories. Sort of like how sharing in Windows or MacOS works.

    Now I could be missing something here, but as far as I know Samba stands for "Server Message Block" also known as NetBIOS; it is used to share files between Linux and Windows systems. That is what I conclude from the man-pages _and_ from the above mentioned FAQ anyway.

    But if it can be used for my purposes I guess I will need more directions.

    Regards,

    - - Edwin

  6. #6
    Junior Member registered user
    Join Date
    Jul 2003
    Posts
    12
    Quote Originally Posted by Edwin
    Quote Originally Posted by scissors
    http://www.knoppix.net/docs/index.php/FaqSambaQuick
    On the second line it states: "CAUTION: The complete filesystem of Knoppix will be shared". The German version adds to that: "Das ist also nur für eine Rettung geeignet, da jeder im Netzwerk auf die Dateien Zugriff hat".
    - - Edwin
    I would think you can just alter the following lines :

    [root]
    path = /
    public = yes

    To something applicable to what you want, similar to:

    [knoppix]
    path = /home/knoppix

    -----------

    One additional note, something I came across in a search of the groups yesterday. (Quoting my notes)
    To start samba with default knoppix home dir shared:
    Code:
    sudo /etc/init.d/samba start
    smbpasswd -a knoppix
    So do this for each user. Im guessing that you would only need to add the passwords once? Perhaps after entering these commands you could check to see if they were written into /etc/samba/smbpasswd.

Similar Threads

  1. Replies: 1
    Last Post: 02-28-2005, 12:32 AM
  2. Soundcard Yamaha don't work under K3.3, work under K3.2
    By Mokoshi in forum Hardware & Booting
    Replies: 3
    Last Post: 02-17-2004, 04:52 PM
  3. Replies: 0
    Last Post: 04-19-2003, 08:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS

$712.98



DELL PowerEdge R730XD 24x 2.5

DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED

$269.99



Supermicro 4U 4x Nvidia GPU AI Server 2.1Ghz 16-Core 192GB 2x10G SFP+ 2x2200W picture

Supermicro 4U 4x Nvidia GPU AI Server 2.1Ghz 16-Core 192GB 2x10G SFP+ 2x2200W

$1250.00



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$89.99



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD picture

HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD

$196.95



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$284.00



PowerEdge R710 Rackmount Server 80GB RAM 2x XEON E5520 CPU 4.75TB picture

PowerEdge R710 Rackmount Server 80GB RAM 2x XEON E5520 CPU 4.75TB

$200.00