We help IT Professionals succeed at work.

Suse Linux File Server Shared folder ?

Axis52401
Axis52401 used Ask the Experts™
on
I have to use a Linux server as a file server and don't know much about it. I got the OS loaded and it on the network. My google reading says for this version of linux I have to use an app called Samba to create and manage file shares. I have a few hopefully simple question for some Linux expert.

My first problem I I have somehow created a file share that I can see by accessing my Windows PC and using \\Servername

But when I right click on the folder and hit Map Network drive it gives me a username and password box. I don't know what to use. I only created one user on the Linux server and it's not taking that login info.

An providing I can get that working I have What in Windows I would call partitions but here I don't know but a 20G one and a 386G one. I'd like to share out a folder on the 386G one but in the Samba create share section the browse section doesn't seem to allow me to do that.

As you can probably tell I'm not a Linux expert any suggestion will be helpful.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hello,

Here are some good links how to create Samba share on Suse:
http://www.techrepublic.com/article/solutionbase-configure-a-samba-server-in-linux-with-suses-yast/6180959
http://opensuse.swerdna.org/susesambaserver.html

Thee instructions should be enough to create what you need. If you have any questions regarding steps described in links above, don't hesitate to ask.

Regards!
Axis52401Security Analyst

Author

Commented:
I found the below entry on the first link you sent me. But it doesn't tell me how to alter any of these whether I create some sort of password file, How to use Ldap to read the Windows Domain accounts, etc



he other Advanced Settings tab, User Authentication Sources, is simply a way for you to define where Samba finds the resource file to authenticate users. There are four different types:

    smbpasswd File
    LDAP
    TDB Database
    MySQL Database

Obviously, this configuration will depend completely on your network setup. The default option is smbpasswd File. If you press the Edit button (with that option highlighted), you can then enter the location of the password file used.
To use LDAP your Suse server should be part of Windows domain.

To use smbpasswd file as authentication method do the following as root:

suse$ smbpasswd -a <username>

Regards!
Axis52401Security Analyst

Author

Commented:
I added the Linux server to the Windows domain, How to I set up the LDAP to enable the use of the Windows accounts to be used to access the shared folders.
Here are some good links how to do it:
http://wiki.samba.org/index.php/Samba_&_Active_Directory
http://www.enterprisenetworkingplanet.com/netos/article.php/3487081/Join-Samba-3-to-Your--Active-Directory-Domain.htm
http://www.howtoforge.com/samba_active_directory

Unfortunately I don't have AD to test it. But if you follow the steps and compare your current setup against setup on those links, you should be able to find what is missing in your configuration.

Regards!