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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-16-2003, 08:23 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 8
Rep:
|
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.
|
|
|
08-16-2003, 08:29 PM
|
#2
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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.
|
|
|
08-17-2003, 09:54 AM
|
#3
|
LQ Newbie
Registered: Aug 2003
Posts: 8
Original Poster
Rep:
|
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
|
|
|
08-17-2003, 10:36 AM
|
#4
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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.
|
|
|
08-17-2003, 11:57 AM
|
#5
|
LQ Newbie
Registered: Aug 2003
Posts: 8
Original Poster
Rep:
|
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
?
|
|
|
08-17-2003, 12:07 PM
|
#6
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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.
|
|
|
08-17-2003, 01:34 PM
|
#7
|
Member
Registered: Aug 2003
Location: Connecticut
Distribution: Mandrake, Debian
Posts: 39
Rep:
|
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 01:35 PM.
|
|
|
08-17-2003, 05:15 PM
|
#8
|
LQ Newbie
Registered: Aug 2003
Posts: 8
Original Poster
Rep:
|
I'll test out the howto,
thanx
|
|
|
08-18-2003, 04:29 AM
|
#9
|
LQ Newbie
Registered: Aug 2003
Posts: 8
Original Poster
Rep:
|
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
|
|
|
08-18-2003, 10:36 AM
|
#10
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|