similar to: Passing a password to smbpasswd in a script

Displaying 20 results from an estimated 30000 matches similar to: "Passing a password to smbpasswd in a script"

2007 May 13
0
can't add machine account
I am using FreeBSD 6.2 with Samba 3.0.24. Samba is set up as PDC and using the tdbsam backend. I'm having a hell of a time logging in my first machine (say Windows machine BLAH). First I created my login user on the system side (pw) and the samba side (pdbedit). # pw useradd username # pdbedit -a -u username Then I create the machine system account: # pw useradd -g machines -c Machine -d
2011 Jul 11
1
Password Resets as root
I've got a cluster of Samba servers with security=user and a ctdb passdb backend. I need to keep the passwords for the users in sync with another system, which will pass me userid and password for each change and reset. My question is what is the simplest way to do the password reset for a user as root on one of the Samba servers. I need to allow the user to change their password
2007 Jan 11
1
migrate machine-passwords from smbpasswd to ldap?
I'm just migrating a whole samba-installations ffrom old 2.2 to 3.0 with LDAP. I was successfully able to migrate all useraccounts with smbldap-useradd but now I'm stuck with the machine-accounts. All machines are part of the domain and they should be able to logon the new server without noticing any difference. I can add them with smbldap-useradd -w but the resulting ldap-entry does
2009 Mar 30
1
Are tdbsam and smbpasswd linked?
Hi All, I just added three users to my tdbsam with "pdbedit -a -u username" (had to do "useradd" first). All three appeared in tdbsam as they should, as verified with "pdbedit -L". But, all three also appeared in /etc/samba/smbpasswd. This is not a mistake, they were not there before. Are "tdbsam" and "smbpasswd" linked? I am confused.
2008 May 16
3
[OT]: Passing password for a command on the fly
Hi, First things first, sorry for the off-topic, but I've already burned my eyes Googling and couldn't find the answer to what I need and I remembered asking here, because I'm a long time CentOS and its mailing list user. Again, my apologies. I have this command to create an FTP account: # pure-pw useradd mario -u 502 -g 502 -n 1000 -N 200 -d /home/pages/mario This command asks for
2014 Oct 24
1
Changing user account passwords using smbpasswd after password expiration
Hello, I?m currently having a problem where a non-root user can?t change his/her own password using smbpasswd command after the password expiration and would like to know how I could solve this problem. Currently, I have a samba server running on CentOS 6.5 with its passdb backend configured to another LDAP server. The samba version I?m currently using is samba-3.6.9-169 which should be the
2017 Oct 30
2
Password change question/1: smbpasswd does not propagate passwords?!
Doing some test i've done, as root, in one DC: root at vdcpp1:~# smbpasswd gaio New SMB password: Retype new SMB password: root at vdcpp1:~# pdbedit -v gaio Unix username: gaio NT username: Account Flags: [U ] User SID: S-1-5-21-160080369-3601385002-3131615632-1105 Primary Group SID: S-1-5-21-160080369-3601385002-3131615632-513 Full
2006 Feb 11
0
Samba + ldap, acounts expiring? but pdbedit says otherwise
Apologies if this is a RTFM issue... My first question is: anyone know of code that can assist in going through samba logfiles (looking for errors, etc.)? I have what appears to be a password expiration problem. User X has been able to mount a shared drive off the samba box using his login/password. Suddenly it doesn't appear to work: he can run "net use Z: \\server\share" from
2009 May 15
4
Timing in a script
Hi, all -- I am trying to write a script in which I can add users and their samba passwords easily and quickly.? It looks something like: ?? useradd -c "User Name" -g groupname -p unixpassword accountname ?? echo -e "smbpassword\nsmbpassword\n" | pdbedit -a -t -u accountname If I type the lines from the keyboard, it works fine.? However, when I try to execute the script, the
2009 Apr 23
0
problems using smbpasswd to enable/disable workstations trusted accounts
Greetings, My name is Alceu and I was trying to create some scripts to enable/disable users when I found this strange behavior with the account flags: # please assume that the Unix user is already created root@midgard:~# smbpasswd -a -m lab16$ Added user lab16$. root@midgard:~# pdbedit -Lv lab16$ Unix username: lab16$ NT username: Account Flags: [W ] ... root@midgard:~#
2003 Dec 18
2
pdbedit: importing smbpasswd to tdbsam
Hi there, I'm trying to import a smbpasswd-file into a Samba 3.0 installation on Debian Sarge using tdbsam as sole passdb backend. Copying pdbedit's documentation I used pdbedit -i smbpasswd:/root/smbpasswd.old The error message returned was tdb_update_sam: Failing to store a SAM_ACCOUNT for [foo] without a primary group RID where foo is the username to be imported. This message was
2005 May 09
1
Problem adding users from Windows using svrtool package
Hi everybody, I'm using a Samba 3.0.14a-1 on a stable Debian installation (all the packages are downloaded from samba.org). Reading the "Samba 3 How-To and Reference Guide", on Chapter 4, it says that you can use srvtool.exe package to administer users and machine accounts but it has some problems. I'd configured my Samba server with the corresponding "add user
2003 Apr 17
2
add machine script
I'm using samba 3.0 alpha 23 on debian woody using a tdb backend. I've written a simple add machine script that takes care of the useradd and pdbedit -a -m steps. When I try to add a machine to the domain directly from that machine, without creating the accounts beforehand, I get an "Access Denied" error. After getting this error, I check on the samba machine and see that the
2011 Mar 29
1
converting smbpasswd to passdb.tdb - machine accounts
Hallo, I'm trying to convert smbpasswd to passdb.tdb. cd /etc/samba/private # (where smbpasswd lies) pdbedit -i smbpasswd -e tdbsam:/etc/samba/private/passdb.tdb converts all human users, but it converts (or transfers) no machine account. In "smbpasswd" are many entries beginning with (p.e.) mac001$ for these accounts, pdbedit -L -v | grep -i mac shows
2006 May 16
2
smbpasswd and /etc/samba/smbusers
Hi, I've been Googling around trying to found why I can't make SAMBA (concretely smbpasswd and pdbedit) make good use of the information held in the file /etc/samba/smbusers. I have done a clean install of Red Hat Enterprise Linux ES 4.1 Update 3 (both x86_64 and IA32) and Fedora Core 5. In all cases, running the following command fails: # smbpasswd -a Administrator New SMB password:
2009 Mar 30
2
What is the purpose of "add user script"?
Hi All, I am confused. In one of the examples of a PDC, the following smb.conf parameter is given: add user script = /usr/sbin/useradd -m -G users '%u' If you have "passdb backend = tdbsam" and the way to add users to "tdbsam" is "pdbedit -a -u username", what is the purpose of the "add user script"? I am thinking it is to add the user
2004 Jun 16
0
Password change problem, Samba 3.0.4
Greetings list. I've been trolling the archives and google searches all morning and cannot seem to come up with an answer to this, though I'm not the first to experience the problem. I'm running samba on FreeBSD 5.2.1-p4, installed from the ports collection. When a user other than root attempts to change an smb password (either through SWAT or with smbpasswd) I get the following
2005 Feb 23
1
pdbedit -Lw reports "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" for password
I've searched google and the samba archives to no avail (appologies if I've missed something), so I will ask the community directly: I am trying to convert a fully populated smbpasswd file to the tdbsam backend: # pdbedit -i smbpasswd:./smbpasswd -e tdbsam:./passdb.tdb This seems to work, on the surface, but upon inspection I find that # pdbedit -Lw username
2005 Dec 26
0
ENC: maximum password age
> Dear admins > > I have a similar problem. > When I use smbldap-passwd from command line, the > sambaPwdMustChange field are setted correctly. But when I try > from the Windows workstation, appears a negative value! > Please see it: > > # pdbedit -Lv someuser > (......) > Logon time: 0 > Logoff time: Tue, 19 Jan 2038 00:14:07 BRT >
2005 Dec 28
0
RES: maximum password age
Dear admins I have a similar problem. When I use smbldap-passwd from command line, the sambaPwdMustChange field are setted correctly. But when I try from the Windows workstation, appears a negative value! Please see it: # pdbedit -Lv someuser (......) Logon time: 0 Logoff time: Tue, 19 Jan 2038 00:14:07 BRT Kickoff time: 0 Password last set: Fri, 23 Dec 2005