This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Samba shares down

Tags: None
(comma "," separated)
Llama
Registered Member
Posts
109
Karma
0
OS

Samba shares down

Sun Mar 23, 2014 3:18 pm
Hi,

This is a sequel to this story, kind of. It's bordering on offtopic, too, but Dolphin is involved still.

Until yesterday it's been fine. Right now the shares are unmountable (Dolphin message):
An error occurred while accessing 'Obmen on 192.168.0.125', the system responded: mount: only root can mount //192.168.0.125/Obmen on /home/alexey/smb4k/WSERVER/Obmen

/etc/fstab:
//192.168.0.125/Obmen /home/alexey/smb4k/WSERVER/Obmen cifs noauto,uid=1000,credentials=/home/alexey/.smbcredentials,x-systemd.automount 0 0

sudo apparently works as usual (the only recently upgraded package remotely relevant).
The system doesn't believe in my access rights any more, but why? Now and then (by no means always) the Device Notifier (KDE) asks for my user password to mount a mobile phone, but this is far less lethal.
luebking
Karma
0

Re: Samba shares down

Sun Mar 23, 2014 9:04 pm
stat `which mount.cifs`
it's probably not suid (for security reasons) - just google for the error message.
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares down

Mon Mar 24, 2014 4:52 am
luebking wrote:stat `which mount.cifs`
it's probably not suid (for security reasons) - just google for the error message.

$ stat `which mount.cifs`
File: ‘/usr/bin/mount.cifs’
Size: 35560 Blocks: 72 IO Block: 4096 regular file
Device: 812h/2066d Inode: 1857252 Links: 1
Access: (6755/-rwsr-sr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2014-03-24 08:06:26.348046766 +0400
Modify: 2013-11-27 12:51:03.000000000 +0400
Change: 2013-12-02 10:31:30.740042826 +0400
Birth: -

A binary file. Doesn't tell me anything, unfortunately.

Manual mount:
$ sudo mount -t cifs //192.168.0.125/БОС /home/alexey/smb4k/WSERVER/БОС/ -o uid=1000,username=user,password=passwd
Couldn't chdir to /home/alexey/smb4k/WSERVER/БОС: No such device
$ sudo mount -t cifs //192.168.0.125/Obmen /home/alexey/smb4k/WSERVER/Obmen/ -o uid=1000,username=user,password=passwd
Couldn't chdir to /home/alexey/smb4k/WSERVER/Obmen: No such device

БОС and Obmen apparently exist; I can't enter them, though:
Could not enter folder /home/alexey/smb4k/WSERVER/Obmen.
luebking
Karma
0

Re: Samba shares down

Mon Mar 24, 2014 11:59 am
important bits are that mount.cifs *is* suid, so that's not your problem.

Couldn't chdir to /home/alexey/smb4k/WSERVER/Obmen: No such device


What's the output of
Code: Select all
lsmod | grep cifs
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares down

Tue Mar 25, 2014 5:42 am
$ lsmod | grep cifs
cifs 361277 0
fscache 47797 2 nfs,cifs
luebking
Karma
0

Re: Samba shares down

Wed Mar 26, 2014 1:16 am
Sorry, out of ideas about the usual suspects. IIUC, the server is as windows machine - might be a compatibility issue? Tried connecting to a samba server?
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares down

Wed Mar 26, 2014 4:50 am
luebking wrote:Sorry, out of ideas about the usual suspects. IIUC, the server is as windows machine - might be a compatibility issue?

It used to be quite compatible, until recently.
luebking wrote:Tried connecting to a samba server?

Which way? I'm not well versed in the thing...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Samba shares down

Wed Mar 26, 2014 8:01 am
Can you please try executing mount.cifs directly? (substitute "mount -t cifs" for "mount.cifs")


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
luebking
Karma
0

Re: Samba shares down

Wed Mar 26, 2014 9:49 pm
Which way? I'm not well versed in the thing...


https://wiki.archlinux.org/index.php/sa ... figuration
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares down

Thu Mar 27, 2014 4:07 am
bcooksley wrote:Can you please try executing mount.cifs directly? (substitute "mount -t cifs" for "mount.cifs")

Code: Select all
$ sudo mount.cifs //192.168.0.125/Obmen/ /home/alexey/smb4k/WSERVER/Obmen/ -o uid=1000,username=user,password=passwd
[sudo] password for alexey:
Couldn't chdir to /home/alexey/smb4k/WSERVER/Obmen/: No such device

No luck.
Also this:
Code: Select all
$ smbclient -L WSERVER -U%
Domain=[SKPSS] OS=[Windows Server (R) 2008 Enterprise 6002 Service Pack 2] Server=[Windows Server (R) 2008 Enterprise 6.0]

        Sharename       Type      Comment
        ---------       ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
Domain=[SKPSS] OS=[Windows Server (R) 2008 Enterprise 6002 Service Pack 2] Server=[Windows Server (R) 2008 Enterprise 6.0]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Samba shares down

Thu Mar 27, 2014 7:31 am
I'm afraid you've found the problem, even though mount.cifs is reporting it wrongly.
Code: Select all
Error returning browse list: NT_STATUS_ACCESS_DENIED

You need to adjust the configuration of the Windows system accordingly.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares down

Thu Mar 27, 2014 9:39 am
bcooksley wrote:I'm afraid you've found the problem, even though mount.cifs is reporting it wrongly.
Code: Select all
Error returning browse list: NT_STATUS_ACCESS_DENIED

You need to adjust the configuration of the Windows system accordingly.


Server side problem. Here I am at the mercy of my Admin. Fortunately, it surfaced at last on Windows workstations, too. There's hope :) .
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares down  Topic is solved

Fri Mar 28, 2014 10:33 am
Turned out to be merely the Windows user password expiration. It was a healthy experience, nevertheless. Thank you, guys!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Samba shares down

Sat Mar 29, 2014 11:22 pm
Thanks - I've now marked this issue as solved.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]