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
  •  


Novell SUSE Linux Enterprise Server 9, Linux Professional 8.2 / 9.1 — 3 DVD Set picture

Novell SUSE Linux Enterprise Server 9, Linux Professional 8.2 / 9.1 — 3 DVD Set

$58.00



Microsoft SQL Server 2019 Enterprise 40 Core Unlimited CAL Retail License FPP picture

Microsoft SQL Server 2019 Enterprise 40 Core Unlimited CAL Retail License FPP

$299.00



Ubuntu Server 26.04.1 LTS Bootable USB Flash Drive – Latest September 2026 picture

Ubuntu Server 26.04.1 LTS Bootable USB Flash Drive – Latest September 2026

$12.99



RED HAT ENTERPRISE LINUX 5 SERVER RHF0382US-R1 for PC x86 AMD 64 INTEL 64 30 Day picture

RED HAT ENTERPRISE LINUX 5 SERVER RHF0382US-R1 for PC x86 AMD 64 INTEL 64 30 Day

$188.24



OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN picture

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN

$115.00



OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC picture

OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC

$175.00



1U Rackmount PC Intel Core i5-2520M 8GB RAM 500GB HDD Ubuntu Linux Server picture

1U Rackmount PC Intel Core i5-2520M 8GB RAM 500GB HDD Ubuntu Linux Server

$109.99



All New Ubuntu 26.04 LTS Linux Bootable USB Flash Drive picture

All New Ubuntu 26.04 LTS Linux Bootable USB Flash Drive

$15.95



SQL Server 2022 Enterprise 96 Core License & DVD Unlimited CALs with CoA picture

SQL Server 2022 Enterprise 96 Core License & DVD Unlimited CALs with CoA

$284.99



Sun Enterprise e450 400mhz cpu(x4), 4gb ram, 9gb HD w/spud most complete on ebay picture

Sun Enterprise e450 400mhz cpu(x4), 4gb ram, 9gb HD w/spud most complete on ebay

$500.00