change permission and smbpasswd

ppzhu at portal.com ppzhu at portal.com
Fri Mar 10 00:46:05 GMT 2000


Hi, Samba guru; I need your help.

I am using samba 2.0.6.  security = server and password server = NT PDC; nt
acl support = yes. I am trying to change permission using the NT security
dialogs but failed. In the log file I found that apparently when I connect
to the samba directory, I get authenticate correctly. But when try to change
permission, samba does not try to authenticate through password server but
try to do it by checking smbpasswd. I am not sure if this is way that samba
suppose to be or not. I have following questions:

1. Should I have to create smbpasswd file?
2. If I have to create a smbpasswd file, how do I do it. It is said there is
a "mksmbpasswd.sh" file to do the job. But I could not find the script at
all. Anybody can send me the script and a README file to show how to use it?
3. The reason I didn't try to create the smbpasswd before was because I have
couple of samba servers. I don't know if it is easy to synchronize from our
NIS password map. Is there any way to make the smbpasswd as a NIS map so
that I don't have to update it on all my samba servers individually?

Thanks for your help.

Here is my smb.conf and log file.
smb.conf
[global]
   workgroup = CORP
   server string = CDserver Samba Server (samba 2.0.6)
  guest account = guest
   log file = /opt/samba/var/log.%m
   max log size = 50
   security = server
   password server = cup1bdc1, chysms, calisto
   socket options = TCP_NODELAY 
   os level = 0
   preferred master = no
   wins server = 156.151.32.31
   wins proxy = yes
   dns proxy = yes 


[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[public]
comment = CD's for the PC Side
path = /cds/views_pc
public = yes
guest ok = yes
writable = no
printable = no
browseable = yes

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes

log.username
[2000/03/08 11:28:40, 1] smbd/service.c:close_cnum(568)
  ppzhupc (156.151.53.62) closed connection to service tmp
[2000/03/08 11:28:40, 1] smbd/service.c:close_cnum(568)
  ppzhupc (156.151.53.62) closed connection to service ppzhu
[2000/03/08 11:28:40, 1] smbd/service.c:close_cnum(568)
  ppzhupc (156.151.53.62) closed connection to service public
[2000/03/08 16:21:47, 1] smbd/service.c:make_connection(535)
  ppzhupc (156.151.53.62) connect to service ppzhu as user ppzhu (uid=10092,
gid=100) (pid 18375)
[2000/03/08 16:22:08, 0] smbd/nttrans.c:call_nt_transact_ioctl(2401)
  call_nt_transact_ioctl: Currently not implemented.
[2000/03/08 16:32:26, 1] smbd/service.c:close_cnum(568)
  ppzhupc (156.151.53.62) closed connection to service ppzhu
[2000/03/09 13:38:38, 1] smbd/service.c:make_connection(535)
  ppzhupc (156.151.53.62) connect to service tmp as user ppzhu (uid=10092,
gid=100) (pid 19165)
[2000/03/09 13:39:09, 0] passdb/smbpass.c:startsmbfilepwent(50)
  startsmbfilepwent: unable to open file /opt/samba/private/smbpasswd
[2000/03/09 13:39:09, 0] passdb/passdb.c:iterate_getsam21pwrid(315)
  unable to open sam password database.
[2000/03/09 13:39:12, 0] passdb/smbpass.c:startsmbfilepwent(50)
  startsmbfilepwent: unable to open file /opt/samba/private/smbpasswd
[2000/03/09 13:39:12, 0] passdb/passdb.c:iterate_getsam21pwrid(315)
  unable to open sam password database.
[2000/03/09 13:39:12, 0] passdb/smbpass.c:startsmbfilepwent(50)
  startsmbfilepwent: unable to open file /opt/samba/private/smbpasswd
[2000/03/09 13:39:12, 0] passdb/passdb.c:iterate_getsam21pwrid(315)
  unable to open sam password database.

Perry Zhu
Portal Software, Inc. 
Senior System Administrator
telephone: 408-572-3255
ppzhu at portal.com



More information about the samba mailing list