LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2014, 06:42 AM   #1
s.verma
Member
 
Registered: Oct 2013
Distribution: Debian Sid, Gentoo, Arch, Debian
Posts: 186
Blog Entries: 4

Rep: Reputation: 25
samba in kde dolphin not working.


Dear all,
I have installed samba and kdenetwork-filesharing. But I am unable to share files over samba through right clicking a folder and selecting Share.

Also starting dolphin gives error as,
Code:
dolphin(10811) KSambaSharePrivate::getNetUserShareInfo: We got some errors while running 'net usershare info'
dolphin(10811) KSambaSharePrivate::getNetUserShareInfo: "net usershare: cannot open usershare directory /var/lib/samba/usershare. Error No such file or directory
Please ask your system administrator to enable user sharing.
"
Also I already have
Code:
$ ls -dl /var/lib/samba/usershares/
drwxrwx--T 2 root sambashare 4096 Nov  9 16:55 /var/lib/samba/usershares/
I am in group sambashare.
 
Old 11-09-2014, 09:14 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,716
Blog Entries: 28

Rep: Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275
Have you configured your /etc/samba/smb.conf file?

Have you added users using smbpasswd and do those users have valid logons to the computer?

Are the directories shared in the directory permissions?

Check out this link: http://www.samba.org/samba/docs/Samba3-ByExample.pdf
 
Old 11-11-2014, 10:39 AM   #3
s.verma
Member
 
Registered: Oct 2013
Distribution: Debian Sid, Gentoo, Arch, Debian
Posts: 186

Original Poster
Blog Entries: 4

Rep: Reputation: 25
Quote:
Originally Posted by frankbell View Post
Have you configured your /etc/samba/smb.conf file?
I have configured it
Code:
....
[The_Share]
comment=I am sharing.
read only = yes
locking = no
path=/home/shailu/Public/Out/
guest ok = yes 

[Give_it_to_me]
comment = Please drop it here.
read only = no
locking = no
path=/home/shailu/Public/In/
guest ok = yes

[General]
comment = Common.
read only = no
locking = no
path = /home/shailu/Public/InOut/
guest ok = yes
.....
....
and it is working fine, but sharing from gui is not working.
(see the attachment).

Quote:
Originally Posted by frankbell View Post
Have you added users using smbpasswd and do those users have valid logons to the computer?
I want to share my all folders over LAN network without demanding any password/username from other computers. i.e Public.

Quote:
Originally Posted by frankbell View Post
Are the directories shared in the directory permissions?

Check out this link: http://www.samba.org/samba/docs/Samba3-ByExample.pdf
Yes. But it is only working for my home ext4 filesystem, but not on Windows NTFS partition, as I have recently checked there is some problem of ACL.
Code:
$ ls -ld /media/shailu/
drwxr-x---+ 4 root root 4096 Nov 11 19:07 /media/shailu/

$ getfacl /media/shailu/
getfacl: Removing leading '/' from absolute path names
# file: media/shailu/
# owner: root
# group: root
user::rwx
user:shailu:r-x
group::---
mask::r-x
other::---
NTFS filesystem is mounted under /media/shailu.

Also my working configuration have these directory shared
Code:
$ ls -ld Public/*
drwx-wx-wt 2 shailu shailu 4096 Nov  9 00:34 Public/In
drwxrwxrwx 2 shailu shailu 4096 Nov  9 00:34 Public/InOut
drwxr-xr-x 2 shailu shailu 4096 Oct  4 20:57 Public/Out
with corresponding configuration in smb.conf file, where
Public/In: anybody can write to but not read from it.
Public/InOut: Full permission
Public/Out: Only read access.

Update:
I have been able to share from ntfs partition by using /etc/fstab entry
Quote:
/dev/sda3 /mnt/data ntfs-3g defaults,users,uid=1000,gid=1000,umask=022 0 0
Now I have required permissions so just like Public/Out I can share from /mnt/data/path.
But I can not umount it while somebody is accessing it from LAN (as I have tried from my computer using smb://Hostname in kde Dolphin). Not even by umount -f. Hence people on LAN when accessing my share would render me unable to umount ntfs partition.

Still Sharing from kde dolphin right clicking is unresolved.
Attached Thumbnails
Click image for larger version

Name:	snapshot3.png
Views:	258
Size:	45.3 KB
ID:	16845  

Last edited by s.verma; 11-11-2014 at 12:30 PM. Reason: UPDATING.
 
Old 11-11-2014, 08:30 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,716
Blog Entries: 28

Rep: Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275
I have never shared via fstab, so you are way ahead of me there, but it certainly looks as you have made a lot of progress. Thanks for the update. And thanks for answering my questions so thoroughly.

It has been my experience that, if a filesystem is in use, umount will refuse to unmount it. I'm not a umount expert by any means, but this link would seem to confirm that: http://www.computerhope.com/unix/umount.htm

This gives a way to kick samba users off a system: http://forums.opensuse.org/showthrea...ff-samba-users
 
1 members found this post helpful.
Old 11-12-2014, 08:13 AM   #5
s.verma
Member
 
Registered: Oct 2013
Distribution: Debian Sid, Gentoo, Arch, Debian
Posts: 186

Original Poster
Blog Entries: 4

Rep: Reputation: 25
Quote:
Originally Posted by frankbell View Post
This gives a way to kick samba users off a system: http://forums.opensuse.org/showthrea...ff-samba-users
Great. Thanks.
I will try it when required.
I am also thinking that maybe by stopping samba daemon also may solve the problem if samba can be stopped in between file access.
 
Old 12-05-2014, 07:43 AM   #6
s.verma
Member
 
Registered: Oct 2013
Distribution: Debian Sid, Gentoo, Arch, Debian
Posts: 186

Original Poster
Blog Entries: 4

Rep: Reputation: 25
The problem is solved. The problem was that of spelling. My smb.conf file declare usershares directory as /var/lib/samba/usershare, whereas actually my filesystem has directory /var/lib/samba/usershares that caused me the trouble.

I remember that I already has checked in the past for spelling problem, but then both looked same to me. I wonder how I missed it. Now I realise that perhaps my observation power has been declined.

OK Thanks again to all.

Last edited by s.verma; 12-05-2014 at 07:44 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dolphin+SMPlayer+samba (again) SibBear Linux - Newbie 5 09-03-2013 08:33 AM
[SOLVED] Partition (or Dolphin, KDE) won't allow writing to drive. KDE Bhakta Neal Linux - Newbie 36 05-20-2011 01:05 PM
[SOLVED] [ASK]dolphin with samba protocol problem el_jauzaa Slackware 22 06-22-2010 01:21 PM
[SOLVED] Dolphin keeps freezing with KDE 4.2.3+ Daedra Slackware 7 01-11-2010 06:43 PM
KDE Dolphin not opening sant527 Linux - Newbie 2 11-09-2009 04:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration