Closed hsieh42 closed 5 years ago
Thanks! I followed these steps. What needs to be done now?
This is what I did for myself without saving the UPHS username and password into a text file.
$ sudo mount --verbose -t cifs //cbica-cifs/hsiehm ~/cbica/home -o username=hsiehm,domain=UPHS,vers=1.0,noserverino,uid=hsiehm,gid=hsiehm
It would then prompt me for a UPHS password.
Instead, if we should do something below to be more generic so that you can add for other users too after they define their .cbica_mount_key file. Note the first option credentials
.
$ sudo mount --verbose -t cifs //cbica-cifs/${uphs_user_name} /home/${cbig_dl_username}/cbica/home -o credentials=/home/${cbig_dl_username}/.cbica_mount_key,domain=UPHS,vers=1.0,noserverino,uid=${uphs_user_name},gid=${uphs_user_name}
Having uid and gid in the options is to set the user and group for read/write permission properly.
I was able to mount both home and the projects for myself. I used the command as suggested in SBIA wiki. For example:
$sudo mount --verbose -t cifs //cbica-cifs/projects ~/Documents/cbica/projects -o username=gastouna,domain=UPHS,vers=1.0,noserverino
I was not able to add it for other user though. I tried with Babak's account: uphs username = haghighb, username in CBIG-DL = bhaghighi
Check with @bhaghighi on his uphs password.
I was able to mount for Aimilia...
hsiehm@CBIG-DL:~$ sudo mount --verbose -t cifs //cbica-cifs/gastouna /home/gastouna/cbica/home/ -o credentials=/home/gastouna/Documents/cbica/.cbica_mount_key,domain=UPHS,vers=1.0,noserverino,uid=gastouna,gid=gastouna
mount.cifs kernel mount options: ip=170.212.169.36,unc=\\cbica-cifs\gastouna,vers=1.0,noserverino,uid=1001,gid=1001,user=gastouna,,domain=UPHS,pass=********
hsiehm@CBIG-DL:~$
To unmount:
hsiehm@CBIG-DL:~$ sudo umount /home/gastouna/cbica/home/
I was finally able to mount for @bhaghighi. His password was one issue, but also needed correction in command:
sudo mount --verbose -t cifs //cbica-cifs/${uphs_user_name} /home/${cbig_dl_username}/cbica/home -o credentials=/home/${cbig_dl_username}/.cbica_mount_key,domain=UPHS,vers=1.0,noserverino,uid=${cbig_dl_username},gid=${cbig_dl_username}
New name and IP address for the the network filesharing server. If you previously mounted network shares by IP address, please use the hostname:
cubic-share.uphs.upenn.edu
The former hostname (cbica-cifs) still works, but since the IP address has changed, you must unmount and then re-mount the network shares.
Change to path to home directory. The path to mount your home directory should use the literal word "home", and should no longer include your username.
For example, the old path: \cbica-cifs\$loginname must be updated to: \cubic-share\home
Change in CIFS mount options for Linux users.
There is a change required in the options to the "mount" command or in the option list in the /etc/fstab file. Remove the statement:
vers=1.0
The fileserver no longer supports (or requires) "version 1" of the SAMBA protocol. All modern CIFS clients support version 2, and version 1 is terribly insecure. Many clients (Windows 10, for example) no longer have 'version 1' of the protocol.