Contents
From your desktop, you can access files and directories or certain services on remote hosts or make your own files and directories available to other users in your network. SUSE Linux Enterprise® offers various different ways of accessing and creating network shared resources:
Your file manager, Konqueror, lets you browse your network for shared resources and services. Learn more about this in Section 9.2, “Accessing Network Shares”.
Using Konqueror, configure your files and folders to share with other members of your network. Make your data readable or writable for users from any Windows or Linux workstation. Learn more about this in Section 9.3, “Sharing Folders in Mixed Environments”.
SUSE Linux Enterprise can be configured to integrate into an existing Windows network. Your Linux machine then behaves like a Windows client. It takes all account information from the Active Directory domain controller, just as the Windows clients do. Learn more about this in Section 9.4, “Managing Windows Files”.
You can configure a Windows network printer through the KDE Control Center. Learn how to configure this in Section 9.5, “Configuring and Accessing a Windows Network Printer”.
By creating shortcuts to remote network folders (FTP, WebDAV, Windows Network Drives, and SSH), interacting with them can be greatly simplified. Learn how to configure this in Section 9.6, “Configuring Shortcuts to Network Folders”.
If you need a simple way to share information with others, set up a lean Web server. Learn how to do this in Section 9.7, “Configuring and Using a Small Web Server”.
Whether and to which extent you can use file sharing and network browsing on your machine and in your network highly depends on the network structure and on the configuration of your machine. Before setting up either of them, contact your system administrator to make sure that your network structure supports this feature and to check whether your company's security policies permit it.
Network browsing, be it SMB browsing for Windows shares or SLP browsing for remote services, relies heavily on the machine's ability to send broadcast messages to all clients in the network. These messages and the clients' replies to them enable your machine to detect any available shares or services. For broadcasts to work effectively, your machine must be part of the same subnet as all other machines it is querying. If network browsing does not work on your machine or the detected shares and services do not match with what you expected, contact your system administrator to make sure that you are connected to the appropriate subnet.
To allow network browsing, your machine needs to keep several network ports open to send and receive network messages that provide details on the network and the availability of shares and services. The standard SUSE Linux Enterprise is configured for tight security and has a firewall up and running that protects your machine against the Internet. To adjust the firewall configuration, you would either need to ask your system administrator to open a certain set of ports to the network or to tear down the firewall entirely according to your company's security policy. If you try to browse a network with a restrictive firewall running on your machine, Konqueror warns you about your security restrictions not allowing it to query the network.
Networking workstations can be set up to share folders. Typically, files and folders are marked to let remote users access them. These are called network shares. If your system is configured to access network shares, you can use your file manager to access these shares and browse them just as easily as if they were located on your local machine. Whether you have only read access or also write access to the shared folders depends on the permissions granted to you by the owner of the shares.
To access network shares, click the icon on your desktop or open Konqueror and enter remote:/ in the location bar. Konqueror then opens a virtual folder that displays the network share types that you can access. Click a network resource type then click the network share to access. You might be required to authenticate to the resource by providing a username and password.
Sharing and exchanging documents is a must-have in corporate environments. Konqueror offers you file sharing with Samba, which makes your files and folders available to both Linux and Windows users. To configure Samba file sharing with Konqueror, proceed as follows:
Press + and enter ~ in the textfield
to open Konqueror.
Right-click the window background then select from the context menu.
In the dialog, click the
tab. When file sharing is not yet generally
enabled, you are informed about this on the tab. To enable file sharing
or select the files to share, click and enter the root password.
To enable or disable file sharing, select or deselect .
Select the appropriate sharing option: or .
To limit the number of users allowed to share folders to certain groups, click , select , click , and select the appropriate group from the list in the window that opens.
Add the folder to share to the list of shared items at the bottom of the dialog by clicking and specifying the folder's exact path.
Activate to enable Samba file sharing. If needed, apply some fine-tuning to the Samba options:
Specify a name other than the preset default.
Determine which kind of access to grant others to your share. You can grant users full read and write access or limit their access to just reading your shares.
These contain basic settings like name, an optional comment, and basic access rights as well as user and security settings and an option to hide particular files and subfolders in the shared folder.
Apply your settings and leave the file sharing dialog with .
The folder icon now appears in Konqueror with a plug.
To revoke the share, enter the file sharing dialog again and remove the folder from the list of shared items. The folder icon then appears without a plug.
Other members of your network can reach your share by entering
smb:/ in the location bar of Konqueror and clicking the
appropriate workgroup icon and hostname.
![]() | Samba Domain Browsing |
|---|---|
Samba domain browsing only works if your system's firewall is configured accordingly. Either disable the firewall entirely or assign the browsing interface to the internal firewall zone. Ask your system administrator about how to proceed. This procedure is described in more detail in Section “Configuring a Linux Client for Active Directory” (Chapter 12, Active Directory Support, ↑Deployment Guide). | |
With your SUSE Linux Enterprise machine being an Active Directory client as described in Chapter Active Directory Support (↑Deployment Guide), you can browse, view, and manipulate data located on Windows servers. The following examples are just the most prominent ones:
Use Konqueror's smb:/ browsing option to browse
your Windows data.
Use Konqueror to display the contents of your Windows user folder just as you would for displaying a Linux directory. Create new files and folders on the Windows server.
KDE applications, such as the Kate text editor, allow you to open files on the Windows server, manipulate them, and save them to the Windows server.
KDE applications, including Konqueror, support Single-Sign-On, which means that to access other Windows resources, such as Web servers, proxy servers, or groupware servers like MS Exchange, you do not need to reauthenticate. Authentication against all these is handled silently in the background once you provided your username and password on login.
To access your Windows data using Konqueror, proceed as follows:
Press Alt+F2 and enter smb://
This opens a Konqueror window displaying all Samba workgroups and domains that could be found in your network.
Click the icon of the workgroup or domain of your AD server.
Click the folder and select your personal user folder icon. The contents of your folder are displayed.
To create folders in your Windows user folder using Konqueror, proceed as you would when creating a Linux folder:
Right-click the background of the Konqueror folder view to open the menu.
Select +.
Enter the new folder's name when prompted to do so.
To create a file on the AD server, proceed as described in the following example for the Kate text editor.
Press Alt+F2 and enter kate.
Enter your text.
To save the newly created text, select .
Click the icon to the left and select .
Navigate to your Windows folder.
Enter the filename and click .
The file is saved on the Windows server.
Make use of Konqueror's Single-Sign-On support, as in the following example—Web access to your MS Exchange mailbox:
Make sure that you have a valid MS Exchange account under your current Windows user identity.
Request the Exchange server's address from your system administrator.
Press Alt+F2 and enter konqueror http://.
address_exchange_server
You are logged in to your Exchange account without having to reauthenticate.
Write or read your e-mails and log out as usual.
Being part of a corporate network and authenticating against a Windows Active Directory server, you can access corporate resources, such as printers. KDE allows you to configure printing from your Linux client to a Windows network printer.
To configure a Windows network printer for use through your Linux workstation, proceed as follows:
Start the KDE Control Center from the main menu.
Select +.
Select +.
Enter the printer's name, a short description, and its location.
Enter a command line similar to the following example in :
smbclient //domain/printer-k -d 0 -c 'put %in' > /dev/null 2>&1
Replace domain and
printer with the exact values matching your
setup.
Check and select to pipe all your print jobs to a postscript file.
Leave the printer configuration with .
Leave the KDE Control Center with +.
The printer is ready for use.
To print to the Windows network printer configured above, just select it from the list of available printers in KPrinter.
With KNetAttach, you can also add new network folders to this view by
clicking in a Konqueror
remote:/ view. A wizard opens where you can select the
type of network folder to access and enter the details, such as a
name for the network folder, the address of the server (either the IP
address or domain name), the login name, the port, and the path to folder to
access.
After finishing, you can access the network share in Konqueror by clicking the newly created link instead of entering a lengthy URL for this share in the location bar.
If you add a network folder in this way, you can also access this folder easily when opening or saving a file from a KDE application. If you click in the left-hand bar of an or a dialog, the network folder you added appears.
![]() | Linking to Network Shares on the Desktop |
|---|---|
For quick access to network shares you need very often, you can also create links to these resources on your desktop. To do so, select the desired resource in Konqueror and drag it onto your desktop while keeping the left mouse button pressed. From the context menu, select . A new icon appears on your desktop. If you click that icon, Konqueror opens and displays the content of this directory. | |
The kpf utility provides simple file sharing using HTTP (Hyper Text Transfer Protocol), which is the same protocol used by Web sites to provide data to your Web browser. kpf is strictly a public file server, which means that there are no access restrictions to shared files. Whatever you select for sharing is available to anyone.
![]() | Security Considerations |
|---|---|
Before setting up a file server with kpf, check with your system administrator whether your company's security policies allow this. You should never set up a file server in a corporate or private environment if you are not entirely sure that your network is protected by an outer firewall. Otherwise you might risk accidentally leaking sensitive information to the Web. In addition to that, any Web server is a potential target for hacker's exploits. Setting up a Web server in a secure way is a very hard job and kpf was not designed to act as such a Web server. | |
kpf is designed to be used for sharing files with friends, not to act as a fully-fledged Web server like Apache. kpf was primarily conceived as an easy way to share files with others while chatting on IRC (Internet Relay Chat, or chat rooms).
kpf is typically set up to serve files from a
public_html folder in your home directory. For example,
if you want to make a file available to some people with whom you are
chatting online, you can use kpf to copy the file into your
public_html folder and announce to those listening that
your file is available at
http:// (rather than send
them each an e-mail with the file attached).HOSTNAME:8001/thefile
Right-click the bottom panel in KDE then click and select .
A new icon depicting a small globe appears on the bottom panel.
Right-click the icon then click .
Specify the directory containing the files you want to share then click .
All files in the folder and its subfolders, including hidden files (files that start with a dot) and symbolic links, are made publicly available, so be careful not to share sensitive information, such as passwords, cryptographic keys, your address book, or documents private to your organization. Make sure that any symbolic links included do not point outside your published folder, because that would give others access to areas of your system that are not intended for public viewing.
Complete the remainder of the wizard to share the folder specified in Step 3.
The directory icon now appears in Konqueror with a world icon at the bottom right side.
Other parties wishing to connect to this server should just enter a
URL like
http:// into
their browsers. An
overview of the published content is displayed.HOSTNAME:8001
On the hosting machine, you can monitor the network traffic on your file server by right-clicking the globe icon and selecting . A short set of statistics similar to the following is given.