Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
|
|
03-08-2011, 02:35 PM
|
#1
|
Member
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 667
Rep:
|
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
|
|
|
03-08-2011, 10:26 PM
|
#2
|
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
|
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.
|
|
|
03-09-2011, 04:04 AM
|
#3
|
Member
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 667
Original Poster
Rep:
|
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
|
|
|
03-09-2011, 04:41 AM
|
#4
|
Member
Registered: Nov 2009
Posts: 109
Rep:
|
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
|
|
|
03-09-2011, 04:50 AM
|
#5
|
Member
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 667
Original Poster
Rep:
|
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?
|
|
|
03-09-2011, 06:46 AM
|
#6
|
Member
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444
Rep:
|
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.
|
03-09-2011, 06:50 AM
|
#7
|
Member
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 667
Original Poster
Rep:
|
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' ?
|
|
|
03-09-2011, 08:45 AM
|
#8
|
Member
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444
Rep:
|
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.
|
|
|
03-09-2011, 10:46 PM
|
#9
|
Member
Registered: Nov 2009
Posts: 109
Rep:
|
Quote:
Originally Posted by nass
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.
|
All times are GMT -5. The time now is 04:02 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
|
|