I have finally managed to compile and install samba 1.9.7alpha5 with des, shadow passwords and PAM. I have a new problem now. my 95 clients when set to user level access control and try sharing something give this error. "You cannot view a list of users at this time. Please try again later." I belive this is because the rights on the file smbpasswd [the file containing the passwords] are -rw------- and no matter how I try, whenever I change the rights on this file , the rights get changed back. When a user logs on, requests the file or a new user is added. Might this be a bug, or just me? Anyway is there anymethod of setting permissions to be fixed so no one can change them, or is there a file that controls the rights on this file and if so how do i change it? the smbclient executible file is suposed to be set with -r-sr-xr-x, what sequence it chmod would you use to achive this? user root group root. thanks mark
Hi When I use smbpasswd to change a password consisting of all X's, (ie pressing return when asked for Old smbpasswd) it gives me an error of : /usr/solaris/samba/source/smbpasswd: machine 127.0.0.1 rejected the session setup. Error was : ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.). It works OK if used to change an existing password entry. Also, if I use smbpasswd to add a machine whose entry is in /etc/passwd, I get the message : getsmbfilepwent: malformed password entry (uid not number) /usr/solaris/samba/source/smbpasswd: Added user pctemp$. but it does add a (presumably correct) entry to private/smbpasswd : pctemp$:60002:8A13AA69A36AE7F0AAD3B435B51404EE:456DE8544748F7B8DA3947DCA65ADE78:[W]:LCT-3598A841: Also, does it matter which case the machine names are in ? I just downloaded the new head branch today (1.9.19-prealpha) and am running on Solaris 2.5.1 Janet *************************************************************************** Janet Dickson | http://www.bioss.sari.ac.uk/~janet Biomathematics and Statistics Scotland | email: janet@bioss.sari.ac.uk The King's Buildings, Mayfield Rd | Telephone: +44 (0) 131 650 4888 Edinburgh EH9 3JZ, Scotland, UK. | Fax: +44 (0) 131 650 4901 ***************************************************************************
I am trying to incorporate encrypted passwords into our server. I haven't enabled encryption as yet, because I wanted to check to ensure the users could change their passwords via smbpasswd. However, I keep getting the following error message when I try to change the password on the server... $ smbpasswd -D 3 Old SMB password: New SMB password: Retype new SMB password: Connecting to 127.0.0.1 at port 139 machine 127.0.0.1 rejected the password change: Error was : The specified password is invalid. Failed to change password for user I have the following set in my smb.conf... update encrypted = Yes smb passwd file = /path-to-smbpasswd/smbpasswd passwd program = /usr/bin/passwd %u passwd chat = *current*password* %o\n *ew*password* %n\n *ew*password* %n\n *success* passwd chat debug = Yes password level = 1 unix password sync = Yes I am basing the passwd chat on the dialog from a regular passwd session... $ passwd Changing password for user (current) UNIX password: New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully I also tried changing the user's password as root, which gave all indication that it was successful, but did not change the password. I am doing anything wrong? Carey =====================================================================<> Carey F. Cox, PhD | PHONE: (409) 880-8770 <> <> Assistant Professor | FAX: (409) 880-8121 <> <> Dept. of Mech. Eng. | EMAIL: carey@tabasco.lamar.edu <> <> Lamar University | WEB: N/A <> ======================================================================
hello, i have a samba server and i have to add a lot of accounts to the smbpasswd file, is there any program/script that converts the /etc/passwd file to a smbpasswd file? including passwords? -------------- next part -------------- HTML attachment scrubbed and removed
how do i add samba to my domain for windows 2000 server which is a DC? smbpasswd -j DOM -r PDC?? isn't this only for winnt 4.0..?? my domain name for win2k server is digitalconsiousness.com and my FQDN is digicon.digitalconsciousness.com how would i use smbpasswd to join the domain ?? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/2001
What is the format of the smbpasswd file? i have read the documentation (smbpasswd.5.html) but it does not seem to tell me what i want. is what i need is perhaps a sample line with a detailed breakdown. -Travis
Travis, add users to smbusers via /etc/samba/smbuser (edit the file) then add password to smbpasswd /etc/samba/smbpasswd -a <username> ++Dirk -----Original Message----- From: samba-admin@us5.samba.org [mailto:samba-admin@us5.samba.org]On Behalf Of Travis Farmer Sent: Tuesday, February 27, 2001 3:22 PM To: samba@samba.org Subject: smbpasswd What is the format of the smbpasswd file? i have read the documentation (smbpasswd.5.html) but it does not seem to tell me what i want. is what i need is perhaps a sample line with a detailed breakdown. -Travis -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Travis, There is an example line for smbpasswd in the online "Using Samba" manual at the following url: http://us2.samba.org/samba/oreilly/using_samba/ in section 6.4.2 Hope this helps, Don -----Original Message----- From: Travis Farmer [mailto:travis5765@hotmail.com] Sent: Tuesday, February 27, 2001 15:22 To: samba@samba.org Subject: smbpasswd What is the format of the smbpasswd file? i have read the documentation (smbpasswd.5.html) but it does not seem to tell me what i want. is what i need is perhaps a sample line with a detailed breakdown. -Travis -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
im running win2k as a DC and added the computer account for samba,..but i need to know what my netbios name and DC name is for the command smbpasswd here is the table,..which is the netbios and DC named for my comp?? Name Type Status --------------------------------------------- DIGICON <00> UNIQUE Registered DIGICON <20> UNIQUE Registered DIGITALCONSCIOU<00> GROUP Registered DIGITALCONSCIOU<1C> GROUP Registered DIGITALCONSCIOU<1B> UNIQUE Registered DIGICON <03> UNIQUE Registered DIGICON$ <03> UNIQUE Registered DIGITALCONSCIOU<1E> GROUP Registered DIGITALCONSCIOU<1D> UNIQUE Registered ..__MSBROWSE__.<01> GROUP Registered ADMINISTRATOR <03> UNIQUE Registered Im only guessing here,..but is this correct smbpasswd -j DIGITALCONSCIOU -r digicon because it dosen't seem to work properly... this is the error i get when running the above command line /root]# smbpasswd -j digitalconsciou -r digicon cli_net_auth2: Error NT_STATUS_ACCESS_DENIED cli_nt_setup_creds: auth2 challenge failed modify_trust_password: unable to setup the PDC credentials to machine DIGICON. Error was : NT_STATUS_ACCESS_DENIED. 2001/04/08 11:50:05 : change_trust_account_password: Failed to change password for domain DIGITALCONSCIOU. Unable to join domain DIGITALCONSCIOU. or is this another issue Thanks, any help is much appreciated --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.247 / Virus Database: 120 - Release Date: 4/6/2001
im running win2k as a DC and added the computer account for samba,..but i need to know what my netbios name and DC name is for the command smbpasswd here is the table,..which is the netbios and DC named for my comp?? Name Type Status --------------------------------------------- DIGICON <00> UNIQUE Registered DIGICON <20> UNIQUE Registered DIGITALCONSCIOU<00> GROUP Registered DIGITALCONSCIOU<1C> GROUP Registered DIGITALCONSCIOU<1B> UNIQUE Registered DIGICON <03> UNIQUE Registered DIGICON$ <03> UNIQUE Registered DIGITALCONSCIOU<1E> GROUP Registered DIGITALCONSCIOU<1D> UNIQUE Registered ..__MSBROWSE__.<01> GROUP Registered ADMINISTRATOR <03> UNIQUE Registered Im only guessing here,..but is this correct smbpasswd -j DIGITALCONSCIOU -r digicon because it dosen't seem to work properly... this is the error i get when running the above command line /root]# smbpasswd -j digitalconsciou -r digicon cli_net_auth2: Error NT_STATUS_ACCESS_DENIED cli_nt_setup_creds: auth2 challenge failed modify_trust_password: unable to setup the PDC credentials to machine DIGICON. Error was : NT_STATUS_ACCESS_DENIED. 2001/04/08 11:50:05 : change_trust_account_password: Failed to change password for domain DIGITALCONSCIOU. Unable to join domain DIGITALCONSCIOU. or is this another issue Thanks, any help is much appreciated --- --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.247 / Virus Database: 120 - Release Date: 4/6/2001
im running win2k as a DC and added the computer account for samba,..but i need to know what my netbios name and DC name is for the command smbpasswd here is the table,..which is the netbios and DC named for my comp?? Name Type Status --------------------------------------------- DIGICON <00> UNIQUE Registered DIGICON <20> UNIQUE Registered DIGITALCONSCIOU<00> GROUP Registered DIGITALCONSCIOU<1C> GROUP Registered DIGITALCONSCIOU<1B> UNIQUE Registered DIGICON <03> UNIQUE Registered DIGICON$ <03> UNIQUE Registered DIGITALCONSCIOU<1E> GROUP Registered DIGITALCONSCIOU<1D> UNIQUE Registered ..__MSBROWSE__.<01> GROUP Registered ADMINISTRATOR <03> UNIQUE Registered Im only guessing here,..but is this correct smbpasswd -j DIGITALCONSCIOU -r digicon because it dosen't seem to work properly... this is the error i get when running the above command line /root]# smbpasswd -j digitalconsciou -r digicon cli_net_auth2: Error NT_STATUS_ACCESS_DENIED cli_nt_setup_creds: auth2 challenge failed modify_trust_password: unable to setup the PDC credentials to machine DIGICON. Error was : NT_STATUS_ACCESS_DENIED. 2001/04/08 11:50:05 : change_trust_account_password: Failed to change password for domain DIGITALCONSCIOU. Unable to join domain DIGITALCONSCIOU. or is this another issue Thanks, any help is much appreciated --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.247 / Virus Database: 120 - Release Date: 4/6/2001
Hi mjs, If the table you show is from nbtstat -n on your win2k domain controller, then digicon would be your domain controller name and DIGITALCONSCIOU would be the domain name; so the smbpasswd command to join your samba server would be smbpasswd -j digitalconsciou -r digicon as you suspected. in your smb.conf file you should have in the global section: netbios name = (whatever you named your samba server) security = domain encrypt passwords = yes workgroup = digitalconsciou password server = * or digicon When you add the computer account to the win2k domain, of course use whatever name your smb.conf "netbios name=" parameter specifies. Another thing that is important is when you add the computer account to the win2k domain, that you make SURE you check the box that says "Allow pre-Windows 2000 computers to use this account" You might want to go back into the microsoft management console and remove the computer account you created and recreate it, and try again. good luck, Don -----Original Message----- From: mjs [mailto:mjs@digitalconscious.com] Sent: Wednesday, April 11, 2001 1:22 PM To: SAMBA Subject: smbpasswd im running win2k as a DC and added the computer account for samba,..but i need to know what my netbios name and DC name is for the command smbpasswd here is the table,..which is the netbios and DC named for my comp?? Name Type Status --------------------------------------------- DIGICON <00> UNIQUE Registered DIGICON <20> UNIQUE Registered DIGITALCONSCIOU<00> GROUP Registered DIGITALCONSCIOU<1C> GROUP Registered DIGITALCONSCIOU<1B> UNIQUE Registered DIGICON <03> UNIQUE Registered DIGICON$ <03> UNIQUE Registered DIGITALCONSCIOU<1E> GROUP Registered DIGITALCONSCIOU<1D> UNIQUE Registered ..__MSBROWSE__.<01> GROUP Registered ADMINISTRATOR <03> UNIQUE Registered Im only guessing here,..but is this correct smbpasswd -j DIGITALCONSCIOU -r digicon because it dosen't seem to work properly... this is the error i get when running the above command line /root]# smbpasswd -j digitalconsciou -r digicon cli_net_auth2: Error NT_STATUS_ACCESS_DENIED cli_nt_setup_creds: auth2 challenge failed modify_trust_password: unable to setup the PDC credentials to machine DIGICON. Error was : NT_STATUS_ACCESS_DENIED. 2001/04/08 11:50:05 : change_trust_account_password: Failed to change password for domain DIGITALCONSCIOU. Unable to join domain DIGITALCONSCIOU. or is this another issue Thanks, any help is much appreciated --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.247 / Virus Database: 120 - Release Date: 4/6/2001 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
I have installed 3 servers with Linux kernel 2.2.14 and Samba 2.0.7. All three look like identical (excluding hardware). But when I call smbpasswd, two amswer Ok and third tells "Password invalid" for ALL new passwords. Please help: what is it or where to find answer what to do. 05.11.2001 Striganov.
trying to change a password and get: machine 127.0.0.1 rejected the tconX on the IPC$ share. Error was : code 0. Failed to change password for joenobody any ideas?
Hi, How do i use smbpasswd to change the password of a user on a NT domain without the OLD password? (As administrator). Or, if that's not possible, is there another way? Regards, Guido
Hallo, I want to start to use encryption passwd (now I use plain password). But I have 200 users in /etc/passwd at my server and I do not want to change passwd for every user. Is there any way to create file /etc/smbpasswd from file /etc/passwd except the users have to change their smbpasswd by theirself. If not, most of my users logon to the server only over samba or they only mount disk over samba server. How can I change their smbpasswd when they can not use another way to connect at my server only over samba protokol? Exist any samba client for platform Windows to remote connect to Samba server? Can you advice me best way to create file /etc/smbpasswd? Thanks. Dibi ______________________________________________________________________________ Kalend?? Email.CZ - dokonal? organizace Va?eho ?asu: http://kalendar.email.cz
Hallo, I want to set some security level at my samba server. In the documentation I found out that It set in section [global]. Is it possible to set it in my own section? For example for section [xxx] I want to set security=share and for section [yyy] I want to set security=server. Is it possible? Thanks. Dibi ______________________________________________________________________________ Kalend?? Email.CZ - dokonal? organizace Va?eho ?asu: http://kalendar.email.cz
Look at "update encrypted" in man smb.conf Good Luck, Christian> Hallo, > I want to start to use encryption passwd (now I use plain > password). But I have 200 users in /etc/passwd at my server and I > do not want to change passwd for every user. Is there any way to > create file /etc/smbpasswd from file /etc/passwd except the users > have to change their smbpasswd by theirself. If not, most of my > users logon to the server only over samba or they only mount disk > over samba server. How can I change their smbpasswd when they can > not use another way to connect at my server only over samba > protokol? Exist any samba client for platform Windows to remote > connect to Samba server? Can you advice me best way to create file > /etc/smbpasswd? > > Thanks. Dibi > > > > > ______________________________________________________________________ > ________ Kalend? Email.CZ - dokonal? organizace Va eho asu: > http://kalendar.email.cz > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba > >_(_)_ wWWWw _ @@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_ @@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_) @@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\ / Y \| \|/ /(_) \| |/ | \ | \ |/ | / \ | / \|/ |/ \| \|/ jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Whenever I try to run smbpasswd I get the following error: root:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U: command not found I generated the file as per the instructions at http://ca.samba.org/samba/docs/ENCRYPTION.html I'm not sure what it is that is going wrong. The first few lines of my smbpasswd file look like this... # # SMB password file. # root:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:root daemon:1:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:daemon I'm using debian 3.0, with kernel 2.4.18 and samba 2.2.4 lorac - "Violence is the last refuge of the incompetent." - Salvor Hardin ICQ UIN 2123136 Get ICQ <http://www.icq.com>http://www.icq.com -------------- next part -------------- HTML attachment scrubbed and removed
Hello ! Do you know what can I do to the command SMBPASSWD doesn`t return a message "Password changed for user xxxxxxxxx" ?? I want the Samba only change the password and doesn`t give me a message Please, i hope some help and ideas, Thanks a lot ! Bruno Stella -------------- next part -------------- HTML attachment scrubbed and removed
Try redirecting the output ie: smbpasswd username >/dev/null 2>/dev/null BUT before you send it to /dev/null I'd suggest sending it first to a file (like /tmp/smbmsg) to verify it doesnt have errors! --- On Thu 08/15, Bruno Stella wrote: From: Bruno Stella [mailto: librux@bol.com.br] To: samba@lists.samba.org Date: Fri, 16 Aug 2002 00:51:43 -0300 Subject: [Samba] Smbpasswd> > > > > > > > Hello ! > > Do you know what can I do to the command > SMBPASSWD > doesn`t return a message "Password changed for user xxxxxxxxx" > ?? > > I want the Samba only change the password and > > doesn`t give me a message > > Please, i hope some help and > ideas, > > > Thanks a lot ! > > Bruno Stella >------------------------------------------------ Join Excite! - http://www.excite.com The most personalized portal on the Web!
The structure of this file is; username:uid:password:account flags:lastset What does ux represent in the account flags field? Martin Stacey IT Support Manager Safcol Australia Pty Ltd
samba-2.2.7a and user security. [root@napalm private]# grep fliu /etc/passwd fliu:x:504:14::/export/home/fliu:/bin/bash [root@napalm private]# grep fliu /usr/local/samba/private/users.map fliu = liuf [root@napalm private]# grep users.map /usr/local/samba/lib/smb.conf username map = /usr/local/samba/private/users.map [root@napalm private]# /usr/local/samba/bin/smbpasswd -a liuf New SMB password: Retype new SMB password: User liuf does not exist in system password file (usually /etc/passwd). Cannot add account without a valid local system user. Failed to modify password entry for user liuf any ideas why the error? Frank
I'm new in SMB and Linux in gerneral, I've tried to set up samba; I created a new user in Linux using useradd, after that I wanted to create the same user for samba using "smbpasswd -a -e username" but I get an error saying "unable to open passdb database ERROR: Unable to lacate username in passdb!" thx a lot for any help