LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-02-2013, 01:52 PM   #1
vahab
Member
 
Registered: Jun 2011
Posts: 58

Rep: Reputation: Disabled
What does smbusers files do


Hi,
I am using samba on RHEL 5 or 6 for file sharing purpose.
The setings are default.
security = user
passdb backend = tdbsam

When I want to add a user with smbpasswd -a it needs the UNIX user created first. So I create accounts this way :
# useradd user1
# smbpasswd -a user1


This way each samba account has a matching UNIX account and I can confirm it by running :
# pdbedit -L
It shows samba account with corresponding unix UID.

The thing that I don't understand here is the usage of /etc/samba/smbusers.
All of samba users are already mapped. Why do I need this file and how can I test usage of this file?

Thanks.
 
Old 08-02-2013, 02:53 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
5 or 6 ? what is it
the procedure chanced

see " man usradd "
and see the release notes for RHEL 6.4 on the chances from 5.9
https://access.redhat.com/site/docum...tes/index.html

Last edited by John VV; 08-02-2013 at 02:55 PM.
 
Old 08-02-2013, 03:05 PM   #3
vahab
Member
 
Registered: Jun 2011
Posts: 58

Original Poster
Rep: Reputation: Disabled
Actually I am working with redhat 5.5 and redht 6 is not the case.
Also I cannot see anything regarding samba in "man useradd"
 
Old 08-02-2013, 03:33 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
what version of windows is this ?
98,xp,vista,7,8,winserver 2003,2005,2008,2010,2012 ? what
 
Old 08-02-2013, 03:57 PM   #5
vahab
Member
 
Registered: Jun 2011
Posts: 58

Original Poster
Rep: Reputation: Disabled
I am using a Windows 7 as client but it does not matter.
In a simple file sharing with "security=user" and "passdb backend = tdbsam", every user logs in with its own samba user&password and samba users are already mapped with unix users as I mentioned in the first post.My question is : what is the usage of smbusers in this case.
 
  


Reply



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
No /etc/samba/smbpasswd file and /etc/samba/smbusers file is not being update yaron.kadem Linux - Server 1 01-23-2012 08:07 AM
need to rsync only selected files (--files-from) also need to delete files on dest. ? BrianK Linux - General 5 10-22-2009 09:52 PM
in copy files or ls files the command want to invert select some files how to?? hocheetiong Linux - Newbie 3 06-27-2008 06:32 AM
smbusers problem mik83only Linux - Server 4 07-19-2007 01:08 AM
smbusers and users c0c0deuz Linux - Networking 2 11-12-2002 10:10 PM

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

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