Access to Linux file systems via samba

Available file systems

Some Linux file systems are accessible via Sambawikipedia from a server named samba.
The following shares are available:

  • //samba/username
    The Linux home directory for the account username.

  • //samba/web-docs
    The web-docs directory for the account username.

  • //samba/scratch
    The central Linux scratch directory for all accounts.

Setting your Samba password

Prior to first use an initial password for Samba has to be set. For this you'll have to login to via ssh with your current Linux password, then you'll have to enter your new Samba password and repeat it for confirmation. You'll be logged off automatically after this process.

username@lx-pool:~$ ssh samba
username@samba's password:
Linux lxsmb03 4.9.0-15-amd64 #1 SMP Debian 4.9.258-1 (2021-03-08) x86_64

You may only change your Samba password here!

Samba Server for Linux home directories

Report issues to <>.

Last login: Tue Oct  1 11:11:11 2019 from
Quering your new samba password
New SMB password:
Retype new SMB password:
Your password has been set successfully
Connection to samba closed.

Accessing Samba volumes from Linux

Samba volumes can be used like ftp servers via smbclient. There are also some file managers which are able to deal with smb connections.

Using the smbclient command line tool

To access SMB shares in a ftp-like session you can use the command smbclient. For instance to get access to the windows scratch file as user "jdoe" you'll have to enter:
smbclient -U jdoe -W campus //winscratch/scratch
This command will ask for the windows password of "jdoe".

During the session you can use the familiar ftp commands like dir (show directory content), cd bla (change to directory "bla") and get blubb (download file "blubb"). Use the commands quit or exit to close the session again.

Accessing a Windows volume with the KDE file manager konqueror

If you are using the graphical KDE desktop, the mighty konqueror grants you easy access to SMB shares.
  1. Start the konqueror.
  2. Enter the complete path to the Windows volume, e.g. smb://srvfilerootXY/profil/jdoe (the correct path can be found on the terminal server).
  3. Enter username, e.g. campus\jdoe and your Windows password in the dialog box (click to enlarge):
    SMB auth Konqueror
  4. Here you are (click to enlarge):
    SMB access Konqueror

Accessing a Windows volume with the KDE file manager dolphin

  1. Start the dolphin.
  2. Configure dolphin and enable "editable location bar" and "show full path inside location bar" and apply these settings.
  3. Enter the complete path to the Windows volume, e.g. smb:///srvfilerootXY/profil/jdoe (the correct path can be found on the terminal server).
  4. Because you can only copy files inside the dolphin it is a good idea to split the screen of dolphin to drag and drop.

Some useful hints

Be aware that Windows uses the backslash character \ as path separator, while Linux uses the regular slash /. For this you'll have to use \\samba\username for connecting to your Linux home directory from Windows clients.

To access files or folders with names containing special characters like spaces or dollar signs from the Linux command line you will have to escape them with backslashes, e.g. //srvfilegrpXY/some\ folder.

Symlinks are only working inside a share. Since ~/web-docs is located on a separate file system you can't access it by following the link in your home directory. Please use the dedicated share //samba/web-docs instead.

Instead of using a Samba share you may use any scp client (e.g. WinSCP) on your Windows client for transferring data from or to Linux file systems.

Sometimes the connection to the Linux Samba server fails, especially with clients using Windows 7. In this case try to connect as a different user with a domain name different from CAMPUS, e.g. SCHAMPUS\jdoe.

Windows DFS Shares (group devices) can not be linked to this name. The real server must be specified here, e.g. \\\groups\dinma must be converted to \\srvfilegrpXY\dinma.
Topic revision: r35 - 2021-07-13, StefanHaller - This page was cached on 2021-07-22 - 14:01.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Imprint (german) | Privacy Policy (german)