Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
 |
11-28-2005, 12:44 PM
|
#1
|
Member
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507
Rep:
|
Samba question, passwords, password file, etc....
All righty, I've got an interesting question. Also, 1st off I am not looking for commands or any of that, just want an idea logically or how other people do these types of things.
The overall question centers around users on a network. 1st off are there really any decent automated ways of addings users/passwords to a Linux system? A script perhas? Next thing would be configuring directories and permissions for those said users to utilize the network resources. Like I have seen from like the smb.conf file (examples in it I mean) it gives like a %n (or some variable like that) to indicate different users who log in. Can this be done with setting your directories and permissions too? Also, when I was tinkering with my smb.conf file last night I was adding the section in for the smb password file...and it got me wondering. Would it be feasable (and perhaps more efficient??) to say let one separate server handle ONLY usernames and passwords while the Samba server does its job of handling shares/files.
I'm not really sure if I made myself clear here or not...I guess I am just wanting to know if it's possible to make say a Samba server more automated and efficient with handling users, passwords, and permissions. Because it does get kinda tedious just adding users and passwords over and over again, configuring permission settings for a certain directory, and what not. I am not seeking people to give me step by step instructions how or commands...but just real world or even basic scenarios on how it could be done. Has anyone here done anything like what I am talking about? I am using Samba specifically but I am sure it could be applied to the other servers as well. Any thoughts or ideas?
P.S. As a side note, aside from my tinkerking last night...the idea for this also came from the fact that here I am at school and I can't get into my personal network share b/c the file server (no doubt a Windows one too) is down or had a brain fart. This happens occasionally here at school.
Last edited by Basslord1124; 11-28-2005 at 12:46 PM.
|
|
|
11-28-2005, 02:00 PM
|
#2
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
Re: Samba question, passwords, password file, etc....
Quote:
Originally posted by Basslord1124
The overall question centers around users on a network. 1st off are there really any decent automated ways of addings users/passwords to a Linux system? A script perhas? Next thing would be configuring directories and permissions for those said users to utilize the network resources. Like I have seen from like the smb.conf file (examples in it I mean) it gives like a %n (or some variable like that) to indicate different users who log in. Can this be done with setting your directories and permissions too? Also, when I was tinkering with my smb.conf file last night I was adding the section in for the smb password file...and it got me wondering. Would it be feasable (and perhaps more efficient??)
|
Open ldap ..
Quote:
Originally posted by Basslord1124
.......... to say let one separate server handle ONLY usernames and passwords while the Samba server does its job of handling shares/files.
|
You can forward all your authentication requests to a LDAP server on a different box by mentioning it in smb.conf with the ip address of ldap server. This openldap+samba combination sounds to me 'the most robust' working scenario.
Quote:
Originally posted by Basslord1124
............. kinda tedious just adding users and passwords over and over again
|
If you've got so many users to handle... Go for Open LDAP.
|
|
|
11-28-2005, 02:29 PM
|
#3
|
Member
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507
Original Poster
Rep:
|
Re: Re: Samba question, passwords, password file, etc....
Quote:
Originally posted by amitsharma_26
If you've got so many users to handle... Go for Open LDAP.
|
Actually for my home scenario I don't have that many users...but I was wondering how one would do it on a larger scale.
|
|
|
11-28-2005, 03:52 PM
|
#4
|
Member
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384
Rep:
|
Hi,
I believe you're looking for the Samba3-ByExample, available at http://www.samba.org/samba/docs/
on this page, you also find the Samba3-HOWTO, which will give you all the command you need...
I read through the Samba3-ByExample, which is very good reading, and very easy to understand, since it's built on real-life scenarii... unfortunatly I never took time to play around with it.
Hope this helps
Last edited by fr_laz; 11-28-2005 at 03:53 PM.
|
|
|
All times are GMT -5. The time now is 10:01 PM.
|
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
|
|