HOWTO:SambaNetwork

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(Access from PardusPC to shared folder in WinPC)
(Settings for Pardus 2011)
 
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
=Configuration of network between Pardus and WindowsXP=
 
=Configuration of network between Pardus and WindowsXP=
 
==Translation of Dutch text==
 
As I don't have an English version of WinXP, I am supplying the exact Dutch text in this manual.
 
This is to prevent errors.
 
Anybody with a English version of WinXP is invited to replace this text with the precise English version.
 
Or post the precise English version at http://worldforum.pardus-linux.nl/index.php?topic=1017.30
 
And when everything is in English, remove this section.
 
  
 
==Introduction==
 
==Introduction==
I made this manual after a new installation of Pardus 2008.1 and WindowsXP Professional (+SP2).
+
This is a manual about configuring a network between computers after a new installation of Pardus and WindowsXP Professional (+SP2).
  
 
Both computers are connected to a router or a switch.
 
Both computers are connected to a router or a switch.
Line 16: Line 9:
  
 
{text} = the text in a window.
 
{text} = the text in a window.
 +
= Settings for Pardus 2011=
 +
1. Open a konsole.
 +
 +
2. Install required software:
 +
 +
{{command | sudo pisi it samba-swat xinetd -y}}
 +
 +
3. Get root privileges:
 +
 +
{{command | su}}
 +
 +
4. Create a file "/etc/xinetd.d/swat" as shown in the picture bellow.
 +
 +
The easiest way is to select/copy the entire text in the box below and paste it in the konsole and check for a 100% equal result from the picture below.
 +
rm /etc/xinetd.d/swat -f
 +
echo 'service swat
 +
{
 +
        port            = 901
 +
        socket_type    =  stream
 +
        protocol        =  tcp
 +
        wait            =  no
 +
        user            =  root
 +
        server          =  /usr/sbin/swat
 +
        only_from      =  127.0.0.1
 +
        log_on_failure  += USERID
 +
        disable        =  no
 +
} '>>/etc/xinetd.d/swat
 +
exit
 +
more /etc/xinetd.d/swat
 +
 +
[[Image:Samba-swat-swatfile.png‎|300px|File /etc/xinetd.d/swat]]
 +
 +
5. Start KWrite with root privileges and modify file /etc/services:
 +
 +
{{command | /usr/lib/kde4/libexec/kdesu kwrite /etc/services}}
 +
 +
(wait some seconds for KWrite to appear) and change (with function Edit > Replace) the text (2x)
 +
smpnameres
 +
into
 +
#smpnameres
 +
6. After saving check with:
 +
 +
{{command |  more /etc/services | grep smpnameres}}
 +
 +
[[Image:Samba-swat-etc-services.png|550px|Check file /etc/services]]
 +
 +
7. Set password for root:
 +
 +
{{command | sudo smbpasswd -a root}}
 +
 +
(''ignore warnings (10x) "account_policy_get: tdb_fetch_uint32 failed for type .."'')
 +
 +
8. Add root as user:
 +
 +
{{command | sudo smbpasswd -e root}}
 +
 +
[[Image:Samba-swat-smbpassword.png|550px|Adding smbpassword and user]]
 +
 +
9. Set Xinetd at startup and activate the service in System Settings > Service Manager.
 +
 +
(''in konsole with
 +
 +
{{command | sudo service xinetd on}}
 +
 +
and
 +
 +
{{command | sudo service xinetd start}}'' )
 +
 +
 +
10. Login to the Samba Settings page in Firefox at address http://localhost:901/
 +
 +
[[Image:Samba-swat-login-welcome.png|550px|Login and welcome of samba]]
 +
 +
11. Allow (if applicable) traffic on port 445 at the Incomming connections of the Firewall in System Setting > Firewall.
 +
 +
[[Image:Samba-swat-firewall.png|400px|Enable port 445 for smb in firewall]]
 +
 +
12. Set Samba at startup and activate the service in System Settings > Service Manager or reload the service after every change in the Samba Settings.
 +
 +
(''in konsole with
 +
{{command | sudo service samba on}}
 +
 +
and
 +
 +
{{command | sudo service samba start}} or {{command | sudo service samba reload}}'' )
 +
 +
13. Access from client computer to server (samba) computer through
 +
smb://username@ip.address.of.server
 +
in address bar of Dolphin.
 +
 +
[[Image:Samba-swat-access.png|400px|Access in Dolphin to server]]
 +
 +
=Settings for Pardus 2009/2008=
 +
==Pardus 2009==
 +
[System Settings] > [Service Manager]
 +
      if not green flag at samba: put cursor on samba > check mark at "Run on start' > Activate [Start service] (flag turns green).
 +
 +
[System Settings] > [Firewall Manager]
 +
      if "Firewall is activated" check that there is no mark at "Block Incoming Connections"
  
==Setup of Pardus==
+
[System Settings] > [Network Manager]
 +
      make a note of the IP address
 +
or
 +
[System Settings] > [Advanced]>[Samba]
 +
      make a note of the "NetBIOS name:"
  
[Pardus]>[Tasma]>[System]>[Service Manager]
+
==Pardus 2008==
 +
[Tasma] > [System] > [Service Manager]
 
       Select [SMB Network Sharing].
 
       Select [SMB Network Sharing].
 
       Put a mark at {Run on startup} and activate the green (Start)button.
 
       Put a mark at {Run on startup} and activate the green (Start)button.
 
       In the column {Run on Startup} {Yes} should be shown.
 
       In the column {Run on Startup} {Yes} should be shown.
 
       [Back].
 
       [Back].
  [Internet & Network]>[Firewall Config]  
+
  [Internet & Network] > [Firewall Config]  
 
       [Start Firewall] (if not already running)
 
       [Start Firewall] (if not already running)
 
       Put a mark at {Windows file sharing service}
 
       Put a mark at {Windows file sharing service}
       [Apply]>[Back]
+
       [Apply] > [Back]
  [Samba]>[Base Settings]  
+
  [Samba] > [Base Settings]  
 
       Make a note of the {NetBIOS name:} (this is referred to as NetBIOSnamePardusPC)
 
       Make a note of the {NetBIOS name:} (this is referred to as NetBIOSnamePardusPC)
 
       [Back]
 
       [Back]
Line 34: Line 131:
 
This directory will be readable from WinPC.
 
This directory will be readable from WinPC.
 
Making this directory writable from WinPC will come later in this manual.
 
Making this directory writable from WinPC will come later in this manual.
As this directory is empty, it is advisable to put a (image)file in this directory.
+
As this directory is empty after a new installation, it is advisable to put a (image)file in this directory.
  
==Setup of Windows==
+
=Settings for Windows=
  
  [start]>[Control Panel]>[Network Connections]>[Network Setup Wizard]
+
  [start] > [Control Panel] > [Network and Internet Connections] > [Network Connections] > [Network Setup Wizard]
 
       Check mark at {Yes, use the existing shared connection for this computer's Internet access(recommended)}
 
       Check mark at {Yes, use the existing shared connection for this computer's Internet access(recommended)}
 
       Make a note of the {Computer name:} (this is referred to as ComputernameWinPC)
 
       Make a note of the {Computer name:} (this is referred to as ComputernameWinPC)
Line 45: Line 142:
 
       Put a mark at {Just finish the wizard; I don't need to run the wizard on other computers}
 
       Put a mark at {Just finish the wizard; I don't need to run the wizard on other computers}
 
If you have Sygate firewall:
 
If you have Sygate firewall:
  Open Sygate firewall >[Tools]>[Options...]>[OK]>[Network Neighborhood]
+
  Open Sygate firewall > [Tools] > [Options...] > [OK] > [Network Neighborhood]
 
       Select Network Interface (with multiple interface cards)
 
       Select Network Interface (with multiple interface cards)
 
       Put a mark at {Allow others to share my files and printer(s)}
 
       Put a mark at {Allow others to share my files and printer(s)}
Line 54: Line 151:
 
[Home] and enter at {Location:}
 
[Home] and enter at {Location:}
 
  smb://ComputernameWinPC (+ enter).
 
  smb://ComputernameWinPC (+ enter).
 +
or
 +
smb://IP.address.of.the.remote.site (+ enter).
 +
 
(for ComputernameWinPC see [start]>[Control Panel]>[System]>[Computer Name]>{Full computer name}
 
(for ComputernameWinPC see [start]>[Control Panel]>[System]>[Computer Name]>{Full computer name}
  
It is possible to make a Link to Location (URL)... with {smb://ComputernameWinPC} on your Desktop.
+
It is possible to make a Link to Location (URL)... with {smb://...........} on your Desktop.
  
 
==Access from WinPC to shared folder in PardusPC==
 
==Access from WinPC to shared folder in PardusPC==
[start]>[Deze computer] and enter at {Adres:}
+
[start]>[My Computer] and enter at {Address:}
 +
 
 
  \\NetBIOSnamePardusPC (+ enter).
 
  \\NetBIOSnamePardusPC (+ enter).
 
or
 
or
Line 65: Line 166:
 
(for NetBIOSnamePardusPC see [Pardus]>[Tasma]>[Samba]>[Base Settings]>{NetBIOS name:})
 
(for NetBIOSnamePardusPC see [Pardus]>[Tasma]>[Samba]>[Base Settings]>{NetBIOS name:})
  
==Making /home/samba (share) writable==
+
=Making /home/samba (share) writable=
  [Pardus]>[Tasma]>[Internet & Network]>[Samba]>[Administrator Mode]>{enter administrator password +[OK]}
+
==Pardus 2009==
 +
[System Settings] > [Advanced] > [Samba] > {enter administrator password +[OK]} >
 +
        [Shares] > select {share} > [Edit Share...] > [Base Settings]
 +
    Remove the mark at {Read only}
 +
    [OK] > [Apply] > [OK]
 +
And to activate this change:
 +
[System Settings] > [Service Manager] > {SMB Network Sharing} and activate [Reload service] > [Overview]
 +
==Pardus 2008==
 +
  [Pardus] > [Tasma] > [Internet & Network]>[Samba] > [Administrator Mode] > {enter administrator password +[OK]}
 
     and {Loading..} appears
 
     and {Loading..} appears
     [Shares]>select {share}>[Edit Share...]
+
     [Shares] > select {share} > [Edit Share...]
 
     Remove the mark at {Read only}
 
     Remove the mark at {Read only}
     [OK]>[Apply]>[OK]
+
     [OK] > [Apply] > [OK]
And to activate this change:
+
And to activate this change:
  [System]>[Service Manager]
+
  [System] > [Service Manager] > Select [SMB Network Sharing] and activate [Stop] and then [Start] > [Back]
  Select [SMB Network Sharing] and activate [Stop] and then [Start]
+
[Back]
+
  
==Configuration of printer in Pardus==
+
=Configuration of printer (connected to WinPC) in Pardus=
 
This is valid when the printer is connected to WinPC.
 
This is valid when the printer is connected to WinPC.
  [Pardus]>[Tasma]>{Peripherals]>[Printers]>{Add}>{Add Printer/Class...}
+
==WinPC==
 +
From the shared printer (which is connected to WindowsXP) we need to know the IP address and the share name of the printer.
 +
[start] > [Printers and Fax] > right-click printer > [Properties} > [Share] >
 +
      note the Share name: (Share name printer) and check the mark at Share this printer:
 +
[start] > [Control Panel] > {Network and Internet Connections} > {Network Connections} >
 +
      double-click connection > Support > note the IP address: (IP.address.of.WINPC)
 +
==Pardus 2009==
 +
[System Settings] > [Printer Configuration] > [New Printer] > [New Network Printer] > {Windows Printer via SAMBA}
 +
  and fill-in at smb:// {IP.address.of.WINPC/Share name printer}
 +
          (for instance > 192.168.0.100/canonmp7 and is not case sensitive)
 +
  mark at {Prompt user if authentication is required} [> Forward]
 +
Select manufacturer [> Forward] select {Models} and {Driver}
 +
[> Forward]
 +
Enter {Printer Name} {Description} {Location} [OK]
 +
[Print Test Page] and if successful [Apply]
 +
==Pardus 2008==
 +
  [Pardus] > [Tasma] > {Peripherals] > [Printers] > {Add}>{Add Printer/Class...}
 
  [Next >]
 
  [Next >]
 
  [SMB shared printer (Windows)]
 
  [SMB shared printer (Windows)]
Line 94: Line 217:
 
  Supply a name for the printer  
 
  Supply a name for the printer  
 
  [Next >] (2x) [Back] and close Tasma
 
  [Next >] (2x) [Back] and close Tasma
==A network with more than one PardusPC==
+
 
 +
=A network with more than one PardusPC=
 
For this to function properly it is required that all {Workgroup:} and {NetBIOS name:} are different.
 
For this to function properly it is required that all {Workgroup:} and {NetBIOS name:} are different.
  
 
See [Pardus]>[Tasma]>[Internet & Network]>[Samba]>[Base Settings]
 
See [Pardus]>[Tasma]>[Internet & Network]>[Samba]>[Base Settings]
  
==Access from PardusPC to shared folder(/home/samba) on the other PardusPC==
+
=Access from PardusPC to shared folder(/home/samba) on the other PardusPC=
 
[Home] and enter at {Location:}
 
[Home] and enter at {Location:}
 
  smb://NetBIOSnamePardusPC(of the other PardusPC) (+ enter).
 
  smb://NetBIOSnamePardusPC(of the other PardusPC) (+ enter).
Line 107: Line 231:
 
It is possible to make a Link to Location (URL)... with {smb://..................} on your Desktop.
 
It is possible to make a Link to Location (URL)... with {smb://..................} on your Desktop.
  
== Making your Home directory readable on the network==
+
= Making your Home (or any other) directory readable on the network=
 
+
==Pardus 2009==
  [Pardus]>[Tasma]>[Internet & Network]>[Samba]>[Administrator Mode]>[Shares]>[Add New Share...]
+
[System Settings] > [Advanced] > [Samba] > {enter administrator password +[OK]} > [Shares] > [Add New Share...]
   in {Add/Edit Share} [Open file dialog] and select your /home/your_login_name directory >[OK]
+
  in {Add/Edit Share} > [Base Settings] > [Open file dialog] and select your /home/your_login_name directory > [OK]
 +
Enter a name at {Name:}
 +
Check/put mark at {Read only}{Public}{Browseable}{Available}
 +
[OK] > [Apply] > [OK]
 +
And to make the above directory visible/read-only:
 +
Open Home (Personal files), go[UP] to /home level, rightclick on your_login_name and select {Properties} >
 +
    [Permissions] > [Advanced Permissions]
 +
  Check/put mark at {Show Entries} for {User}{Group}{Others}>[OK]
 +
  Put a mark at {Only owner can rename and delete folder content}
 +
            and {Apply changes to all subfolders and their content}
 +
  [OK]
 +
==Pardus 2008==
 +
  [Pardus] > [Tasma] > [Internet & Network] > [Samba] > [Administrator Mode] > [Shares] > [Add New Share...]
 +
   in {Add/Edit Share} [Open file dialog] and select your /home/your_login_name directory > [OK]
 
  Enter a name at {Name:}
 
  Enter a name at {Name:}
 
  Check/put mark at {Read only}{Public}{Browseable}{Available}
 
  Check/put mark at {Read only}{Public}{Browseable}{Available}
 
  [OK]
 
  [OK]
  [Apply]>[OK]
+
  [Apply] > [OK]
 
And to activate this change:  
 
And to activate this change:  
  [System]>[Service Manager]  
+
  [System] > [Service Manager]  
 
   Select [SMB Network Sharing] and activate [Stop] and then [Start]  
 
   Select [SMB Network Sharing] and activate [Stop] and then [Start]  
 
  [Back]
 
  [Back]
Open Home (Personal files), go[UP] to /home level, rightclick on your_login_name and select {Properties}
+
And to make the above directory visible/read-only:
  [Permissions]>[Advanced Permissions]
+
Open Home (Personal files), go[UP] to /home level, rightclick on your_login_name and select {Properties} >
   Check/put mark at {Show Entries} for {User}{Group}{Others}>[OK]
+
      [Permissions] > [Advanced Permissions]
 +
   Check/put mark at {Show Entries} for {User}{Group}{Others} > [OK]
 
   Put a mark at {Only owner can rename and delete folder content}  
 
   Put a mark at {Only owner can rename and delete folder content}  
 
             and {Apply changes to all subfolders and their content}
 
             and {Apply changes to all subfolders and their content}
 
   [OK]
 
   [OK]

Latest revision as of 13:36, 7 March 2012

Contents

Configuration of network between Pardus and WindowsXP

Introduction

This is a manual about configuring a network between computers after a new installation of Pardus and WindowsXP Professional (+SP2).

Both computers are connected to a router or a switch.

[Apply] = activate the [Apply] button or select [this text].

{text} = the text in a window.

Settings for Pardus 2011

1. Open a konsole.

2. Install required software:

sudo pisi it samba-swat xinetd -y

3. Get root privileges:

su

4. Create a file "/etc/xinetd.d/swat" as shown in the picture bellow.

The easiest way is to select/copy the entire text in the box below and paste it in the konsole and check for a 100% equal result from the picture below.

rm /etc/xinetd.d/swat -f
echo 'service swat
{
       port            = 901
       socket_type     =  stream
       protocol        =  tcp
       wait            =  no
       user            =  root
       server          =  /usr/sbin/swat
       only_from       =  127.0.0.1
       log_on_failure  += USERID
       disable         =  no
} '>>/etc/xinetd.d/swat
exit
more /etc/xinetd.d/swat

File /etc/xinetd.d/swat

5. Start KWrite with root privileges and modify file /etc/services:

/usr/lib/kde4/libexec/kdesu kwrite /etc/services

(wait some seconds for KWrite to appear) and change (with function Edit > Replace) the text (2x)

smpnameres

into

#smpnameres

6. After saving check with:

more /etc/services

Check file /etc/services

7. Set password for root:

sudo smbpasswd -a root

(ignore warnings (10x) "account_policy_get: tdb_fetch_uint32 failed for type ..")

8. Add root as user:

sudo smbpasswd -e root

Adding smbpassword and user

9. Set Xinetd at startup and activate the service in System Settings > Service Manager.

(in konsole with

sudo service xinetd on

and

sudo service xinetd start )


10. Login to the Samba Settings page in Firefox at address http://localhost:901/

Login and welcome of samba

11. Allow (if applicable) traffic on port 445 at the Incomming connections of the Firewall in System Setting > Firewall.

Enable port 445 for smb in firewall

12. Set Samba at startup and activate the service in System Settings > Service Manager or reload the service after every change in the Samba Settings.

(in konsole with sudo service samba on

and

sudo service samba start or sudo service samba reload )

13. Access from client computer to server (samba) computer through

smb://username@ip.address.of.server

in address bar of Dolphin.

Access in Dolphin to server

Settings for Pardus 2009/2008

Pardus 2009

[System Settings] > [Service Manager]
      if not green flag at samba: put cursor on samba > check mark at "Run on start' > Activate [Start service] (flag turns green).
[System Settings] > [Firewall Manager]
      if "Firewall is activated" check that there is no mark at "Block Incoming Connections"
[System Settings] > [Network Manager]
      make a note of the IP address
or
[System Settings] > [Advanced]>[Samba]
      make a note of the "NetBIOS name:"

Pardus 2008

[Tasma] > [System] > [Service Manager]
      Select [SMB Network Sharing].
      Put a mark at {Run on startup} and activate the green (Start)button.
      In the column {Run on Startup} {Yes} should be shown.
      [Back].
[Internet & Network] > [Firewall Config] 
      [Start Firewall] (if not already running)
      Put a mark at {Windows file sharing service}
      [Apply] > [Back]
[Samba] > [Base Settings] 
      Make a note of the {NetBIOS name:} (this is referred to as NetBIOSnamePardusPC)
      [Back]

As a default the /home/samba directory is configured as a shared directory. This directory will be readable from WinPC. Making this directory writable from WinPC will come later in this manual. As this directory is empty after a new installation, it is advisable to put a (image)file in this directory.

Settings for Windows

[start] > [Control Panel] > [Network and Internet Connections] > [Network Connections] > [Network Setup Wizard]
      Check mark at {Yes, use the existing shared connection for this computer's Internet access(recommended)}
      Make a note of the {Computer name:} (this is referred to as ComputernameWinPC)
      Put a mark at {Turn on file and printer sharing}
      {To apply these settings, click Next}
      Put a mark at {Just finish the wizard; I don't need to run the wizard on other computers}

If you have Sygate firewall:

Open Sygate firewall > [Tools] > [Options...] > [OK] > [Network Neighborhood]
      Select Network Interface (with multiple interface cards)
      Put a mark at {Allow others to share my files and printer(s)}
      [OK]

After this a restart of the computer is required.

Access from PardusPC to shared folder in WinPC

[Home] and enter at {Location:}

smb://ComputernameWinPC (+ enter).

or

smb://IP.address.of.the.remote.site (+ enter).

(for ComputernameWinPC see [start]>[Control Panel]>[System]>[Computer Name]>{Full computer name}

It is possible to make a Link to Location (URL)... with {smb://...........} on your Desktop.

Access from WinPC to shared folder in PardusPC

[start]>[My Computer] and enter at {Address:}

\\NetBIOSnamePardusPC (+ enter).

or

\\IP.address.of.the.remote.site (+ enter).

(for NetBIOSnamePardusPC see [Pardus]>[Tasma]>[Samba]>[Base Settings]>{NetBIOS name:})

Making /home/samba (share) writable

Pardus 2009

[System Settings] > [Advanced] > [Samba] > {enter administrator password +[OK]} > 
        [Shares] > select {share} > [Edit Share...] > [Base Settings]
   Remove the mark at {Read only}
   [OK] > [Apply] > [OK]

And to activate this change:

[System Settings] > [Service Manager] > {SMB Network Sharing} and activate [Reload service] > [Overview]

Pardus 2008

[Pardus] > [Tasma] > [Internet & Network]>[Samba] > [Administrator Mode] > {enter administrator password +[OK]}
   and {Loading..} appears
   [Shares] > select {share} > [Edit Share...]
   Remove the mark at {Read only}
   [OK] > [Apply] > [OK]

And to activate this change:

[System] > [Service Manager] > Select [SMB Network Sharing] and activate [Stop] and then [Start] > [Back]

Configuration of printer (connected to WinPC) in Pardus

This is valid when the printer is connected to WinPC.

WinPC

From the shared printer (which is connected to WindowsXP) we need to know the IP address and the share name of the printer.

[start] > [Printers and Fax] > right-click printer > [Properties} > [Share] > 
     note the Share name: (Share name printer) and check the mark at Share this printer: 
[start] > [Control Panel] > {Network and Internet Connections} > {Network Connections} > 
     double-click connection > Support > note the IP address: (IP.address.of.WINPC)

Pardus 2009

[System Settings] > [Printer Configuration] > [New Printer] > [New Network Printer] > {Windows Printer via SAMBA}
  and fill-in at smb:// {IP.address.of.WINPC/Share name printer}
         (for instance > 192.168.0.100/canonmp7 and is not case sensitive)
  mark at {Prompt user if authentication is required} [> Forward]
Select manufacturer [> Forward] select {Models} and {Driver}
[> Forward]
Enter {Printer Name} {Description} {Location} [OK]
[Print Test Page] and if successful [Apply]

Pardus 2008

[Pardus] > [Tasma] > {Peripherals] > [Printers] > {Add}>{Add Printer/Class...}
[Next >]
[SMB shared printer (Windows)]
[Next >]
{Guest account (login="guest")}
[Next >]
[Scan] fold out scanresult and select de printer 
[Next >]
Select the {Manufacturer} and {Model}
[Next >]
Select the recommended driver (if not working select the simplified version)
[Next >] 
Test the printer
[Next >] (3x)
Supply a name for the printer 
[Next >] (2x) [Back] and close Tasma

A network with more than one PardusPC

For this to function properly it is required that all {Workgroup:} and {NetBIOS name:} are different.

See [Pardus]>[Tasma]>[Internet & Network]>[Samba]>[Base Settings]

Access from PardusPC to shared folder(/home/samba) on the other PardusPC

[Home] and enter at {Location:}

smb://NetBIOSnamePardusPC(of the other PardusPC) (+ enter).

or

smb://IP.address.of.the.remote.site (+ enter).

It is possible to make a Link to Location (URL)... with {smb://..................} on your Desktop.

Making your Home (or any other) directory readable on the network

Pardus 2009

[System Settings] > [Advanced] > [Samba] > {enter administrator password +[OK]} > [Shares] > [Add New Share...]
 in {Add/Edit Share} > [Base Settings] > [Open file dialog] and select your /home/your_login_name directory > [OK]
Enter a name at {Name:}
Check/put mark at {Read only}{Public}{Browseable}{Available}
[OK] > [Apply] > [OK]

And to make the above directory visible/read-only:

Open Home (Personal files), go[UP] to /home level, rightclick on your_login_name and select {Properties} > 
    [Permissions] > [Advanced Permissions]
 Check/put mark at {Show Entries} for {User}{Group}{Others}>[OK]
 Put a mark at {Only owner can rename and delete folder content} 
           and {Apply changes to all subfolders and their content}
 [OK]

Pardus 2008

[Pardus] > [Tasma] > [Internet & Network] > [Samba] > [Administrator Mode] > [Shares] > [Add New Share...]
 in {Add/Edit Share} [Open file dialog] and select your /home/your_login_name directory > [OK]
Enter a name at {Name:}
Check/put mark at {Read only}{Public}{Browseable}{Available}
[OK]
[Apply] > [OK]

And to activate this change:

[System] > [Service Manager]	 
 Select [SMB Network Sharing] and activate [Stop] and then [Start]	 
[Back]

And to make the above directory visible/read-only:

Open Home (Personal files), go[UP] to /home level, rightclick on your_login_name and select {Properties} > 
      [Permissions] > [Advanced Permissions]
 Check/put mark at {Show Entries} for {User}{Group}{Others} > [OK]
 Put a mark at {Only owner can rename and delete folder content} 
           and {Apply changes to all subfolders and their content}
 [OK]
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox