root can't log into SWAT
sphelps at ridgways.com.
Wed Nov 5 14:28:17 GMT 2003
On Tue, 2003-11-04 at 08:12, Alexander Bokovoy wrote:
> On Wed, Nov 05, 2003 at 09:07:16AM -0500, Scott Phelps wrote:
> > > > #%PAM-1.0
> > > > auth required pam_smbpass.so nodelay
> > > > account required /lib/security/pam_stack.so service=system-auth
> > > > session required /lib/security/pam_stack.so service=system-auth
> > > > password required pam_smbpass.so nodelay smbconf=/etc/samba/smb.conf
> > > Well, this PAM file does not need to be based on pam_smbpass actually. You
> > > can use just system-auth instead.
> > >
> > > >
> > > > BTW heres the output of my swat log:
> > > > [2003/11/04 05:00:16, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(189)
> > > > startsmbfilepwent_internal: file /etc/samba/private/smbpasswd did not
> > > > exist. File successfully created.
> > > > [2003/11/04 05:00:16, 0] auth/pampass.c:smb_pam_passcheck(810)
> > > > smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User root !
> > > > Does root need a smbpasswd entry?
> > > In your current configuration, yes, it needs -- because you have
> > > configured it to check password against smbpasswd instead of existing
> > > system database (shadow, probably).
> > Thank you very much! However, this is not the behavior I want. I just
> > want to check password against the shadow file _only_. How can I fix
> > this?
> Use proper PAM configuration for /etc/pam.d/samba. Note that this
> configuration file isn't for authenticating services through samba but for
> samba-based applications instead.
So is there a way I can make SWAT use shadow and samba users use
smbpasswd. This is weird because I am sure in the default installation
I had for 2.2.8 I did not have root in smbpasswd and was able to use
swat fine. Could you tell me exactly what I need to do to achieve this?
More information about the samba-technical