LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-08-2011, 02:35 PM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 667

Rep: Reputation: 39
adduser scripts in the samba.conf


Hell oeveryone!
I am abit fuzzy about the usage of adduser script directives in the smb.conf.
I pressume they give you the ability to add users directly from windows machines... or not?
and how can I use them?

Thank you for your clarifications
 
Old 03-08-2011, 10:26 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,666
Blog Entries: 28

Rep: Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248
I'm not sure, but I think the adduser command needs to be run on the samba server.

As for the rest, this is easiest to understand Samba Guide I've found:

Samba by Example

It starts with real simple examples and proceeds to complicated ones.
 
Old 03-09-2011, 04:04 AM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 667

Original Poster
Rep: Reputation: 39
I have gone through this tutorials by example (and not only those) on numerous occasions in my experience with linux.
No apparent solution has come to my attention.

if you run the adduser command from a linux terminal necessarily, then what is the purpose of the directive in the smb.conf?

I ideally would like to avoid having to logon a terminal to add users. and in fact, i would prefer not to have to run both the useradd and smbpasswd -a commands...

I'm really looking for 'processed' answer here, cause it is not apparent to me exactly how samba can be utilised.

Thank you
 
Old 03-09-2011, 04:41 AM   #4
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Rep: Reputation: 16
I think you can use web based interface such webmin and SWAT.
I never actually use any of those to configure SAMBA, but I know both tools are working.
You can access those interfaces directly from your Wind0ws machine's browser.

regards
cnz
 
Old 03-09-2011, 04:50 AM   #5
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 667

Original Poster
Rep: Reputation: 39
i'm afraid you need to have added a user by terminal in order to be able to enable or disable them from the SWAT interface.
I have no idea about webmin, can someone verify any of the 2 statements?
 
Old 03-09-2011, 06:46 AM   #6
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
The add user script is used to add users to Samba. It gives you some flexibility re: the tool you use to add users.

You can add users to Samba from the Linux command line. This is good if you understand Linux. If Samba is being managed by a Windows admin. this might be an issue.

You can use the Windows NT 4.0 User Manager for Domains to add users to Samba. User Manager for Domains cannot add users to a Linux box by itself. However it can be configured to pass the instructions to the add user script.

On my system we run User Manager for Domains on a Windows XP machine. The usrmgr.exe is located on the Samba server but we run it from XP.

When we add a user in User Manager for Domains, it calls the add user script and the add user script adds the user. When we want to delete a user, User Manager for Domains calls the delete user script and the delete user script deletes the user.

In summary, the add user script allows you to use a non-Linux GUI tool to add users to the Linux machine.

Last edited by jamrock; 03-09-2011 at 06:48 AM.
 
1 members found this post helpful.
Old 03-09-2011, 06:50 AM   #7
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 667

Original Poster
Rep: Reputation: 39
i see, so you need a windows frontend to use it though.. that was mostly my missing piece..
I wonder though, since the the 'add user script' calls 'useradd' command, then WHO calls 'smbpasswd -a' ?
 
Old 03-09-2011, 08:45 AM   #8
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Quote:
i see, so you need a windows frontend to use it though.. that was mostly my missing piece..
I don't know if it is only used with the Windows front end. That is the way I use it.

Quote:
I wonder though, since the the 'add user script' calls 'useradd' command, then WHO calls 'smbpasswd -a' ?
Samba is an advanced topic. There are several ways that you can configure user authentication. I use OpenLDAP to store user information. The addition of the Samba information and the Posix (Linux) information is managed by the add user scripts provided with the smb-ldap tools.

Chapter 5 of Samba by Example goes step by step into the configuration of Samba as a PDC. It would be a good place to start your reading. The document is available at www.samba.org.
 
Old 03-09-2011, 10:46 PM   #9
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Rep: Reputation: 16
Quote:
Originally Posted by nass View Post
i'm afraid you need to have added a user by terminal in order to be able to enable or disable them from the SWAT interface.
I have no idea about webmin, can someone verify any of the 2 statements?
I verify my own statement about webmin.
It has this features under "Samba Users" feature:
Edit Samba users and passwords
Convert Unix users to Samba users
Configure automatic Unix and Samba user synchronisation
Add and edit Samba groups
Configure automatic Unix and Samba group synchronisation
Bind to Domain
so it can convert unix users to samba user, but you can't create a samba user out of thin air.

Last edited by yoachan; 03-09-2011 at 10:48 PM.
 
1 members found this post helpful.
  


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
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 01:54 AM
Scripts and adduser mikz Linux - General 2 03-05-2005 07:39 AM
Adduser scripts?? Copenhagen Cowboy Linux - General 13 12-09-2003 09:22 AM
Samba adduser? X-Ray5 Linux - Software 5 09-04-2002 08:10 PM
winbind in samba wont adduser cmyrvold Linux - Networking 0 05-07-2002 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:02 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