CERN Accelerating science

Access to root://eosuser.cern.ch to home directory

Hello!
My question not about eos administration, but user support only.

I check access to users files on CERN EOS:

  1. Create KRB token on my local server:

    [zar@alice21 ~]$ kinit -V azaroche@CERN.CH
    Using existing cache: persistent:1000:1000
    Using principal: azaroche@CERN.CH
    Password for azaroche@CERN.CH:
    Authenticated to Kerberos v5
    [zar@alice21 ~]$ klist
    Ticket cache: KEYRING:persistent:1000:1000
    Default principal: azaroche@CERN.CH

    Valid starting Expires Service principal
    05/18/2021 20:50:52 05/19/2021 20:50:47 krbtgt/CERN.CH@CERN.CH
    [zar@alice21 ~]$

  2. Check access by eos:

    [zar@alice21 ~]$ export EOS_MGM_URL=root://eosuser.cern.ch
    [zar@alice21 ~]$ eos whoami
    Virtual Identity: uid=13151 (99,13151) gid=1395 (99,1395) [authz:krb5] host=alice21.spbu.ru domain=spbu.ru
    [zar@alice21 ~]$ eos ls -la /eos/user/a/azaroche
    drwx–s–+ 1 azaroche z2 421416920 Apr 24 13:12 .
    drwxr-sr-+ 1 root root 214228951486331 May 17 10:23 …
    -rw------- 2 azaroche z2 2871 Jun 7 2020 .bash_history
    drwxr-sr-+ 1 azaroche z2 0 May 6 2019 .config
    drwxr-sr-+ 1 azaroche z2 0 Mar 1 16:40 .local
    drwxr-s–+ 1 azaroche z2 0 Nov 7 2018 .pki
    drwx–s–+ 1 azaroche z2 2133485 Feb 20 2017 BOOKs
    drwx–s–+ 1 azaroche z2 883564 Feb 27 2020 Contacts
    drwx–s–+ 1 azaroche z2 67549295 Apr 19 2020 Documents

  3. Mount eos by fuse:

    [zar@alice21 ~]$ eos fuse mount /home/zar/eoscern
    ===> Mountpoint : /home/zar/eoscern
    ===> Fuse-Options : max_readahead=131072,max_write=4194304,fsname=eosuser.cern.ch,url=root://eosuser.cern.ch//eos/
    ===> fuse readahead : 1
    ===> fuse readahead-window : 1048576
    ===> fuse debug : 0
    ===> fuse low-level debug : 0
    ===> fuse log-level : 5
    ===> fuse write-cache : 1
    ===> fuse write-cache-size : 67108864
    ===> fuse rm level protect : 1
    ===> fuse lazy-open-ro : 0
    ===> fuse lazy-open-rw : 1
    ==== fuse multi-threading : true
    info: successfully mounted EOS [root://eosuser.cern.ch] under /home/zar/eoscern
    [zar@alice21 ~]$

  4. Check homedir in mount directory:

    [zar@alice21 ~]$ ls -la /home/zar/eoscern/
    total 4
    drwxr-xr-x 1 root root 401142 Aug 4 2020 .
    drwxr-xr-x. 13 zar zar 4096 May 18 20:39 …
    drwxr-xr-x 1 root root 20480 Jan 1 1970 home
    drwxr-xr-x 1 root root 20480 Sep 20 2018 home-redirector
    drwxr-xr-x 1 root root 386 Jul 24 2020 project
    drwxr-xr-x 1 root root 286 Jul 24 2020 user
    drwxr-xr-x 1 root root 359510 Jun 6 2018 user-old
    [zar@alice21 ~]$ ls -la /home/zar/eoscern/user/a
    lrwxrwxrwx 1 root root 11 Jul 24 2020 /home/zar/eoscern/user/a → /eos/home-a
    [zar@alice21 ~]$ ls -la /home/zar/eoscern/user/a/azaroche
    ls: cannot access /home/zar/eoscern/user/a/azaroche: No such file or directory
    [zar@alice21 ~]$

Can you help me mount my home directory from CERN EOS?

Sorry!
I found the answer to my question.
https://cern.service-now.com/service-portal?id=kb_article&n=KB0003846

{
[azaroche@alice02 ~]$ export EOS_MGM_URL=root://eoshome-a.cern.ch
[azaroche@alice02 ~]$ eos fuse mount /home/azaroche/eoscern
===> Mountpoint : /home/azaroche/eoscern
===> Fuse-Options : max_readahead=131072,max_write=4194304,fsname=eoshome-a.cern.ch,url=root://eoshome-a.cern.ch//eos/
===> fuse readahead : 1
===> fuse readahead-window : 1048576
===> fuse debug : 0
===> fuse low-level debug : 0
===> fuse log-level : 5
===> fuse write-cache : 1
===> fuse write-cache-size : 67108864
===> fuse rm level protect : 1
===> fuse lazy-open-ro : 0
===> fuse lazy-open-rw : 1
==== fuse multi-threading : true
info: successfully mounted EOS [root://eoshome-a.cern.ch] under /home/azaroche/eoscern
[azaroche@alice02 ~]$ ls -la /home/azaroche/eoscern/user/a/azaroche
total 7
drwx------ 1 13151 alice 421416920 Apr 24 14:12 .
drwxr-xr-x 1 root root 213823345093129 May 17 11:23 …
lrwxrwxrwx 1 13151 alice 22 Apr 24 14:12 alice → /eos/experiment/alice/
-rw------- 1 13151 alice 2871 Jun 7 2020 .bash_history
drwx------ 1 13151 alice 2133485 Feb 20 2017 BOOKs
drwxr-xr-x 1 13151 alice 4972 Aug 23 2019 certs
drwxr-xr-x 1 13151 alice 0 May 6 2019 .config
drwx------ 1 13151 alice 883564 Feb 27 2020 Contacts
drwx------ 1 13151 alice 67549295 Apr 19 2020 Documents
}

I’m sorry to trouble.