LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2003, 06:43 PM   #1
Joshsawyer77
LQ Newbie
 
Registered: Dec 2002
Location: Milwaukee
Distribution: Mandrake
Posts: 22

Rep: Reputation: 15
Unhappy Samba ?


I am tring to set my Samba box to autheticate users from my win2k PDC. The problem is that they cant log onto the Linux system and I cant use my NT accounts when setting permissions on files.
I can use wbinfo -a domain+username%password and it says "plaintext password authentication succeeded". I can also use getent -passwd and I get a list of my useres on both the NT side and the Linux side but they dont show up when I use a gui account manager. When I try to put NT users to Linux groups I get "usermod: domain+username not in etc/passwd. Anyone know wht I am doing wrong?


Thank you
Josh
 
Old 01-03-2003, 03:13 PM   #2
balam
Member
 
Registered: Nov 2002
Location: us
Distribution: red hat
Posts: 143

Rep: Reputation: 15
do you have the sames users accounts on the linux box
did create user accounts in the samba server
did you have the statement on smb.conf : domain logons = yes ?
 
Old 01-03-2003, 05:36 PM   #3
Joshsawyer77
LQ Newbie
 
Registered: Dec 2002
Location: Milwaukee
Distribution: Mandrake
Posts: 22

Original Poster
Rep: Reputation: 15
Well Here is my smb.conf I have not made the the accounts on the Linux box. Do I make the same user name ie josh or "Homenet+josh"?

# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2003/01/02 15:02:45

# Global parameters
[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
~
~
 
Old 01-03-2003, 06:51 PM   #4
balam
Member
 
Registered: Nov 2002
Location: us
Distribution: red hat
Posts: 143

Rep: Reputation: 15
change this

security = user
just for trouble shooting uncomment null passwords = Yes ( like this # null passwords = Yes)
set local master = yes
domain master = yes
just for trouble shooting uncomment
wins server = transam
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind separator = +
printing = cups
and add the statement

on global settings

domain logons = yes


after that as root open a shell

and create user on the samba server

here some nice links with grafics on How to:

http://www.troubleshooters.com/linux/samba.htm

and here is the best tutorial on the net

http://www.mandrakeuser.org/docs/con...mba6.html#conf

enjoy
 
Old 01-03-2003, 08:10 PM   #5
Joshsawyer77
LQ Newbie
 
Registered: Dec 2002
Location: Milwaukee
Distribution: Mandrake
Posts: 22

Original Poster
Rep: Reputation: 15
I think you have me wrong I dont want to use samba as the PDC I have a NT PDC.
I want to use My NT accounts to browse shares on the linux box. I tried to use winbind and every thing seems to work. I get use "getent -u or g" and I get all the acounts from my NT domain. My problem is that these users can not open or create dir on the linux machine. I get access denied error when attemting from a windoze machine.
Then I thought I would use pam to authenticate users from the NT Domain. I have looked at about 200 hundred sites that describe how to do this and each of them have diffrent directions. I need to find a site or some one that has done this so I can get some insite on pam_windbind.so and what I need to do to make it work.
 
Old 01-03-2003, 08:15 PM   #6
balam
Member
 
Registered: Nov 2002
Location: us
Distribution: red hat
Posts: 143

Rep: Reputation: 15
so you can see the linux box on the Neighboorhood, if so,
I had the same problem , I couod see the linux box, and on double click I got the access deny and other error messages. my problem was the fire wall, I set up Hign, and I did not make the Nic card a trust device. after resetting the fire wall, I was able to do what I suppost to do.

Hope that helps
 
Old 01-03-2003, 08:35 PM   #7
Joshsawyer77
LQ Newbie
 
Registered: Dec 2002
Location: Milwaukee
Distribution: Mandrake
Posts: 22

Original Poster
Rep: Reputation: 15
I dont hava a firewall in the lab. And yes I can see the the Linux box in Neighboorhood. browse the shares I just can not change the permissions through NT or add or remove files from any win2k computers on the network. is there a log file that writes down the reason for denial? I looked in var/logs but did not see any thing that pointed out a problem. I do thank you, you are the first one in a week to try to help me.
 
Old 01-03-2003, 09:17 PM   #8
balam
Member
 
Registered: Nov 2002
Location: us
Distribution: red hat
Posts: 143

Rep: Reputation: 15
Could you explain abit more please

do you whant publish a share (samba share) on a nt box(server)
if so so far is possible using samba 3.x still alpha, I have been tested so far works good, but to publish shares on the a windw$ domain need extra features like a Kerberos server and Ldap server.

so please explain your problem with more detalles
 
Old 01-03-2003, 09:20 PM   #9
balam
Member
 
Registered: Nov 2002
Location: us
Distribution: red hat
Posts: 143

Rep: Reputation: 15
forgot, yes , there is a log file, (need to create the folder first)

according to smb.cong log file = /var/log/samba/log.%m
 
Old 01-03-2003, 10:35 PM   #10
Joshsawyer77
LQ Newbie
 
Registered: Dec 2002
Location: Milwaukee
Distribution: Mandrake
Posts: 22

Original Poster
Rep: Reputation: 15
My main goal is to have Unified Logons between Windows NT and LINUX using Winbind.
Right now my main problem is that I can browse directories but I can not add files or dir in the share. I can view the permissions sent on a dir but I can not modify them.
I have read and set up my pam and smb configuration just like it says in the samba documentaion for " Unified Logons between Windows NT and UNIX using Winbind" bet yet I still can not logon using my NT domain user accounts.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration