Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba And NT problems

Status
Not open for further replies.

jsawyer

MIS
Jan 1, 2003
5
0
0
US
I have been tring to get my samba and my WIN2K Server for two days and have not had any luck. I can see my samba shares and I can browse them but I can not add files or delete files. I tried to set up pam and winbind. I can use the comands wbinfo -t -u -p, getent and every thing works with no problems. But I can not logon to my linux box using my NT account names. but when I logon using telnet I see my welcome txt then I get "connection to host lost". If I use an account local to the linux machine it works fine. I think there is a problem with my /etc/pam.d/logon file which I have included. below




















































































































































































































































































#%PAM-1.0
auth required /lib/security/pam_securetty.so
auth sufficient /lib/security/pam_winbind.so
auth sufficient /lib/security/pam_unix.so use_first_pass
auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_nologin.so
account sufficient /lib/security/pam_winbind.so
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
session optional /lib/security/pam_console.so


also here is my smb.conf

[global]
workgroup = HOMENET
netbios name = VETTY
server string = Linux server
security = DOMAIN
encrypt passwords = Yes
null passwords = Yes
password server = transam
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = lpstat
domain admin group = Homenet
local master = No
domain master = No
dns proxy = No
wins server = transam
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind separator = +
printing = cups
add user script = /usr/sbin/useradd %u
force group =somegroup
force user = someuser

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
lpq command = lpstat -o %p
lprm command = cancel %p-%j
browseable = No

[public]
comment = Public Stuff
path = /home/samba/public
write list = homenet+administrator
read only = No
guest ok = Yes
~
~




 
The problem is likely not with your pam configuration, but rather the smbpasswd file. Did you add your NT account id and password using "smbpasswd -a" (as root)? The smbpasswd file is required because you have "encrypt passwords = yes" in your smb.conf file and NT password encryption is different than Unix password encryption. You may also want to add an entry in the smbusers file to alias your NT acccount name to your Unix userid, if they're different.

-Bill
 
Ok that sounds good. Do I need to add the account domain+user or just the user name? Is there a way that I can make them sync?
When I added the account I seem to have the same issue I can browse but I can not add or remove files. do you have an example of the smbusers file I can look at?

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top