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
  •  


Case For Samsung Galaxy Tab A9/ A9+ 5G/ A9 Plus Kids Shockproof Cover with Stand picture

Case For Samsung Galaxy Tab A9/ A9+ 5G/ A9 Plus Kids Shockproof Cover with Stand

$16.99



EXCELLENT SAMSUNG GALAXY TAB 4 10.1in SM-T537V 16GB WIFI VERIZON ANDROID TABLET picture

EXCELLENT SAMSUNG GALAXY TAB 4 10.1in SM-T537V 16GB WIFI VERIZON ANDROID TABLET

$44.99



Samsung Galaxy Tab A9 (X110) 64GB 4GB RAM International Version (New) picture

Samsung Galaxy Tab A9 (X110) 64GB 4GB RAM International Version (New)

$129.99



Samsung - S Pen Creator Edition - White picture

Samsung - S Pen Creator Edition - White

$38.00



Samsung USB 3.1 Flash Drive Bar Plus 256gb TITAN Gray picture

Samsung USB 3.1 Flash Drive Bar Plus 256gb TITAN Gray

$21.50



Samsung Galaxy 12.4 Inch EF-DT730 Slim Keyboard For  S7+ | S7 FE | S8+ | S8+ 5G picture

Samsung Galaxy 12.4 Inch EF-DT730 Slim Keyboard For S7+ | S7 FE | S8+ | S8+ 5G

$39.99



Samsung Galaxy Tab E 8

Samsung Galaxy Tab E 8" 16GB Black SM-T377V (Verizon) Android Tablet IG1000

$30.35



Samsung Galaxy Tab Active 2 8

Samsung Galaxy Tab Active 2 8" Wi-Fi 16GB Tablet Touch Android 9 w/ S Pen Bundle

$49.49



Samsung Official Book Cover Keyboard for Galaxy Tab S9+ / Tab S9+ 5G (Black) picture

Samsung Official Book Cover Keyboard for Galaxy Tab S9+ / Tab S9+ 5G (Black)

$131.99



Samsung PM9A3 2.5

Samsung PM9A3 2.5" 1.92TB SSD PCIe Gen4 MZ-QL21T90

$120.00