LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-27-2012, 07:01 PM   #1
kengele
LQ Newbie
 
Registered: Sep 2004
Location: Spain
Distribution: SuSE 11.1 and ubuntu 9.04
Posts: 7

Rep: Reputation: 0
Problem making a directory share on Linux server


Hi
I have set up a home network on a computer with OpenSuse 12.1 installed using the Swerdna tutorials.

When I try and set the DirectoryA to share in Dolphin or Konqueror by right clicking onto Properties then Share it initially shows a share (and the directory icon changes to a shared directory icon), but almost immediately afterwards it goes back to the original non share version.

Does anyone have an idea what the problem might be? Why can't I make this directory a share?

My smb.conf file looks like this -

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2012-02-16
[global]
workgroup = WORKGROUP
netbios name = mainserver
passdb backend = tdbsam
name resolve order = bcast host lmhosts wins
map to guest = Bad User
local master = Yes
preferred master = Yes
os level = 65
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
load printers = yes
use client driver = yes
server string = ""
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
guest ok = yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[DirectoryA]
comment = A Files
path = /home/Buser/DirectoryA
read only = no
valid users = guser +groupA
force user = guser
[DirectoryW]
comment = W Files
path = /home/Buser/DirectoryW
read only = no
valid users = +groupA
force user = guser
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root

When I looked at usershares this is the result (which is strange because ONLY wellyboot works - is accessible on the other computers on the network - also I dont understand why I have 2 welly and wellyboot which both access DirectoryW but only wellyboot works? (The others are visible but have read only access, and I haven't been able to change that )

dhcppc5:/home/Buser # ls -l /var/lib/samba/usershares
total 16
-rw-r--r-- 1 root root 105 Mar 27 17:59 directorya
-rw-r--r-- 1 guser users 115 Mar 27 23:02 welly
-rw-r--r-- 1 buser users 213 Mar 28 00:13 wellboot

Any ideas?
 
Old 03-27-2012, 07:43 PM   #2
kengele
LQ Newbie
 
Registered: Sep 2004
Location: Spain
Distribution: SuSE 11.1 and ubuntu 9.04
Posts: 7

Original Poster
Rep: Reputation: 0
I finally worked it out!

I had changed directory permissions that I couldnt access, making a share for those directories in root. When I saw they had shares in root, and un-shared them, and hen made them shared but logged on as buser and not root, the shares stayed.
 
  


Reply

Tags
shareddirectory



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
problem with linux n xp directory sharing! linux is the server ITislandboy Linux - Newbie 1 09-15-2011 01:52 PM
How share directory between two Linux virtual machines? eng_mohammedmostafa Linux - Software 4 04-28-2010 07:26 PM
HELP! Share directory permission problem Afante Linux - Newbie 6 02-23-2009 11:48 PM
own directory share in ftp server. rahuldevalone Linux - Server 5 10-14-2008 04:49 AM
In NFS server. I want to share directory but i dont want to share subdirectories. aashishdhabarde Linux - Server 1 01-16-2008 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:32 AM.

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