Re: How do I set the user's shell?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I am trying to implement a system that doesn't require an /etc/passwd,
> plus Winblows systems can authenticate against the system.  The
> authentication mechanism uses pam_mysql, which is fine and dandy, but that
> falls back to the /etc/passwd file for things like uid,gid,shell and home.
Which aren't authenication info - they are user info.  For
multi-platform work I'm told that LDAP and Radius are the way to go.

> Now, I want the option of putting that information in a database, and
> working off the database.  Is there a method that I would use to set the
> home directory/shell?  I can probably get away with setuid and setgid for
> the ID's, but am unfamiliar with the other methods (especially since all
> the examples I find say "the list says I shouldn't do this" and don't
> provide an example, and the actual developers guide says absolutely
> nothing about it either).
See nsswitch.conf(5) and the relevant subsection of the libc
documentation - it contains everything you need.

Sweet Dreams,
 - Martin
 
-- 
Martin
inkubus@xxxxxxxxxxxxxxxx
"Seasons change, things come to pass"


_______________________________________________

Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux