LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba file server (https://www.linuxquestions.org/questions/linux-software-2/samba-file-server-82670/)

pili 08-16-2003 07:23 PM

Samba file server
 
I have been reading a lot about Samba, but i still didn't found a way to accomplish the thing i wanted to do.
I would like to create a file server for winnt clients, and on this file server every user has its own personal folder. This folder is divided in a public and a private folder.
To create something like this I read that I'll have to create a primary Domain Controller with Samba, and that's something i may not do, cause we already have a primary domain controller in our network.
If someone knows a solution for this problem, please let me know.

Mathieu 08-16-2003 07:29 PM

Yes, all of this is possible with Samba.

You can manually edit the Samba configuration file (/etc/samba/smb.conf)
Or use a GUI tool like SWAT.

Which Linux distribution are you using ?
Some Linux distributions have there own Samba Configuration GUIs.

pili 08-17-2003 08:54 AM

I know how i can cahnge that file, but does anyone has an example smb.conf file which shows how to give every a personal directory without that te serverneds to be a primary domain controller

Mathieu 08-17-2003 09:36 AM

In the smb.conf file, there is a homes share.
This share provides existing Unix users access to their HOME directory (as long as the HOME directory was created when you created the Unix user).
There are many examples of shares in the smb.conf file.

If you look in the smb.conf file, all the options to make Samba into a normal file server are present.
Most of the comments explain the functionality quite well.

pili 08-17-2003 10:57 AM

Yes I see,
but there is the problem that i wonna share other directories than the home directories(but also a directory for every user),

is this also possible
?

Mathieu 08-17-2003 11:07 AM

Yes.
You can give the users access to their HOME directories as well as allowing access to other shared directories.
Some of these other shares can be accessable by every user, a group of users or a single user.

If you look in the smb.conf file under Share Definitions,
you will find some examples.


Also, there are many good GUI tools like webmin and SWAT that can help.
Some Linux distributions have their own GUI tool for configuring Samba.

amocjr 08-17-2003 12:34 PM

All of what you are trying to do is possible and relatively straightforward. The SMB HOW-TO is a comprehensive guide to Samba. It's available here at the Linux Documentation Project: http://www.tldp.org/HOWTO/SMB-HOWTO.html

I think the only tricky part may be that all of your users will need to have accounts on the Linux box even though they are authenticated for the domain elsewhere.

pili 08-17-2003 04:15 PM

I'll test out the howto,

thanx

pili 08-18-2003 03:29 AM

I can't find wath i need from this howto,
maybe it would be good if I explain very basically what i need.
I need on the client side, that the user when he logs in receives a disk
for example X:
on this disk there should be two folders with different permissions,
a personal folder and a shared folder

the user also must see another disk, for example disk Y:
on this Y: disk the user should see the shared directories of all the users

Mathieu 08-18-2003 09:36 AM

You need to map a network drive.
In windows, go to Network Neighborhood and click on your Linux box.
(_If you have win2k/XP, your Linux box will be in Microsoft Networks_).
If you have setup shares, simply right-click on a share and select 'Map Network Drive'.

In your smb.conf, there are a few examples. (make a backup of smb.conf in order to keep those examples.)

Take a look a the one's with valid users = and directory mode =

Also, you need to create Linux users and you need to create the equivalent Samba user.
Type: smbpasswd -a myLinuxUser


Since you want a Domain controller and mapped Network Drives, your install has become quite complex.
You may want to take a look at the Documentation on the Samba web site or purchase a book on Samba.

Samba
http://www.samba.org/

Samba - O'Reilly & Associates
http://www.oreilly.com/catalog/samba2/

Using Samba - Open Books Project
http://www.oreilly.com/openbook/


All times are GMT -5. The time now is 08:40 AM.