LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   PAM config for SAMBA (https://www.linuxquestions.org/questions/linux-networking-3/pam-config-for-samba-148623/)

Micah 02-20-2004 11:19 PM

PAM config for SAMBA
 
I have recently installed PAM 0.77 (I think) and SAMBA 3.0.2a

The only thing PAM is setup for is SAMBA (currently)

When I login to SWAT (the problem only lies here) I cannot login as ROOT or myUserAccount (both have no passwords)... I created another account called sample with a password of sample and it logs into SWAT perfectly!

What do I need to put in my smb.conf OR/AND /etc/pam.d/samba file?

Current /etc/pam.d/samba:
Code:

  auth    required    pam_unix.so
  account  required    pam_unix.so

Again: I can login as sample/sample but not root/[nopass] myUserAccount/[nopass]

I have been googling all day (Haven't checked the forms part yet...)

Micah 02-21-2004 04:50 PM

Update
 
Ok, I have messed with my file for hours now...

It seems, with my current config (will post in an hour or two as my Laptop hasn't arrived yet) will allow ANY valid username to login with ANY password (Has to have a password though)

Not what I was looking for but it does confirm it is a PAM setting...

Could I get people with Slack, Debian, and other Distros to post your /etc/pam.d/samba files?

And I can't get pam_smbpass to compile - the readme says to use like Samba 2.2.?alpha2 (or somthing like that) and it says to just run make but I have no configs in that directory so I don't know whats up...

Also, this seems to be either new or just not documented... (LOL, I have found more info in Japanese than I have n English!)

Micah 02-21-2004 08:54 PM

Code:

  auth      required    pam_permit.so  nullok shadow    ## Normal users
  auth      required    pam_permit.so  service=system-auth  ## Normal users
  auth      sufficient  pam_unix.so    nullok              ## Blank pass usrs
  account    required    pam_permit.so  service=system-auth  ## Normal users
  account    sufficient  pam_unix.so                        ## Blank pass usrs 
  session    required    pam_permit.so  service=system-auth  ## Normal users
  password  required    pam_permit.so  nullok              ## Normal users


Micah 02-22-2004 01:59 AM

Ok all... I believe I have it working as well as it will...

Now, root and myOtherAccount with blank passwords can login as long as I enter something in for the password AND my other accounts that have actual passwords require the correct password! (I'll give root a password eventually =)

Here is my /etc/pam.d/samba file:
Code:

auth    required    pam_nologin.so  #does nothin?
auth    required    pam_env.so
auth    required    pam_unix.so    nullok use_authtok shadow
account  required    pam_unix.so 
password required    pam_env.so    nullok use_authtok shadow
password required    pam_unix.so    nullok
password required    pam_permit.so  nullok use_authtok shadow #Doesn't seem to get here

Also note: on each line I also have debug at the end...

I'm not sure which lines work, I was trying everything and this seems to work well enough for me now =)

I hope this helps Others in the future!!!

Micah


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