Differences between revisions 45 and 47 (spanning 2 versions)
Revision 45 as of 2016-11-22 15:52:46
Size: 3274
Editor: gfreudig
Comment:
Revision 47 as of 2016-11-23 13:11:04
Size: 3447
Editor: gfreudig
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from Services/FileAccess/FileSystemAccess
Line 3: Line 4:
== Three methods accessing Samba shares from Linux with Gnome (all machines at ETH) ==

=== Mountpoint ===
== Accessing Samba shares from Linux ==
=== Overview ===
Recent Linux Kernels contain the userspace filesystem FUSE. This allows you to use all sorts of new an inovative ways for mounting remote fileystems with normal user privileges. Samples are the "gnome userspace virtual filesystem" and "sshfs" based on SSH.<<BR>><<BR>>
All graphical desktop file managers must use FUSE based solutions to access remote SMB/CIFS filesystems because they are running with normal user privileges.<<BR>><<BR>>
Line 8: Line 10:

=== gvfs-mount ===
=== Command Line ===
==== gvfs-mount ====
Line 27: Line 29:
=== Nautilus Application ===
==== root mount ====
You can also mount your Samba home area with CIFS. This method is only available on computers where you have root access (i.e. this does not work on Linux workstations managed by us). '''If the command returns an error message saying "wrong fs type", make sure the package "cifs-utils" is installed.'''

{{{
$ sudo su
# mkdir /tardis-home
# mount -t cifs -o user=<d\your_tardis_login>,name=homes.ee.ethz.ch \\\\homes.ee.ethz.ch\\<d\your_tardis_login> /tardis-home
}}}

=== Desktop File Managers ===



==== Gnome Nautilus ====
Line 37: Line 53:
=== 'Connect to Server' Application === ==== Nemo ====
Line 43: Line 59:
== Accessing Samba shares from Linux with Konqueror (all machines at ETH) == === KDE Konqueror (all machines at ETH) ===
Line 65: Line 81:

== Using CIFS to connect to Samba shares ==
You can also mount your Samba home area with CIFS. This method is only available on computers where you have root access (i.e. this does not work on Linux workstations managed by us). '''If the command returns an error message saying "wrong fs type", make sure the package "cifs-utils" is installed.'''

{{{
$ sudo su
# mkdir /tardis-home
# mount -t cifs -o user=<d\your_tardis_login>,name=homes.ee.ethz.ch \\\\homes.ee.ethz.ch\\<d\your_tardis_login> /tardis-home
}}}
Recent Linux Kernels contain the userspace filesystem [[http://fuse.sourceforge.net/|FUSE]]. This allows you to use all sorts of new an inovative ways for mounting remote fileystems ... for example you can mount a file system via an ssh connection without needing root privileges:
== SSH File System ==
Line 87: Line 94:

Accessing Samba shares from Linux

Overview

Recent Linux Kernels contain the userspace filesystem FUSE. This allows you to use all sorts of new an inovative ways for mounting remote fileystems with normal user privileges. Samples are the "gnome userspace virtual filesystem" and "sshfs" based on SSH.

All graphical desktop file managers must use FUSE based solutions to access remote SMB/CIFS filesystems because they are running with normal user privileges.

In all cases, the share will be mounted in /run/user/$UID/gvfs/smb-share:server=X,share=Y so that you can also access it on the command line.

Command Line

gvfs-mount

You can also connect to a Samba share on the command line. After you run that command, you can browse the share in Nautilus.

pmuster@testclient:~> gvfs-mount smb://itet-stor.ee.ethz.ch/pmuster
Password required for share pmuster on itet-stor.ee.ethz.ch
User [pmuster]: mmuster
Domain [WORKGROUP]: d
Password: ********

To unmount a share on the command line, just add the -u flag:

pmuster@testclient:~> gvfs-mount -u smb://itet-stor.ee.ethz.ch/pmuster

root mount

You can also mount your Samba home area with CIFS. This method is only available on computers where you have root access (i.e. this does not work on Linux workstations managed by us). If the command returns an error message saying "wrong fs type", make sure the package "cifs-utils" is installed.

$ sudo su
# mkdir /tardis-home
# mount -t cifs -o user=<d\your_tardis_login>,name=homes.ee.ethz.ch \\\\homes.ee.ethz.ch\\<d\your_tardis_login>  /tardis-home

Desktop File Managers

Gnome Nautilus

Select on the left side Connect to network and enter the name of the share in the Server Address field, e.g. as 'smb://itet-stor.ee.ethz.ch/pmuster'.

Enter the details as given in the screenshot below.

Nemo

Open the Connect to Server application and enter the details similar to the screenshot below.

KDE Konqueror (all machines at ETH)

Open your Konqueror Filemanager/Webbrowser.

As location, use smb://server/directory followed by <Enter>Type your username and password in the following dialog box.

For accessing your share provided from ID, use the following data:

Location:   smb://nas-nethz-users.ethz.ch/share-u-$/username
Username:   d\yourNethzUsername
Password:   yourPrivatePassword

Obs! The 'share-u-$' part of the location is dependant on the first character in your  username. If your username is 'kpelle', this part of the location will change to 'share-k-$'

For accessing your D-ITET share, user the following:

Location:   smb://homes.ee.ethz.ch/username
Username:   d\username
Password:   yourPrivatePassword

SSH File System

$ mkdir ~/tardis-home
$ sshfs <d\your_tardis_login>@login.ee.ethz.ch: ~/tardis-home

But please note, that you can't do sshfs on homes.ee.ethz.ch - use login.ee.ethz.ch instead!

You can also unmount it again by typing:

$ fusermount -u ~/tardis-home

Please note that sshfs is not officially supported by the ISG.EE


CategoryEDUC

Services/FileAccess/CIFSLinux (last edited 2022-11-10 14:03:06 by stroth)