LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-30-2012, 03:44 PM   #1
themrrobert
Member
 
Registered: Feb 2007
Distribution: Debian Sid
Posts: 52

Rep: Reputation: 16
Question Samba: Cannot remove an existing user from pdbedit. (Glitch?)


Hello, using linux mint 12. samba was originally configured with the gadmin app.

I logged on today, and noticed that there were 2x "samba" users in the list, so I deleted one..

Now, the one that is left... the password cannot be changed, (although the gadmin app doesn't notify of failure), and users cannot log in with the samba account.

At this point I stopped using the gadmin applet.

Now, using pdbedit -Lv shows this for samba:
Code:
---------------
Unix username:        samba
NT username:          
Account Flags:        [U          ]
User SID:             S-1-5-21-1787190218-2025653600-1497103768-501
Primary Group SID:    S-1-5-21-1787190218-2025653600-1497103768-513
Full Name:            
Home Directory:       
HomeDir Drive:        (null)
Logon Script:         
Profile Path:         
Domain:               HOTSHOT-X11
Account desc:         
Workstations:         
Munged dial:          
Logon time:           0
Logoff time:          never
Kickoff time:         never
Password last set:    0
Password can change:  0
Password must change: 0
Last bad password   : 0
Bad password count  : 0
Logon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Interestingly, when you run pdbedit -Lw it shows this (looks like a blank hash) password:

Code:
samba:1002:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U          ]:LCT-00000000:
Running pdbedit -x -u samba yields this result:
Code:
user samba does not exist in the passdb
Running pdbedit -a samba yields this result (after asking and confirming a password)
Code:
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Failed to add entry for user samba.
Any idea how I can remove this user so I can actually configure it properly?

smb.conf: (without shares)

Quote:
[global]
server string = %h server (Samba, LinuxMint)
map to guest = Bad User
obey pam restrictions = Yes
guest account = samba
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
guest ok = Yes
 
  


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
[SOLVED] Samba smbpasswd and pdbedit -L showing different results dchester11 Linux - Networking 2 06-25-2012 12:34 AM
Samba glitch pappy_mcfae Slackware 2 05-16-2007 02:37 AM
Samba pdbedit command returns NT_STATUS_LOGON_FAILURE Peter@KKVS Linux - Networking 2 11-05-2006 11:04 PM
samba pdbedit warning period steevojb Linux - Server 0 09-19-2006 11:50 AM
convert existing user to samba user taiwf Linux - General 1 02-25-2006 05:19 AM

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

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