Map network server using cifs: manual mount works, fstab fails

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
Been trying to setup a permanent mount for my institutional network server from my work-ubuntu 16.04 (dual boot windows - ubuntu). This has worked before. I have followed the many fine tutorials on this - for instance this.
When I mount manually it works - i am asked for sudo password and then the institutional password. I type:sudo mount -t cifs -o username=myusername$institution.domain,vers=1.0 //institution.domain/myusername /media/networkfolder
However, when I try to setup in fstab using a credentials file (or also without) it fails. I have this line:
//institution.domain/myusername /media/networkfolder cifs credentials=/home/me/.smbcredentials,iocharset=utf8,uid=1000,vers=1.0
The .smbcredentials file reads:
username=myusername
password=mypassword
(variations that fails are username=myusername$institution.domain and also tried including the line domain=institution.domain).
When I look into the running /var/log/kern.log I do not find any obvious hints.
server mount samba fstab cifs
add a comment |Â
up vote
0
down vote
favorite
Been trying to setup a permanent mount for my institutional network server from my work-ubuntu 16.04 (dual boot windows - ubuntu). This has worked before. I have followed the many fine tutorials on this - for instance this.
When I mount manually it works - i am asked for sudo password and then the institutional password. I type:sudo mount -t cifs -o username=myusername$institution.domain,vers=1.0 //institution.domain/myusername /media/networkfolder
However, when I try to setup in fstab using a credentials file (or also without) it fails. I have this line:
//institution.domain/myusername /media/networkfolder cifs credentials=/home/me/.smbcredentials,iocharset=utf8,uid=1000,vers=1.0
The .smbcredentials file reads:
username=myusername
password=mypassword
(variations that fails are username=myusername$institution.domain and also tried including the line domain=institution.domain).
When I look into the running /var/log/kern.log I do not find any obvious hints.
server mount samba fstab cifs
Did you also try replacinginstitution.domainby the IP adress?
â Marc Vanhoomissen
May 16 at 11:35
The IP is changing so this is not possible.
â user3375672
May 16 at 13:02
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Been trying to setup a permanent mount for my institutional network server from my work-ubuntu 16.04 (dual boot windows - ubuntu). This has worked before. I have followed the many fine tutorials on this - for instance this.
When I mount manually it works - i am asked for sudo password and then the institutional password. I type:sudo mount -t cifs -o username=myusername$institution.domain,vers=1.0 //institution.domain/myusername /media/networkfolder
However, when I try to setup in fstab using a credentials file (or also without) it fails. I have this line:
//institution.domain/myusername /media/networkfolder cifs credentials=/home/me/.smbcredentials,iocharset=utf8,uid=1000,vers=1.0
The .smbcredentials file reads:
username=myusername
password=mypassword
(variations that fails are username=myusername$institution.domain and also tried including the line domain=institution.domain).
When I look into the running /var/log/kern.log I do not find any obvious hints.
server mount samba fstab cifs
Been trying to setup a permanent mount for my institutional network server from my work-ubuntu 16.04 (dual boot windows - ubuntu). This has worked before. I have followed the many fine tutorials on this - for instance this.
When I mount manually it works - i am asked for sudo password and then the institutional password. I type:sudo mount -t cifs -o username=myusername$institution.domain,vers=1.0 //institution.domain/myusername /media/networkfolder
However, when I try to setup in fstab using a credentials file (or also without) it fails. I have this line:
//institution.domain/myusername /media/networkfolder cifs credentials=/home/me/.smbcredentials,iocharset=utf8,uid=1000,vers=1.0
The .smbcredentials file reads:
username=myusername
password=mypassword
(variations that fails are username=myusername$institution.domain and also tried including the line domain=institution.domain).
When I look into the running /var/log/kern.log I do not find any obvious hints.
server mount samba fstab cifs
asked May 14 at 18:13
user3375672
10613
10613
Did you also try replacinginstitution.domainby the IP adress?
â Marc Vanhoomissen
May 16 at 11:35
The IP is changing so this is not possible.
â user3375672
May 16 at 13:02
add a comment |Â
Did you also try replacinginstitution.domainby the IP adress?
â Marc Vanhoomissen
May 16 at 11:35
The IP is changing so this is not possible.
â user3375672
May 16 at 13:02
Did you also try replacing
institution.domain by the IP adress?â Marc Vanhoomissen
May 16 at 11:35
Did you also try replacing
institution.domain by the IP adress?â Marc Vanhoomissen
May 16 at 11:35
The IP is changing so this is not possible.
â user3375672
May 16 at 13:02
The IP is changing so this is not possible.
â user3375672
May 16 at 13:02
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036213%2fmap-network-server-using-cifs-manual-mount-works-fstab-fails%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Did you also try replacing
institution.domainby the IP adress?â Marc Vanhoomissen
May 16 at 11:35
The IP is changing so this is not possible.
â user3375672
May 16 at 13:02