Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: skassab on October 30, 2005, 05:17:37 AM

Title: setting up new share at root level
Post by: skassab on October 30, 2005, 05:17:37 AM
I am new to Linux and need suggestions about how to set up a share at the root level.  I have been using SME Server for the past year without a hitch but now I need to add Advantage Database Server that requires the data to be stored and shared at the root level.  I don't want to give up SME but I do need to create this share.

I-bays created in SME manager are in /home/e-smith/files. I have unable to accomlish this by editing the Samba file ( or anyhting else I'v tried).

Would appreciate any suggestions.
Title: setting up new share at root level
Post by: Reinhold on October 30, 2005, 03:54:40 PM
skassab,

"root" sure can have many meanings in Linux.
The two most prominent are
- UserRights:  root is the all powerful superuser
- The lowest level of the filesystem "/" is called root.

Most likely your database doesn't need to be placed at root "/" ... however they may require it given superuser-rights to run (BAD idea :-x ).

But we sure do not want to guess...
For starters give us the full name of that application, an url and a quote from the "root required" part of the manual (whatever).

Regards
Reinhold
Title: root share
Post by: skassab on October 30, 2005, 04:30:42 PM
Thanks for your reply.

The program is called Advantage Database Server (www.advantagedatabase.com)  

I believe they want me to setup a directory at the root level, such as /data.  There instructions state that the Advantage dataase server does not use the Samba libraries first to resolve the name of the directory and therefore wants the data directory at the root prompt :-?
Title: more info
Post by: skassab on October 30, 2005, 05:08:30 PM
the entry (from the installation manual) that needs to be made in the Samba.conf fiel is:

[altadata]
comment = altadata
create mode = 660
directory mode = 770
force group = advantage
force user = advantage
path = /altadata/
writable = yes
default case = lower
preserve case = no

When I do this the altadata directory is present on the client machines (XP Pro) but I cannot open the directory.
Title: setting up new share at root level
Post by: Reinhold on November 01, 2005, 02:58:07 PM
skassab,

Have you tried to "map network drive" your ibay into XP ?
This will place your database accessible at "root-level" for your XP-located-database client.

Note:(right-click on "My Computer")

Regards
Reinhold
Title: mapping drive
Post by: skassab on November 02, 2005, 03:36:30 AM
Rienhold, thanks for your suggestion but the database server is on the linux server side and needs the folder at the / level.  Mapping the drive in XP on the client machine does not accomplish this.
I think I will have to tweek the Samba.config file to accomplish this but I have been unsuccesful as of yet. When I enter in the previously printed code I can get the share (/data folder) to show up on the clinet machine but cannot access it.

I am open to any and all suggestions. Thanks for you help.
Title: setting up new share at root level
Post by: Reinhold on November 02, 2005, 09:37:29 AM
skassab,

Sry for the misunderstanding - I clearly do not fully understand...
_but_
Lets then make the user and group needed, add an root-ibay and put it into Samba..

i) add a user altadata and a group altadata to your SME  in server-manager
(I don't know about permissions for your database executable and files though!)

ii) To make the root-ibay (Directory) just ssh into your server
Code: [Select]
cd /
mkdir /altadata -m 770
chown altadata:altadata altadata


iii) I think the entry they propose for smb.conf will not work.
It says force group = advantage force user = advantage. Try to add a line "guest ok = Yes"

iv) Note: To make the root directory an ibay in SME you have to make the proposed changes in the /etc/e-smith/templates/etc/smb.conf/
i.e. add a template fragment there not modify /etc/samba/smb.conf - else your modifications will not "exist" after the next reboot (but it seems you knew that).

Not sure we need more now...
...but at least you have an accessible ibay that makes your XP user to altadata on SME and should be able to access the root-"ibay"

Regards
Reinhold
...wondering how that database might operate ;-)