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
 
LinkBack Search this Thread
Old 10-21-2009, 05:47 PM   #1
deibertine
Member
 
Registered: Mar 2009
Posts: 215

Rep: Reputation: 30
Samba Users


I was wondering on how to migrate existing linux users in my box into my new samba install? Samba is also installed in the same box where my linux users are.

Please anyone kindly advise.

Cheers!
DB
 
Old 10-22-2009, 12:06 AM   #2
madmadmod
Member
 
Registered: Sep 2009
Distribution: Fedora, Red Hat
Posts: 52

Rep: Reputation: 18
If you use security=users you have to add them manualy (smbpasswd -a username). I think...
 
Old 10-22-2009, 09:42 AM   #3
deibertine
Member
 
Registered: Mar 2009
Posts: 215

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by madmadmod View Post
If you use security=users you have to add them manualy (smbpasswd -a username). I think...
Is there a way that I can map my existing linux users' id and their passwords in samba?

I'd like to use my existing linux user credentials if possible to avoid re-creating them again.

Thanks!
DB
 
Old 10-22-2009, 09:53 AM   #4
deibertine
Member
 
Registered: Mar 2009
Posts: 215

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by madmadmod View Post
If you use security=users you have to add them manualy (smbpasswd -a username). I think...
On second thought, if I do add them manually via smbpasswd -a username, will this keep their existing passwords they have set in the unix box or do I have to recreate these passwords also?

I use security=users parameter, perhaps I need to use a different parameter in here to enable samba to use and authenticate against its current unix user credentials in the box?

Please advise.
 
Old 10-22-2009, 10:58 AM   #5
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Rep: Reputation: 23
unix password sync = yes

You could also use the "unix password sync" option in your smb.conf.

The idea there is to keep the passwords the same, without having to change them twice. You will have to add users to samba first, but this way you won't have to muck with their password. I think. It's been awhile since I've used this option stand alone. At worst you'll have to add them to samba then change their password once.

Look it up in the smb.conf man page, it gives a decent description.

Good luck.
 
Old 10-22-2009, 04:24 PM   #6
deibertine
Member
 
Registered: Mar 2009
Posts: 215

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by kschmitt View Post
You could also use the "unix password sync" option in your smb.conf.

The idea there is to keep the passwords the same, without having to change them twice. You will have to add users to samba first, but this way you won't have to muck with their password. I think. It's been awhile since I've used this option stand alone. At worst you'll have to add them to samba then change their password once.

Look it up in the smb.conf man page, it gives a decent description.

Good luck.
Ok did that. So how can I force sync their existing unix passwords to work with samba?

Do I just restart samba service?

Thanks!
 
  


Reply

Tags
samba


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mapping linux users with widows users using samba vathsan Linux - Software 1 07-12-2009 10:21 PM
importing linux users to samba users dolreich_c Linux - General 0 04-16-2009 09:44 AM
Active directory users to Samba users alexpacio Linux - Networking 0 05-19-2006 08:44 AM
I can't add users to "samba users" in control center g_jakes Linux - Security 3 05-20-2005 02:10 PM
can't add users to "samba users" in control center g_jakes Linux - Networking 1 05-20-2005 01:28 PM


All times are GMT -5. The time now is 02:37 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration