post
poster: jsaxton
description: Mounting Stuff
language: plain text
[download]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Linux

Firstly, you need to ensure two things: the mount point exists and you have the samba client installed on your machine. If you do not have the samba client installed on your machine, you will not be able to connect to the network share. Once you have the samba client installed, you should be able to enter the following commands to mount the share:

   sudo mkdir /mnt/mount_point
   sudo mount -t smbfs -o username=your_username,uid=your_uid //asgard/your_username /mnt/mount_point/

However, you will need to remount this everytime your computer reboots. This can be avoided by modifying your /etc/fstab file. Before modifying the /etc/fstab file, create a .smbpassword file in your home directory (~/.smbpassword). Open up the file and enter the following:

   username=your_username
   password=your_password

I would recommend chmodding this file 700. With this out of the way, you can now modify your /etc/fstab file. Simply add the line below:

   //asgard/your_username /mnt/mount_point smbfs uid=your_uid,credentials=/home/your_local_user_name/.smbpasswd 0 0

If you would like, you can test this by unmounting the share and remounting it by typing sudo mount -a. Your shares should now be automatically mounted when you boot your computer up.
[edit]
I still can't access my network share, what's the problem?

    * Are you supplying the correct authentication credentials? 

    You should enter CEMS\user_name in the user name field. If you fail to do so you will not be able to connect. 

    * Do you need to change your password? 

    Every six months we require you to change your password. If you fail to do so, you will not be able to connect. Ensure your password is up to date by changing it here: https://www.cems.umn.edu/dept/password/index.php 

    * Are you using Linux? 

    Try accessing the shares as root. If you can access the shares as root, you simply need to specify the correct uid. Determine your uid by typing the following command: 

   john@sheolob:~$ id
   uid=1000(john) gid=1000(john) :groups=4(adm), 20(dialout), 24(cdrom), 25(floppy), 29(audio), 30(dip), 44(video), 46(plugdev), 104(lpadmin), 105(scanner), 106(admin), 1000(john)

    In this example my uid is 1000. Add this to your mount command or your entry in /etc/fstab. 

    * Do you get the message "session setup failed: ERRSRV - 2242" 

    This means your password is expired and you need to change it. This can be done through the web here: https://www.cems.umn.edu/dept/password/index.php