[Samba] config file locations

Richard Clemens rich.clemens at clevelandtrack.com
Wed Oct 7 14:01:47 MDT 2009


Here is the break down of what I have to do.

I have a samba server with about 100 user accounts on it.
Right now samba is running with the password encryption option turned off.
Recent upgrades are making it so I have to turn on encrypted passwords.

I need  to be able to import the user account information from 
/etc/passwd and the samba settings from the smb.conf file
The GUI tool is ok but it will take a long time to set this up.
I need to repeat the same options on about 8 other servers as well.
The help I have received is fantastic and greatly appreciated.

We use SWAT to set the share permissions.
Some access is on the user level and some access is on the group level.
It depends on the share and the server.

Thanks again.
Rich

Richard Clemens wrote:
> This  is great.  I just tried pdbedit and it works perfectly.
> Thanks for the help.
> This will greatly reduce errors.
>
> Next question.  Can I import the information from my /etc/passwd file 
> so I don't have to manually type information for 100 people?
> I did read the man pages but it is a bit confusing.
>
> Thanks again.
>
> Adam Tauno Williams wrote:
>> On Wed, 2009-10-07 at 14:23 -0400, Richard Clemens wrote:
>>  
>>> I checked and for my version this is not the case.
>>> I am using RHEL 5.4 server edition.
>>> I did find .tdb files in /etc/samba.
>>> I tried to view the files using vim but no joy.
>>> I need a file that I can edit using vi or gedit and avoid the gui 
>>> tool or a way to import the data from a text file.
>>>     
>>
>> You can't.  Use the pdbedit, net, and smbpasswd CLI tools and you can
>> manipulate you TDB SAM pretty much any way you want.
>>
>>   
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the samba mailing list