Windows Share: gvfs mounts it correctly, mount.cifs not
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
I've since some days a strange problem with Ubuntu 14.04LTS trusty and a Windows Share.. It could be mounted correctly until some days ago:
With gvfs my share is mounted correctly:
gvfs-mount smb://[MyDomain]/centren/
If I try to mount it for every user with mount.cifs:
sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
then I have some permission problem:
ls -la /run/user/1009/gvfs/smb-share:server=[MyDomain],share=centren/AG/[MyAG]
insgesamt 200
drwx------ 1 myuser myuser 4096 Jan 8 2016 .
drwx------ 1 myuser myuser 196608 Feb 5 13:49 ..
drwx------ 1 myuser myuser 4096 Jan 30 11:58 mydir
ls -la /media/S/AG/[MyAG]
ls: ÃÂffnen von Verzeichnis /media/S/AG/[MyAG] nicht möglich: Keine Berechtigung
if it can help:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
uname -r
3.19.0-80-generic
mount.cifs -V
mount.cifs version: 6.0
14.04 mount samba cifs gvfs
add a comment |Â
up vote
1
down vote
favorite
I've since some days a strange problem with Ubuntu 14.04LTS trusty and a Windows Share.. It could be mounted correctly until some days ago:
With gvfs my share is mounted correctly:
gvfs-mount smb://[MyDomain]/centren/
If I try to mount it for every user with mount.cifs:
sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
then I have some permission problem:
ls -la /run/user/1009/gvfs/smb-share:server=[MyDomain],share=centren/AG/[MyAG]
insgesamt 200
drwx------ 1 myuser myuser 4096 Jan 8 2016 .
drwx------ 1 myuser myuser 196608 Feb 5 13:49 ..
drwx------ 1 myuser myuser 4096 Jan 30 11:58 mydir
ls -la /media/S/AG/[MyAG]
ls: ÃÂffnen von Verzeichnis /media/S/AG/[MyAG] nicht möglich: Keine Berechtigung
if it can help:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
uname -r
3.19.0-80-generic
mount.cifs -V
mount.cifs version: 6.0
14.04 mount samba cifs gvfs
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I've since some days a strange problem with Ubuntu 14.04LTS trusty and a Windows Share.. It could be mounted correctly until some days ago:
With gvfs my share is mounted correctly:
gvfs-mount smb://[MyDomain]/centren/
If I try to mount it for every user with mount.cifs:
sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
then I have some permission problem:
ls -la /run/user/1009/gvfs/smb-share:server=[MyDomain],share=centren/AG/[MyAG]
insgesamt 200
drwx------ 1 myuser myuser 4096 Jan 8 2016 .
drwx------ 1 myuser myuser 196608 Feb 5 13:49 ..
drwx------ 1 myuser myuser 4096 Jan 30 11:58 mydir
ls -la /media/S/AG/[MyAG]
ls: ÃÂffnen von Verzeichnis /media/S/AG/[MyAG] nicht möglich: Keine Berechtigung
if it can help:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
uname -r
3.19.0-80-generic
mount.cifs -V
mount.cifs version: 6.0
14.04 mount samba cifs gvfs
I've since some days a strange problem with Ubuntu 14.04LTS trusty and a Windows Share.. It could be mounted correctly until some days ago:
With gvfs my share is mounted correctly:
gvfs-mount smb://[MyDomain]/centren/
If I try to mount it for every user with mount.cifs:
sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
then I have some permission problem:
ls -la /run/user/1009/gvfs/smb-share:server=[MyDomain],share=centren/AG/[MyAG]
insgesamt 200
drwx------ 1 myuser myuser 4096 Jan 8 2016 .
drwx------ 1 myuser myuser 196608 Feb 5 13:49 ..
drwx------ 1 myuser myuser 4096 Jan 30 11:58 mydir
ls -la /media/S/AG/[MyAG]
ls: ÃÂffnen von Verzeichnis /media/S/AG/[MyAG] nicht möglich: Keine Berechtigung
if it can help:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
uname -r
3.19.0-80-generic
mount.cifs -V
mount.cifs version: 6.0
14.04 mount samba cifs gvfs
14.04 mount samba cifs gvfs
asked Feb 6 at 13:56
user792015
164
164
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
I answer myself.
At the end there was some problem/bug with the kernel. I've updated to kernel 4 and everything worked again!
$ sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
[sudo] password for myuser:
$ ls -la /media/S/AG/[MyAG]
insgesamt 196
drwxr-xr-x 2 myuser myuser 4096 Jan 8 2016 .
drwxr-xr-x 2 myuser myuser 196608 Feb 9 15:30 ..
drwxr-xr-x 2 myuser myuser 0 Feb 12 10:03 MyDir
$ uname -r
4.4.0-98-generic
$ mount.cifs -V
mount.cifs version: 6.0
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
I answer myself.
At the end there was some problem/bug with the kernel. I've updated to kernel 4 and everything worked again!
$ sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
[sudo] password for myuser:
$ ls -la /media/S/AG/[MyAG]
insgesamt 196
drwxr-xr-x 2 myuser myuser 4096 Jan 8 2016 .
drwxr-xr-x 2 myuser myuser 196608 Feb 9 15:30 ..
drwxr-xr-x 2 myuser myuser 0 Feb 12 10:03 MyDir
$ uname -r
4.4.0-98-generic
$ mount.cifs -V
mount.cifs version: 6.0
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
add a comment |Â
up vote
1
down vote
accepted
I answer myself.
At the end there was some problem/bug with the kernel. I've updated to kernel 4 and everything worked again!
$ sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
[sudo] password for myuser:
$ ls -la /media/S/AG/[MyAG]
insgesamt 196
drwxr-xr-x 2 myuser myuser 4096 Jan 8 2016 .
drwxr-xr-x 2 myuser myuser 196608 Feb 9 15:30 ..
drwxr-xr-x 2 myuser myuser 0 Feb 12 10:03 MyDir
$ uname -r
4.4.0-98-generic
$ mount.cifs -V
mount.cifs version: 6.0
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
I answer myself.
At the end there was some problem/bug with the kernel. I've updated to kernel 4 and everything worked again!
$ sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
[sudo] password for myuser:
$ ls -la /media/S/AG/[MyAG]
insgesamt 196
drwxr-xr-x 2 myuser myuser 4096 Jan 8 2016 .
drwxr-xr-x 2 myuser myuser 196608 Feb 9 15:30 ..
drwxr-xr-x 2 myuser myuser 0 Feb 12 10:03 MyDir
$ uname -r
4.4.0-98-generic
$ mount.cifs -V
mount.cifs version: 6.0
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
I answer myself.
At the end there was some problem/bug with the kernel. I've updated to kernel 4 and everything worked again!
$ sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
[sudo] password for myuser:
$ ls -la /media/S/AG/[MyAG]
insgesamt 196
drwxr-xr-x 2 myuser myuser 4096 Jan 8 2016 .
drwxr-xr-x 2 myuser myuser 196608 Feb 9 15:30 ..
drwxr-xr-x 2 myuser myuser 0 Feb 12 10:03 MyDir
$ uname -r
4.4.0-98-generic
$ mount.cifs -V
mount.cifs version: 6.0
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
answered Feb 16 at 10:30
user792015
164
164
add a comment |Â
add a comment |Â
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%2f1003557%2fwindows-share-gvfs-mounts-it-correctly-mount-cifs-not%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