Author Topic: Cannot add "file system path" for new samba shares  (Read 5235 times)

newuser44

  • Zen Apprentice
  • *
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Cannot add "file system path" for new samba shares
« on: November 12, 2008, 05:46:32 pm »
I'm using ebox 0.12 on Mythbuntu 8.10 64bit.

When trying to create a new samba share with firefox 3.03, the entry field for adding the file system path disappears.  If I switch back to "Directory under ebox", the entry field re-appears.

How can I fix this without manually editing the samba config file?

Thanks.

masmi01

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Can not add "file system path" for new samba shares
« Reply #1 on: November 14, 2008, 09:27:35 am »
Hi,

What I did was to create a folder in linux directory before actually creating file system path. It works for me although there's an additional step that you need to do.


drapsag

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
BUG: Can not add "file system path" for new samba shares
« Reply #2 on: December 05, 2008, 09:22:15 am »
I have the same problem (ubuntu 8.10 x86, ebox 0.12):

share path entry text box disappear when choosing File system path.

The post by masmi01 is useless....which folder?, where? in addition of which?

So is this a bug? Or just a not so good documented configuration issue?


rodL

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
File Sharing Troubles
« Reply #3 on: December 22, 2008, 06:50:49 am »
I am new to both ubuntu and eBox.  I have recently installed both ubunto Intrepid Ibex and eBox.  I want to share files with Samba.  I am using file sever mode since I have some Windows Vista Home Premium machines that only support workgroups not domains.  I have two issues:

1. When trying to select "Share Path" as "File System Path" there is no field to enter the path.  If I go ahead and try to add the share I get the error message "Missing Arguement: Share path"

2.  To work around 1., I created a share using the "Share Path" as "Directory under eBox" called "test".  The directory gets created.  I created users and put them in a group and gave that group "read and write" access to share.  I tried to connect to it from a windows XP workstation.  I can see the server when I go to "view workgroup computers"  When I try to browse the server I am prompted for a username and password.  I tried a username and password that I set up in eBox but cannot seem to login.  Are there additional tasks that I need to do to set permissions?

Any help would be greatly appreciated.

rodL

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Can not add "file system path" for new samba shares
« Reply #4 on: December 22, 2008, 06:59:41 am »
I get the same error.  i just made a similar post before seeing this one.  I am using IE so it is nto specific to firefox.  Seems like a bug.

rodL

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: File Sharing Troubles
« Reply #5 on: December 22, 2008, 08:10:34 am »
More fun.  I checked out /var/log/samba and found the following entries in a log file for my computer name:
[2008/12/21 22:38:56,  1] passdb/pdb_ldap.c:ldapsam_getsampwnam(1523)
  ldapsam_getsampwnam: Duplicate entries for this user [Rod] Failing. count=2

This is the same as my ubuntu username.  Would that cause the duplicate entry error?  I deleted the user in eBox but could not login with my ubuntu username and password.

From the XP machine when trying to browse the samba share I used another user credentials and was able to login but I only saw the user directory not the shared directory even though I gave the user read write access.


javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: File Sharing Troubles
« Reply #6 on: December 22, 2008, 11:00:19 am »
Mmm, it seems there's something wrong on our UI that makes unusable that part of the UI.

Having said that, don't use the same user as the one you created during installation. And if you create a directory in your file system, you will have to set the permissions properly with chmod/chown. Sorry the part that doesn't work from your UI is the one that did that job for you.

Could you please tell me what firefox version -any relevant addon?- and OS you are using to connect to the web interface?

Thanks

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Can not add "file system path" for new samba shares
« Reply #7 on: December 22, 2008, 11:02:07 am »
It seems this bug has been reported only in Intrepid. I'm working on it. Could some of you install firebug and see what happens when you select that field?

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Can not add "file system path" for new samba shares
« Reply #8 on: December 22, 2008, 02:16:04 pm »
Hi guys,

I've just fixed the bug. It was a bug that only happened with the prototype  library shipped with intrepid.

You must update your libebox package:

Code: [Select]
apt-get update
apt-get install libebox

Thanks!

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: File Sharing Troubles
« Reply #9 on: December 22, 2008, 02:16:14 pm »
Hi guys,

I've just fixed the bug. It was a bug that only happened with the prototype  library shipped with intrepid.

You must update your libebox package:

Code: [Select]
apt-get update
apt-get install libebox

Thanks!

drapsag

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Can not add "file system path" for new samba shares
« Reply #10 on: December 22, 2008, 03:34:28 pm »
thnx!!!  ;D ;D ;D

going to test it soon!

rodL

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Cannot add "file system path" for new samba shares
« Reply #11 on: December 23, 2008, 07:49:37 pm »
We are getting there.  I can now add the share and specify the directory but the share still does not show up when I browse the server from a windows device.  What shows up are:  the user home directory, ebox-internal-backups, and printers.  I am obviously missing something here.

Here is what I have done:
1.  Added Users
2.  Enabled the users for PDC/File Sharing
3.  Created a group (lambi)
4.  Added the users to the group
5.  Set the sharing directory for the goup to /data/lambi
6.  Created the directory /data/lambi with the following permissions:
     drwxr-xr-x   4 root root  4096 2008-12-22 10:04 data/
     drwxr-xr-x  2 rod  lambi  4096 2008-12-22 10:02 lambi/
7.   Enabled sharing in File Server mode
8.  Added the share
     Share name: lambi
     Path: /data/lambi
9.  Edited Access Control for the share and gave the group "lambi" read and write access

I am stuck.

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Cannot add "file system path" for new samba shares
« Reply #12 on: December 23, 2008, 08:50:33 pm »
Please post your /etc/samba/smb.conf

And also try change the name of your share.


rodL

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Cannot add "file system path" for new samba shares
« Reply #13 on: December 24, 2008, 12:21:53 am »
Here you go:

[global]
 unix charset = LOCALE
 workgroup = thelambi
 netbios name = lambi01
 server string = EBox Samba Server
 enable privileges = yes
 interfaces = eth0,lo
 bind interfaces only = Yes
 passdb backend = ldapsam:ldapi://%2fvar%2frun%2fslapd%2fldapi
 log level = 1
 syslog = 0
 log file = /var/log/samba/%m
 max log size = 50
 smb ports = 137 138 139 445
 name resolve order = wins bcast hosts
 time server = Yes
 printcap name = CUPS
 wins support = Yes
 dns proxy = Yes
 ldap suffix = dc=ebox
 ldap machine suffix = ou=Computers
 ldap user suffix =
 ldap group suffix =
 ldap idmap suffix = ou=Idmap
 ldap admin dn = cn=admin,dc=ebox
 map acl inherit = Yes
 printing = cups

 encrypt passwords = true
 obey pam restrictions = No
 ldap passwd sync = Yes
 mangling method = hash2

 logon script = logon.bat
 logon drive = H:
 logon home =
 logon path =

 domain logons = Yes
 os level = 65
 preferred master = Yes
 domain master = Yes
 add user script = /usr/sbin/smbldap-useradd -m "%u"
 ldap delete dn = Yes
 add machine script = /usr/sbin/smbldap-useradd -w "%u"
 add group script = /usr/sbin/smbldap-groupadd -p "%g"
 add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
 delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
 set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"

 [netlogon]
        path = /home/samba/netlogon/
        browseable = No
        read only = yes

 [profiles]
        path = /home/samba/profiles
        read only = no
        create mask = 0600
        directory mask = 0700
        browseable = No
        guest ok = Yes
        profile acls = yes
        csc policy = disable
        valid users = %U
        admin users = @"Domain Admins"


[homes]
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No





[ebox-internal-backups]
 path = /var/lib/ebox/conf//backups
 read only = No
 valid users = @"Domain Admins"
 admin users = @"Domain Admins"
 force group = ebox
 force user = ebox
 browseable = Yes

[print$]
 comment = Printer Drivers
 path = /var/lib/samba/printers
 browseable = yes
 read only = yes
 guest ok = no
 write list = @"Domain Admins"


drapsag

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Cannot add "file system path" for new samba shares
« Reply #14 on: December 24, 2008, 10:02:37 pm »
did you try to reset the domain SID:

sudo net getlocalsid

ebox-fix-sid <sid>

search for "ebox-fix-sid " for more information

there is also some issue with setting the share access control permission to an user. It doesn't work, but setting the access to group most of the time does work.
« Last Edit: December 24, 2008, 10:17:19 pm by drapsag »