LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2004, 08:26 AM   #1
Micah
Member
 
Registered: Apr 2002
Location: OK, USA
Distribution: Slackware64 14
Posts: 180

Rep: Reputation: 31
Question I cannot login to SWAT


I have recently wiped my old SAMBA and re-installed the new one (3.0.2a)

My problem is that after I setup SWAT, I cannot login to it. It gives me a 401 (not authenticated error)

What is causeing this?

My system:
Pentium 166 w/MMX
Slackware 8.0 - updated heavily - uses 2.2.19 kernel (Got issues with 2.4.x and haven't tried 2.6.x)
No root password (Could this cause SWAT to fail?)
 
Old 02-19-2004, 08:27 AM   #2
Micah
Member
 
Registered: Apr 2002
Location: OK, USA
Distribution: Slackware64 14
Posts: 180

Original Poster
Rep: Reputation: 31
I forgot...
my shares work, I can login from the network and stuff...
everything but SWAT allows me to login.
and PAM isn't compile into SAMBA
(./configure --with-automount --with-smbmount --with-nisplus-home)

Last edited by Micah; 02-19-2004 at 10:25 AM.
 
Old 02-19-2004, 12:26 PM   #3
Micah
Member
 
Registered: Apr 2002
Location: OK, USA
Distribution: Slackware64 14
Posts: 180

Original Poster
Rep: Reputation: 31
Ack! Its Worse!

/etc/inetd.conf
swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat -a

/etc/services
swat 901/tcp

---------------------------
I just added the -a and it still won't let me log into SWAT!!!
(I even rebotted when I changed it)
--- Correction... I seemed to have not saved after I put the -a in the first time... =( - It now doesn't ask for ID... Not what I am wanting... =(

do I have something messed up? and where is the mistake?

Micah

Last edited by Micah; 02-19-2004 at 12:34 PM.
 
Old 02-19-2004, 01:12 PM   #4
Micah
Member
 
Registered: Apr 2002
Location: OK, USA
Distribution: Slackware64 14
Posts: 180

Original Poster
Rep: Reputation: 31
I got an answer!!! Took about 6 hours to get to it though...

<quote>
If you are using Linux to run SWAT, you must also add the following

information to be able to use SWAT in authentication mode. Because SWAT

is using the PAM (Pluggable Authentication Module) system, you need to

configure the PAM sub-system to be used by SWAT. So you will create a file

called samba in the /etc/pam.d directory. This file will contain

the following two lines :

auth required /lib/security/pam_pwdb.so nullok shadow
account required /lib/security/pam_pwdb.so
</quote>
src=http://samba.linuxbe.org/en/samba/learn/swat.html

For anyone else having this problem, it looks as though Linux using SWAT requires PAM installed.

Micah
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Swat delalynd Red Hat 12 01-12-2005 06:16 AM
root login failure on samba-swat strimp099 Linux - Networking 4 05-27-2004 05:24 AM
whats the login and password for my swat server? citrus Linux - Networking 5 04-23-2004 04:59 AM
Swat doralsoral Linux - Software 4 10-22-2003 12:17 PM
SWAT help Jase Linux - General 9 11-25-2001 08:14 PM


All times are GMT -5. The time now is 03:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration