Last active
April 15, 2018 10:18
-
-
Save JakubVanek/165f56272b172fc396d79bcf73218e77 to your computer and use it in GitHub Desktop.
Gymnázium Kladno – mount.cifs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
kinit '[email protected]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
kdestroy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
UID=`id -u` | |
GID=`id -g` | |
OPTS="-o uid=$UID,gid=$GID,cruid=$UID,sec=krb5i,nounix,vers=2.0" | |
echo "Mounting GK shares..." | |
sudo mkdir -p "/media/gk" "/media/gk/m" "/media/gk/n" "/media/gk/q" | |
sudo mount -t cifs "//server01.gymnasiumkladno.local/home/std/o12/o12vanj" "/media/gk/m" $OPTS | |
sudo mount -t cifs "//server01.gymnasiumkladno.local/public" "/media/gk/n" $OPTS | |
sudo mount -t cifs "//server01.gymnasiumkladno.local/media/Foto_Hlavni" "/media/gk/q" $OPTS | |
echo "Done." | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Unmounting GK shares..." | |
sudo umount "/media/gk/m" | |
sudo umount "/media/gk/n" | |
sudo umount "/media/gk/q" | |
echo "Done." | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[libdefaults] | |
default_realm = GYMNASIUMKLADNO.LOCAL | |
# The following krb5.conf variables are only for MIT Kerberos. | |
krb4_config = /etc/krb.conf | |
krb4_realms = /etc/krb.realms | |
kdc_timesync = 1 | |
ccache_type = 4 | |
forwardable = true | |
proxiable = true | |
[realms] | |
GYMNASIUMKLADNO.LOCAL = { | |
kdc = server01.gymnasiumkladno.local | |
admin_server = server01.gymnasiumkladno.local | |
default_domain = gymnasiumkladno.local | |
} | |
[domain_realm] | |
gymnasiumkladno.local = GYMNASIUMKLADNO.LOCAL | |
.gymnasiumkladno.local = GYMNASIUMKLADNO.LOCAL | |
[login] | |
krb4_convert = true | |
krb4_get_tickets = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment