You are not logged in.

#1 2015-03-23 02:52:03

frumble
Member
From: Germany
Registered: 2012-05-20
Posts: 162
Website

Dolphin: "invalid ownership on directory /var/cache/samba/msg"

Hey,
my Dolphin file manager was noticeably lagging and so I thought let's check if there is some log on the terminal. There is. Apparently, my Samba configuration is horribly wrong:

$ dolphin
dolphin(4443) KXMLGUI::ActionList::plug: Index  133  is not within range (0 -  49 
dolphin(4443)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
dolphin(4443) KSambaSharePrivate::getNetUserShareInfo: We got some errors while running 'net usershare info' 
dolphin(4443) KSambaSharePrivate::getNetUserShareInfo: "invalid ownership on directory /var/cache/samba/lck
invalid ownership on directory /var/cache/samba/msg
" 
dolphin(1650) KSambaSharePrivate::getNetUserShareInfo: We got some errors while running 'net usershare info' 
dolphin(1650) KSambaSharePrivate::getNetUserShareInfo: "invalid ownership on directory /var/cache/samba/lck
invalid ownership on directory /var/cache/samba/msg
" 
dolphin(1650) KSambaSharePrivate::getNetUserShareInfo: We got some errors while running 'net usershare info' 
dolphin(1650) KSambaSharePrivate::getNetUserShareInfo: "invalid ownership on directory /var/cache/samba/lck
invalid ownership on directory /var/cache/samba/msg
[… etc.]

Tried deleting the whole /var/cache/samba/* but after a restart the errors continued.
"net usershare info" looks correct to me too. – Some partitions aren't mounted but this can't possibly make this mess, am I wrong?

My directory permissions:

$ ls -l lck
insgesamt 12
-rw-r--r-- 1 root root  2 23. Mär 03:19 730
-rw-r--r-- 1 root root 21 23. Mär 03:19 736
-rw-r--r-- 1 root root 21 23. Mär 03:19 746
$ ls -l msg
ls: Öffnen von Verzeichnis msg nicht möglich: Keine Berechtigung
$ sudo ls -l msg
insgesamt 0
srwxrwxrwx 1 root root 0 23. Mär 03:19 730
srwxrwxrwx 1 root root 0 23. Mär 03:19 736
srwxrwxrwx 1 root root 0 23. Mär 03:19 746

Nothing tinkered with my configuration in the last time.
Does anyone have an idea what could cause this?

Last edited by frumble (2015-03-23 02:52:52)

Offline

#2 2015-03-28 00:27:36

oi_wtf
Member
From: /home/wtf
Registered: 2012-03-11
Posts: 191

Re: Dolphin: "invalid ownership on directory /var/cache/samba/msg"

I've got those errors, too.
They also appear whenever a KDE or Qt application opens a File Dialog...

[WARNING] We got some errors while running 'net usershare info'
[WARNING] "invalid ownership on directory /var/cache/samba/lck
invalid ownership on directory /var/cache/samba/msg
"

But those two folders being owned by root seems OK to me...
smbd runs as root after all, not like apache which has it's own user or something like that...

% ls -la /var/cache/samba/
[...]
drwxr-xr-x 1 root root     44 Mar 28 01:13 lck
[...]
drwx------ 1 root root     44 Mar 28 01:13 msg
[...]

the output of my "net usershare info" looks the same, first the two error messages followed by my shares...

% net usershare info
invalid ownership on directory /var/cache/samba/lck
invalid ownership on directory /var/cache/samba/msg
[share1]
path=/somewhere/
comment=
usershare_acl=Everyone:F,
guest_ok=y
[...]

Laptop:   Arch Linux (x86_64) and Win10 (x86_64);  Intel Core i7-3630QM @ 2.40GHz, 8 GiB RAM, NViDiA GeForce GT 650M w/ 2 GiB
Desktop: Arch Linux (x86_64) and Win10 (x86_64);  Intel Core i7-4771  @ 3.50GHz, 32 GiB RAM, AMD Radeon RX 480 w/ 8 GiB

Offline

#3 2015-05-23 14:15:32

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Dolphin: "invalid ownership on directory /var/cache/samba/msg"

I have the same issue here. Any ideas on how to fix it?

P

Offline

#4 2015-09-17 18:22:10

fwz
Member
Registered: 2015-03-08
Posts: 1

Re: Dolphin: "invalid ownership on directory /var/cache/samba/msg"

I removed

/var/cache/samba/msg

and restarted smbd and nmbd and it worked immediately.

Last edited by fwz (2015-09-17 18:22:47)

Offline

Board footer

Powered by FluxBB