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

How to share a folder with Write Acess and Private Mode

Tags: None
(comma "," separated)
45678912
Registered Member
Posts
17
Karma
0
OS
Hello Guys,

I'm having some problem when I try to share a folder at Kubuntu 10.10... I know how to share a folder on Kubuntu, but I can't do it at the way I want...

Problem: Can't make a Writable Shared Folder without making it also Public (I need it to be Private (ask the user for Credentials, Authetication))

What I Want: Share a folder as Private, asking for credentials, writable and only allow acess if the credentials are from an specific user of the machine (like the Windows function)...

PS: I know this isn't a bug of KDE or Kubuntu... It's only a lack of my knowledge in Linux area... :)

Thanks for your attention,

Best Regards,

André M.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Samba does support shares like this. The current sharing UI does not support this however. I suggest you consult a guide on configuring samba to share folders like this.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
45678912
Registered Member
Posts
17
Karma
0
OS
Hello bcooksley,

Where can I find it?

PS: I've searched in Google.Com and did not find an answer on how to do it...

PS²: I also have tried to edit the file /etc/samba/smb.config and set the shared path with the configuration below, but It didn't solved the problem...

Code: Select all
Read Only = no


Thanks for your attention,

André M.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try adding:

Code: Select all
force user = <your username>
force group = <your group>
valid users = <users you wish to allow to connect, must be valid on your system>


You can use @<group name> to have groups present in the valid users line.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
45678912
Registered Member
Posts
17
Karma
0
OS
Thanks... It worked...

PS: I have had only one problem... I had to restart the service smbd by the commands above to this permission modifications work (Is this a bug of SAMBA?)
Code: Select all
sudo service smbd stop
sudo service smbd start


PS²: I could do these modifications on the kdenetwork-filesharing UI (I've gone to the SAMBA advanced options on the Sharing Tab and then I've gone to the Users Tab)...

PS³: It's really necessary to use the codes above because I think that if I use them I will have to use this user or group to acess the folder only (I'll not be able to set some users to acess it, only the one in this code)...
Code: Select all
force user = <your username>
force group = <your group>


Thanks for your help bcooksley,

André M.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The "force user" and "force group" statements ensure that all files accessed in the directory are done as your user to avoid permission issues.

Yes, you need to restart Samba as you did after making manual changes to it's configuration.


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


Bookmarks



Who is online

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