Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: JohnG on June 12, 2006, 05:38:31 AM
-
Maybe I'm being braindead but within XP I can map a network drive to individual ibays, but I can't figure out how to map so all of them are accessible within a mapped drive. I can browse to the SME server and see them all, I just can't map it. Is there a hidden share to map to all the shares? Thanks in advance.
-
Hi
The idea behind using different iBays is so you can use different permissions (There are other reasons too...) on each iBay. If you don't care for permissions and like only to use one drive letter to access your SME, then simply put / create all your folders under ONE iBay, say Primary.
That way you just map one drive, with all your contents.
If you need iBays with permissions, but just want one fat share for yourself as admin, then you'll have to add a smb template...
At one Client, all users need to access the home directory of a user called "direction". Using templates, you can do this. It's still not what you'd call "best practices..."
Regards
Andy
-
YOU can also use the ln command , same as Windows shortcuts
-
I'm searching smb templates but haven't found anything that I think would apply yet. I know I wasn't very clear so I'll use example:
I have 3 ibays: accounting, sales and janedoe.
I can map each one to a drive letter within windows as \\sme01\accounting, \\sme01\sales and \\sme01\janedoe.
I'd like to be able to map an additional admin drive such as \\sme01\alldirs$ which would contain the accounting, sales and janedoe directories as well as any additional ibays as they are added.
I tried mapping to C$, D$ and admin$ but they produced errors.
I've done this successfully within windows but can't figure out how to do it within samba.
Thanks again for any help.
-
login to the linux server
# cd /home/e-smith/files/ibays/YOURIBAYNAME/files
# ln -s /home/e-smith/files/ibays/A DIFFERENT IBAY/files shortcutname
Now when you view YOURIBAYNAME in windows, you'll also see a directory name shortcutname that will contain A DIFFERENT IBAY
To make life simpler , create a 'top level' ibay ( typically /u ) and put just the links in it
I'm NOT a security expert, but I believe that with the links, you can also tweak the permissions so the link permissions are not the same as the actual directory
-
One of these solutions should solve your problem, but I would like to point out that I strongly advise against doing method 1. There are problems with this method which I'm sure others with more Knowledge of SME's workings will point out. I only used this method due to the imminent failure of an SME system and I needed a quick drag and drop backup solution, i.e. I used this on a failing, soon to be scrapped system I wouldn't recommend it on a live system as I do not fully understand the consequences.
---------------------
Method 1
---------------------
1) login to your SME box locally or across the network using 'PuTTY' or similar. Login using 'root' as your username and your normal admin password.
2) At the prompt type 'mc' and press enter to load Midnight Commander.
3) familiarise yourself with Midnight Commander if you are not already
4) Go to /etc/samba and locate the file 'smb.conf' and press F4 to edit it.
5) At the top of the file you will notice it says do not edit, so edit this at your own discretion I will NOT be responsible if this messes up your system.
6) Go to the bottom of the file and enter the following (anything in {} are comments for your information, do not enter them or there contents).
[Share name] {Call this whatever you like but just remember naming conventions for iBays i.e. keep it short n to the point and in lower case, I called my share 'all'}
comment = Share description {Call this whatever you like}
# Recycle Bin disabled
path = /home/e-smith/files/ibays
read only = no
writable = yes
printable = no
inherit permissions = yes
create mode = 660 {This I copied from an iBay I had created properly you may need a different code}
7) Press F10 to save the file, and the F10 again to quit Midnight Commander.
8) You will now have a new share in Windows. But be careful with it, the
directory structure has a couple of extra folders for each iBay be careful not to delete or modify them.
9) From what I understand, any changes to iBays made in the web console will re-write this file and remove any changes you make, so this really isn't a solution for a live system.
---------------------
Method 2
---------------------
Unless you need to prevent certain users from accessing certain iBays and you are not running windows 2000 or above in a domain, I would create 1 iBay and map a drive to it. You can also map drives to folders within that iBay for other users. For example in your logon script.
net use M: "\\servername\iBay name"
This will map the iBay to the M: drive
net use P: "\\servername\iBay name\accounting"
net use S: "\\servername\iBay name\sales"
net use J: "\\servername\iBay name\janedoe"
Out of the 2 methods I mention, this is the best option on a 'live' system as long as your machines are all on a domain and are windows 2000 or above, you should have no problems locking down the sub folders in the iBay.
-
Thanks for all the suggestions.
Nemtex's method 1 answered my need exactly so I modified smb.conf and it did the trick. Now I just navigate to \\sme01\alldirs$ to see all my directories, very clean and neat. Thanks nemtex, and great directions!
I think I understand the caveats, now I have to figure out how to make it persistent so I don't lose the share the next time smb.conf is updated.
-
Glad to be of help :-)
-
JohnG
> now I have to figure out how to make it persistent so I don't lose the
> share the next time smb.conf is updated
A howto and forum post already existed which covered pretty much this situation, except for users folders. A search should have found them
You can apply the concepts and change folder names where necessary etc
http://mirror.contribs.org/smeserver//contribs/rmitchell/smeserver/howto/User%20Home%20directories%20access%20by%20Administrator%20HOWTO%20for%20sme%20server.htm