LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2003, 07:23 PM   #1
pili
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
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.
 
Old 08-16-2003, 07:29 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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.
 
Old 08-17-2003, 08:54 AM   #3
pili
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 08-17-2003, 09:36 AM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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.
 
Old 08-17-2003, 10:57 AM   #5
pili
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
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
?
 
Old 08-17-2003, 11:07 AM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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.
 
Old 08-17-2003, 12:34 PM   #7
amocjr
Member
 
Registered: Aug 2003
Location: Connecticut
Distribution: Mandrake, Debian
Posts: 39

Rep: Reputation: 15
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.

Last edited by amocjr; 08-17-2003 at 12:35 PM.
 
Old 08-17-2003, 04:15 PM   #8
pili
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
I'll test out the howto,

thanx
 
Old 08-18-2003, 03:29 AM   #9
pili
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 08-18-2003, 09:36 AM   #10
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba file server Temujin_12 *BSD 14 06-11-2005 07:50 PM
Samba on my File Server crep Linux - Networking 1 05-02-2005 08:23 AM
File Server - File system? Samba SUSE9 crazyswede Linux - Newbie 1 04-14-2005 10:04 AM
Samba File Server taydu3000 Linux - Networking 2 04-05-2005 09:35 PM
samba as a file server/share mnadeemrao Linux - Software 0 10-30-2003 05:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration