. |  | Prev | Next

# Network Sharing

In this screen you can choose between several tools for sharing drives and directories. Click on a link below to learn more.

1. Configure Windows(R) shares

   1. the section called “Access Windows (SMB) shared drives and directories”

   2. the section called “Share directories and drives with Samba” = Share drives and directories with Windows (SMB) systems

2. Configure NFS shares

   1. the section called “Access NFS shared drives and directories”

   2. the section called “Share drives and directories using NFS”

3. Configure WebDAV shares

   1. the section called “Access WebDAV shared drives and directories”

### Access Windows (SMB) shared drives and directories

## diskdrake --smb

#### Introduction

This tool[35] allows you to declare which shared directories to be accessible to all users on the machine. The protocol used for this is SMB which has been popularized on Windows(R) systems. The shared directory will be available directly at boot. Shared directories can be also accessed directly in a single session by a user with tools such as file browsers.

Before starting the tool, it is a good idea to declare the names of available servers, for example with the section called “Hosts definitions”

#### Procedure

Select search servers to obtain a list of servers who share directories.

Click on the server name and on > before the server name to display the list of the shared directories and select the directory you want to access.

The Mount point button will become available, you have to specify where to mount the directory.

After choosing the mount point, it can be mounted with the Mount button. You can also verify and change some options with the Options button.

In options, you can specify the user name and the password of those able to connect to the SMB server. After mounting the directory, you can unmount it with the same button.

After accepting the configuration with the Done button, a message will ask "Do you want to save the /etc/fstab modifications". Saving, will allow directory to made available at each boot, if the network is accessible. The new directory is then available in your file browser, for example in dolphin.

### Share directories and drives with Samba

## draksambashare

#### Introduction

Samba is a protocol used in different Operating Systems to share some resources like directories or printers. This tool allows you to configure the machine as a Samba server using the protocol SMB/CIFS. This protocol is also used by Windows(R) and workstations with this OS can access the resources of the Samba server.

#### Preparation

To be accessed from other workstations, the server has to have a fixed IP address. This can be specified directly on the server, for example with the section called “Network Center”, or at the DHCP server which identifies the station with its MAC-address and give it always the same address. The firewall has also to allow the incoming requests to the Samba server.

#### Wizard - Standalone server

At the first run, the tools [36] checks if needed packages are installed and proposes to install them if they are not yet present. Then the wizard to configure the Samba server is launched.

In the next window the Standalone server configuration option is already selected.

Then specify the name of the workgroup. This name should be the same for the access to the shared resources.

The netbios name is the name which will be used to designate the server on the network.

Choose the security mode:

- user: the client must be authorized to access the resource

- share: the client authenticates itself separately for each share

You can specify which hosts are allowed to access the resources, with IP address or host name.

Specify the server banner. The banner is the way this server will be described in the Windows workstations.

The place where Samba can log information can be specified at the next step.

The wizard displays a list of the chosen parameters before you accept the configuration. When accepted, the configuration will be written in `/etc/samba/smb.conf`.

#### Wizard - Primary domain controller

If the "Primary domain controller" option is selected, the wizard asks for indication if Wins is to support or not and to provide admin users names. The following steps are then the same as for standalone server, except you can choose also the security mode:

- domain: provides a mechanism for storing all user and group accounts in a central, shared, account repository. The centralized account repository is shared between (security) controllers.

#### Declare a directory to share

With the Add button, we get:

A new entry is thus added. It can be modified with the Modify button. Options can be edited, such as whether the directory is visible to the public, writable or browseable. The share name can not be modified.

#### Menu entries

When the list has at least one entry, menu entries can be used.

File|Write conf. Save the current configuration in `/etc/samba/smb.conf`.

Samba server|Configure. The wizard can be run again with this command.

Samba server|Restart. The server is stopped and restarted with the current configuration files.

Samba Server|Reload. The configuration displayed is reloaded from the current configuration files.

#### Printers share

Samba also allows you to share printers.

#### Samba users

In this tab, you can add users who are allowed to access the shared resources when authentication is required. You can add users from the section called “Users and Groups”

### Access NFS shared drives and directories

## diskdrake --nfs

.

#### Introduction

This tool[37] allows you to declare some shared directories to be accessible to all users on the machine. The protocol used for this is NFS which is available on most Linux or Unix systems. The shared directory will be thus available directly at boot. Shared directories can be also accessible directly in a single session for a user with tools such as file browsers.

#### Procedure

Select search servers to obtain a list of servers which share directories.

Click on the > symbol before the server name to display the list of the shared directories and select the directory you want to access.

The button Mount point will be available and you have to specify where to mount the directory.

After choosing the mount point, You can mount it. You can also verify and change some options with the Options button. After mounting the directory, you can unmount it with the same button.

On accepting the configuration with the Done button, a message will displayed, asking "Do you want to save the /etc/fstab modifications". This will make the directory available at each boot, if the network is accessible. The new directory is then available in your file browser, for example in Dolphin.

### Share drives and directories using NFS

## draknfs

#### Prerequisites

When the wizard[38] is launched for the first time, it may display the following message:

> The package nfs-utils needs to be installed. Do you want to install it?

After completing the installation, a window with an empty list is displayed.

#### Main window

A list of directories which are shared is displayed. At this step, the list is empty. The Add button gives access to a configuration tool.

#### Modify entry

The configuration tool is labeled "Modify entry". It may be also launched with the Modify button. The following parameters are available.

##### NFS Directory

Here you can specify which directory is to be shared. The Directory button gives access to a browser to choose it.

##### Host access

Here you can specify the hosts that are authorized to access the shared directory.

NFS clients may be specified in a number of ways:

single host: a host either by an abbreviated name recognized be the resolver, fully qualified domain name, or an IP address

netgroups: NIS netgroups may be given as @group.

wildcards: machine names may contain the wildcard characters * and ?. For instance: *.cs.foo.edu matches all hosts in the domain cs.foo.edu.

IP networks: you can also export directories to all hosts on an IP (sub-)network simultaneously. For example, either `/255.255.252.0' or `/22' appended to the network base address.

##### User ID Mapping

map root user as anonymous: maps requests from uid/gid 0 to the anonymous uid/gid (root_squash). The root user from the client cannot read or write to the files on the server which are created by root on the server itself.

allow real remote root access: turn off root squashing. This option is mainly useful for diskless clients (no_root_squash).

map all users to anonymous user: maps all uids and gids to the anonymous user (all_squash). Useful for NFS-exported public FTP directories, news spool directories, etc. The opposite option is no user UID mapping (no_all_squash), which is the default setting.

anonuid and anongid: explicitly set the uid and gid of the anonymous account.

##### Advanced options

Secured Connection: this option requires that requests originate on an internet port less than IPPORT_RESERVED (1024). This option is on by default.

Read-Only share: allow either only read or both read and write requests on this NFS volume. The default is to disallow any request which changes the filesystem. This can also be made explicit by using this option.

Synchronous access: prevents the NFS server from violating the NFS protocol and to reply to requests before any changes made by these requests have been committed to stable storage (e.g. disc drive).

Subtree checking: enable subtree checking which can help improve security in some cases, but can decrease reliability. See exports(5) man page for more details.

#### Menu entries

So far the list has at least one entry.

##### File|Write conf

Save the current configuration.

##### NFS Server|Restart

The server is stopped and restarted with the current configuration files.

##### NFS Server|Reload

The configuration displayed is reloaded from the current configuration files.

### Access WebDAV shared drives and directories

## diskdrake --dav

This tool[39] is found in the Mageia Control Center, under the Network Sharing tab, labeled Configure WebDAV shares.

#### Introduction

WebDAV is a protocol that allows to mount a web server's directory locally, so that it appears as a local directory. It is necessary that the remote machine run a WebDAV server. This is not the aim of this tool to configure the WebDAV server.

#### Creating a new entry

The first screen of the tool displays the already configured entries, if any, and a New button. Use it to create a new entry. Insert the server URL in the field of the new screen.

Then you get a screen with radio buttons to select some actions. Continue with the action Mount point by clicking OK after selecting the radio button, as the Server is already configured. You can however correct it, if needed.

The content of the remote directory will be accessible through this mount point.

In the next step, give your user name and password. If you need some other options, you can give them in the advanced screen.

The option Mount allows you to mount immediately the access.

After you accepted the configuration with the radio button Done, the first screen is displayed again and your new mount point is listed. After you choose Quit, you are asked whether or not to save the modifications in /etc/fstab. Choose this option if you want that the remote directory is available at each boot. If your configuration is for one-time usage, do not save it.

[35] You can start this tool from the command line, by typing diskdrake --smb as root.

[36] You can start this tool from the command line, by typing draksambashare as root.

[37] You can start this tool from the command line, by typing diskdrake --nfs as root.

[38] You can start this tool from the command line, by typing draknfs as root.

[39] You can start this tool from the command line, by typing diskdrake --dav as root.

© Mageia
CC BY-SA 3.0

Prev |  | Next
| Home |

- Contents
- Search

- About the Manual for the Mageia Control Center
- Software Management
  - Software Management (Install and Remove Software)
    - Introduction to rpmdrake
    - The main parts of the screen
    - The status column
    - The dependencies
  - Software Packages Update
  - Configure updates frequency
  - Configure Media
    - The columns
    - The buttons on the right
    - The menu
- Sharing
  - Configure FTP
    - What is FTP?
    - Setting up an FTP server with drakwizard proftpd
  - Configure webserver
    - What is a web server?
    - Setting up a web server with drakwizard apache2
- Network Services
  - Configure DHCP
    - What is DHCP?
    - Setting up a DHCP server with drakwizard dhcp
    - What is done
  - Configure DNS
  - Configure proxy
    - What is a proxy server?
    - Setting up a proxy server with drakwizard squid
    - What is done
  - Configure time
    - Setup a NTP server with drakwizard ntp
    - What is done
  - OpenSSH daemon configuration
    - What is SSH?
    - Setting up an SSH daemon with drakwizard sshd
- Hardware
  - Hardware configuration
    - The window
    - The menu
  - Sound Configuration
  - 3D Desktop Effects
    - Introduction
    - Getting Started
    - Troubleshooting
      - Can't See Desktop after Logging in
  - Set up the graphical server
  - Set up the Keyboard Layout
    - Introduction
    - Keyboard Layout
    - Keyboard Type
  - Set up the pointer device (mouse, touchpad)
  - Install and configure a printer
    - Introduction
    - Automatically detected printer
    - No automatically detected printer
    - Complete the installation process
    - Network printer
    - Network printing protocols
    - Device Properties
    - Troubleshoot
    - Specifics
  - Set up scanner
    - Installation
    - Scannersharing
    - Specifics
    - Extra installation steps
  - Set up a UPS for power monitoring
- Network and Internet
  - Network Center
    - Introduction
    - The Monitor button
    - The Configure button
    - The Advanced Settings button
  - Set up a new network interface (LAN, ISDN, ADSL, ...)
    - Introduction
    - A new Wired connection (Ethernet)
    - A new Satellite connection (DVB)
    - A new Cable modem connection
    - A new DSL connection
    - A new ISDN connection
    - A new Wireless connection (WiFi)
    - A new GPRS/Edge/3G connection
    - A new Bluetooth Dial-Up Networking connection
    - A new Analog telephone modem connection (POTS)
    - Ending the configuration
  - Remove a connection
  - Proxy
  - Share the Internet connection with other local machines
    - Principles
    - Gateway wizard
    - Configure the client
    - Stop connection sharing
  - Manage different network profiles
    - Introduction
      - Profiles
      - Draknetprofile
    - Running Draknetprofile
      - Defining profiles, profile switching
      - Using a system that has more than one profile
    - Appendix: Files relevant to Draknetprofile
  - Configure VPN Connection to secure network access
    - Introduction
    - Configuration
  - Hosts definitions
- System
  - Authentication
  - Manage system services by enabling or disabling them
  - Manage, add and remove fonts. Import Windows(TM) fonts
  - Manage date and time
  - Manage localization for your system
    - Input method
  - View and search system logs
    - To do a search in the logs
    - To configure a mail alert
  - Open a console as administrator
  - Users and Groups
  - Import Windows(TM) documents and settings
  - Snapshots
- Network Sharing
  - Access Windows (SMB) shared drives and directories
    - Introduction
    - Procedure
  - Share directories and drives with Samba
    - Introduction
    - Preparation
    - Wizard - Standalone server
    - Wizard - Primary domain controller
    - Declare a directory to share
    - Menu entries
    - Printers share
    - Samba users
  - Access NFS shared drives and directories
    - Introduction
    - Procedure
  - Share drives and directories using NFS
    - Prerequisites
    - Main window
    - Modify entry
      - NFS Directory
      - Host access
      - User ID Mapping
      - Advanced options
    - Menu entries
      - File|Write conf
      - NFS Server|Restart
      - NFS Server|Reload
  - Access WebDAV shared drives and directories
    - Introduction
    - Creating a new entry
- Local disks
  - Manage disk partitions
  - CD/DVD burner
    - Mount point
    - Options
      - user/nouser
  - Share your hard disk partitions
- Security
  - MSEC: System Security and Audit
    - Presentation
    - Overview tab
    - Security settings tab
      - Basic security tab
      - System security tab
      - Network security
      - Periodic checks tab
      - Exceptions tab
      - Permissions
  - Set up your personal firewall
  - Configure authentication for Mageia tools
  - Advanced setup for network interfaces and firewall
  - Parental Controls
    - Presentation
    - Configuring Parental controls
      - Blacklist/Whitelist tab
      - Block Programs Tab
- Boot
  - Set up autologin to automatically log in
  - Set up boot system
  - Set up display manager
- Other Mageia Tools
  - Mageia Bug Report Tool
  - Collect Logs and System Information for Bug Reports
  - Display Available NFS And SMB Shares
  - Display Your PCI, USB and PCMCIA Information

Search