Bug 122573 - forgets to check the filepermissions of smb.conf before deciding on whatever the root password is needed or not to share this folder
Summary: forgets to check the filepermissions of smb.conf before deciding on whatever ...
Status: RESOLVED FIXED
Alias: None
Product: kfile
Classification: Unmaintained
Component: kpropertiesdialog (other bugs)
Version First Reported In: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-23 17:56 UTC by Anders Juel Jensen
Modified: 2018-06-15 02:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Juel Jensen 2006-02-23 17:56:32 UTC
Version:            (using KDE KDE 3.5.1)
Installed from:    Slackware Packages
Compiler:          GCC 3.4.5  
OS:                Linux

1) Open Konq as filemanager.
2) Right-click on any given folder in your home dir.
3) Select properties.
4) Click the "Share" tab.

At this point it will bug you with "You need to be authorized to share folders", *regardles* of the permissions set on /etc/samba/smb.conf.

Proof:
$ ls -l /etc/samba/smb.conf
-rw-rw-r-- 1 root users

$ groups
users disk audio video cdrom console macavity

I am *not* a C++ hacker, but i have tracked this to line 177 in kdelibs-3.5.1/kio/kfile/kfilesharedlg.cpp which says:

"case KFileShare::UserNotAllowed:"

and then it displays the button to press to enter the root-password.

That is, this is just the place in which the actual bug is triggerd, but the odd thing is that i cant find any other instances of KFileShare::UserNotAllowed in all of kdelibs, so i gave up investigating it further.
Comment 1 Anne-Marie Mahfouf 2006-02-23 19:19:46 UTC
I cannot reproduce, it all works OK for me. If my user annma is member of users and if I set smb as mentioned via KControl, all annma-owned folders don't need root password to be shared.
Comment 2 Christoph Feck 2009-08-27 02:37:11 UTC
Moving from "kio/kfile" component to "kfile" product, helps sorting out duplicates.
Comment 3 Nate Graham 2018-06-15 02:42:38 UTC
Works for me in KDE Frameworks 5.47.