meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
common:mounting_shares [2010/01/21 10:41]
paalanen update to www2
common:mounting_shares [2014/02/07 11:49] (current)
laakkone [How to Mount]
Line 23: Line 23:
 The general form is: The general form is:
  
-<​code>​mount.cifs //​server/​share mountpoint -o noperms,​user=LUT/​username</​code>​+<​code>​mount.cifs //​server/​share mountpoint -o noperm,​user=LUT/​username</​code>​
  
 For umount you must use ''​umount.cifs''​ command. It seems to need the absolute path to mount point, For umount you must use ''​umount.cifs''​ command. It seems to need the absolute path to mount point,
 otherwise it leaves a stale entry in ''/​etc/​mtab''​. otherwise it leaves a stale entry in ''/​etc/​mtab''​.
 +
 +In Ubuntu, the command ''​mount.cifs''​ comes in the package ''​smbfs''​ (smb filesystem tools or such). Apparently it is not set-uid root by default, so you may need to use ''​sudo''​ with it. Using ''​sudo''​ makes the mounted files owned by root, so you need ''​noperms''​ options. It should be good to make it set-uid root, if you want to be able to mount as a regular user, or you do not want to use ''​noperms''​.
 +
 +The option ''​noperms''​ means, that the local file permissions are not used at all. The server will do permissions checking.
 +
 +===== File permissions =====
 +
 +If you need to check or change file permissions,​ use ssh to go to a machine, that has the share mounted via NFS. When you mount via CIFS on your workstation,​ the file permissions you see may have unknown user or group ids, or the permissions may be completely bogus (as with ''​noperms''​ option). Suitable servers are:
 +  * cursa.pc.lut.fi
 +  * laskenta1.it.lut.fi
 +  * laskenta2.it.lut.fi
 +
 +The path there is ''/​net/<​server>/<​share>/'',​ so e.g. <​code>​ssh cursa.pc.lut.fi
 +cd /​net/​www2/​projects
 +ls -l
 +</​code>​
  
 =====  Servers ​ ===== =====  Servers ​ =====