[Samba] pdbedit and profiles

Jonathan Johnson jon at sutinen.com
Thu Jun 16 05:27:27 GMT 2005


I had the same issue. To resolve, I had to convert from smbpasswd to 
tdbsam for my passdb backend (wasn't running LDAP). This is because 
smbpasswd does NOT support the extended parameters you see in pdbedit. 
Then I was able to change the parameters. tdbsam is a better passdb 
backend than smbpasswd (more configurable), it just won't let you use a 
text editor on the file. ;-)

 From a post by John Terpstra ( 
http://lists.samba.org/archive/samba/2003-October/075558.html ):

If you have your accounts in smbpasswd and you want to migrate them to
tdbsam:

    In smb.conf:
        passdb backend = smbpasswd, tdbsam

    Execute:
        pdbedit -i smbpasswd -e tdbsam

And so on. After migration you can delete the backend that you no longer
need to use from the "passdb backend" parameter line.

--Jonathan Johnson

Dominic Iadicicco wrote:

>For a test I tried to do this:
>
>
>pdbedit -u "ya-1" -p="\\\\cybserver\\netlogon"
>
>It spewed out this :
>
>
>Unix username:        ya-1
>NT username:
>Account Flags:        [U          ]
>User SID:             S-1-5-21-4008386108-3466510086-266964780-2002
>Primary Group SID:    S-1-5-21-4008386108-3466510086-266964780-2003
>Full Name:
>Home Directory:
>HomeDir Drive:
>Logon Script:         logon.bat
>Profile Path:         \\cybserver\profile\ya-1
>Domain:               CYBRARYN
>Account desc:
>Workstations:
>Munged dial:
>Logon time:           0
>Logoff time:          Mon, 18 Jan 2038 22:14:07 GMT
>Kickoff time:         Mon, 18 Jan 2038 22:14:07 GMT
>Password last set:    Sat, 04 Jun 2005 11:29:34 GMT
>Password can change:  Sat, 04 Jun 2005 11:29:34 GMT
>Password must change: Mon, 18 Jan 2038 22:14:07 GMT
>Last bad password   : 0
>Bad password count  : 0
>Logon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
>
>
>as you can see the profile path is not correct.  and I check that the
>ya-1 user was a vaild smb user.  I can log on to the domain with them
>and write to shares and use different domain resources.
>
>
>And as far as why it does show the NT username I dont know.
>
>On 6/14/05, Collen <collen at zeist.hermanjordan.nl> wrote:
>  
>
>>What error do you get returned ??
>>(if none, boost your debug level in the conf)
>>can samba read/write to the passwd backend?
>>what does not work ? (coz here it does work)..
>>
>>Greets.
>>
>>Collen
>>
>>Dominic Iadicicco wrote:
>>    
>>
>>>I am using the standard smbpasswd, I think thats a backend.
>>>
>>>On 6/13/05, Tom Skeren <tms3 at fsklaw.com> wrote:
>>>
>>>      
>>>
>>>>Dominic Iadicicco wrote:
>>>>
>>>>
>>>>        
>>>>
>>>>>That did not work.
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>What passdb are you using?  LDAP TDB?
>>>>
>>>>
>>>>        
>>>>
>>>>>On 6/13/05, Collen <collen at zeist.hermanjordan.nl> wrote:
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>pdbedit -u "username" -p="\\\\server\\path"
>>>>>>
>>>>>>Collen.
>>>>>>
>>>>>>Dominic Iadicicco wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>Hello all,
>>>>>>>
>>>>>>>Could someone give me the command line to edit the profile path of a users?
>>>>>>>
>>>>>>>I have tried this with no results.
>>>>>>>"pdbedit -u someuser -p "\\\\server\\path"
>>>>>>>
>>>>>>>There has to be better documentation.
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>
>>>>        
>>>>

-- 
--Jon Johnson
Sutinen Consulting, Inc.
www.sutinen.com
(360) 270-9317 cell



More information about the samba mailing list