LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-28-2005, 12:44 PM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
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.
 
Old 11-28-2005, 02:00 PM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
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.
 
Old 11-28-2005, 02:29 PM   #3
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
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.
 
Old 11-28-2005, 03:52 PM   #4
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 password question mchanea Linux - Networking 1 03-02-2004 06:11 AM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM
Creating password file for samba DingleBerry420 Linux - Networking 8 08-22-2003 07:29 PM
Samba/RH8/WinXP passwords (simple question) eden Linux - Networking 3 03-15-2003 09:54 AM
Samba Password File gauge73 Linux - Networking 2 01-28-2003 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:01 PM.

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