Hi all, I tried to add a new user to a Samba share, I did all the usual: made a Unix account on the Unix server for the user which was the same as the user's window's UID. Put her name as a valid user for that directory in server:/etc/opt/samba/smb.conf, and stopped and started server:/sbin/init.d/samba server; nothing worked. Interesting observations: 1- After performing the steps described above, I do a "server# /opt/samba/bin/testparm" and don't even see the new user's name for that particular Samba share. 2- Samba is working fine for all the previously defined users in smb.conf. Many thanks in advance and best regards. Majid Chavoshi Unix System Administrator Confidential This e-mail and any files transmitted with it are the property of Belkin Corporation and/or its affiliates, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited.
On Thu, 30 Sep 2004 13:49:45 -0700, Majid Chavoshi <majidc@belkin.com> wrote:> Hi all, > I tried to add a new user to a Samba share, I did all the usual: made a Unix account on the Unix server for the user which was the same as the user's window's UID. Put her name as a valid user for that directory in server:/etc/opt/samba/smb.conf, and stopped and started server:/sbin/init.d/samba server; nothing worked. > > Interesting observations: 1- After performing the steps described above, I do a "server# /opt/samba/bin/testparm" and don't even see the new user's name for that particular Samba share. 2- Samba is working fine for all the previously defined users in smb.conf. > > Many thanks in advance and best regards. > > Majid ChavoshiDoes "id username" work? if that's the case, sounds like you have multiple smb.conf files do "testparm /path/to/smb.conf" make sure your /etc/init.d/smb points to the correct smb.conf file. Yang
I believe in addition to a Unix account, each user also needs to be entered as a SAMBA user. The smbpasswd file shows the SAMBA users along with their encrypted passwords. To add a SAMBA user:> smbpasswd [userid]you'll be prompted to enter a password for the new user and then to confirm it. that should do it. I'll guess that viewing the file smbpasswd right now, you'll see the users listed there that do already work with the SAMBA shares....... Hope this helps, Steve Steven R. Bryant - Network Manager Henderson, Daily, Withrow & DeVoe Indianapolis, IN (317) 639-4121 *********************************************************** * This e-mail is sent from a law firm and may contain * * information that is privileged and confidential. * * If you are not the intended recipient, please delete * * the e-mail and notify the sender. Thank you. * *********************************************************** -----Original Message----- From: samba-bounces+bryant=hdlegal.com@lists.samba.org [mailto:samba-bounces+bryant=hdlegal.com@lists.samba.org]On Behalf Of Majid Chavoshi Sent: Thursday, September 30, 2004 3:50 PM To: 'samba@lists.samba.org' Cc: Majid Chavoshi Subject: [Samba] Can't add new users Hi all, I tried to add a new user to a Samba share, I did all the usual: made a Unix account on the Unix server for the user which was the same as the user's window's UID. Put her name as a valid user for that directory in server:/etc/opt/samba/smb.conf, and stopped and started server:/sbin/init.d/samba server; nothing worked. Interesting observations: 1- After performing the steps described above, I do a "server# /opt/samba/bin/testparm" and don't even see the new user's name for that particular Samba share. 2- Samba is working fine for all the previously defined users in smb.conf. Many thanks in advance and best regards. Majid Chavoshi Unix System Administrator Confidential This e-mail and any files transmitted with it are the property of Belkin Corporation and/or its affiliates, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
During Samba installation, by logging in as a NT admin with the password given on the command line, I think we avoid using this file. Please see below: mecca:/opt/samba/bin # ./smbpasswd chrisg New SMB password: Retype new SMB password: Failed to find entry for user chrisg. Failed to modify password entry for user chrisg mecca:/opt/samba/bin # Regards, Majid Chavoshi Unix System Administrator -----Original Message----- From: Bryant, Steven R. [mailto:Bryant@hdlegal.com] Sent: Thursday, September 30, 2004 2:37 PM To: Majid Chavoshi; samba@lists.samba.org Subject: RE: [Samba] Can't add new users I believe in addition to a Unix account, each user also needs to be entered as a SAMBA user. The smbpasswd file shows the SAMBA users along with their encrypted passwords. To add a SAMBA user:> smbpasswd [userid]you'll be prompted to enter a password for the new user and then to confirm it. that should do it. I'll guess that viewing the file smbpasswd right now, you'll see the users listed there that do already work with the SAMBA shares....... Hope this helps, Steve Steven R. Bryant - Network Manager Henderson, Daily, Withrow & DeVoe Indianapolis, IN (317) 639-4121 *********************************************************** * This e-mail is sent from a law firm and may contain * * information that is privileged and confidential. * * If you are not the intended recipient, please delete * * the e-mail and notify the sender. Thank you. * *********************************************************** -----Original Message----- From: samba-bounces+bryant=hdlegal.com@lists.samba.org [mailto:samba-bounces+bryant=hdlegal.com@lists.samba.org]On Behalf Of Majid Chavoshi Sent: Thursday, September 30, 2004 3:50 PM To: 'samba@lists.samba.org' Cc: Majid Chavoshi Subject: [Samba] Can't add new users Hi all, I tried to add a new user to a Samba share, I did all the usual: made a Unix account on the Unix server for the user which was the same as the user's window's UID. Put her name as a valid user for that directory in server:/etc/opt/samba/smb.conf, and stopped and started server:/sbin/init.d/samba server; nothing worked. Interesting observations: 1- After performing the steps described above, I do a "server# /opt/samba/bin/testparm" and don't even see the new user's name for that particular Samba share. 2- Samba is working fine for all the previously defined users in smb.conf. Many thanks in advance and best regards. Majid Chavoshi Unix System Administrator Confidential This e-mail and any files transmitted with it are the property of Belkin Corporation and/or its affiliates, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba Confidential This e-mail and any files transmitted with it are the property of Belkin Corporation and/or its affiliates, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited.
On Thursday 30 September 2004 15:49, Majid Chavoshi wrote:> Hi all, > I tried to add a new user to a Samba share, I did all the usual: made a > Unix account on the Unix server for the user which was the same as the > user's window's UID. Put her name as a valid user for that directory in > server:/etc/opt/samba/smb.conf, and stopped and started > server:/sbin/init.d/samba server; nothing worked.Did you forget 'smbpasswd -a $user' ?