Re: restrict login
Dumitru Ciobanu <[email protected]>
| Newsgroups | gmane.user-groups.linux.ottawa.general |
|---|---|
| Message-ID | <[email protected]> |
No, these users are "ldap usersers", so they don't have a local account, no entry in the /etc/passwd. On Fri, Oct 1, 2010 at 7:14 PM, Woogie <[email protected]> wrote: > Do users who have home directories set up also have an entry in > /etc/passwd? If so, you could use the pam_localuser module to restrict > access to users who are in /etc/passwd. It could be a simple cron-job > to sync the /home/* directories with /etc/passwd entries. > pam_localuser can also read from a specified file other than > /etc/passwd, if you don't want to be messing around with it. > > On Fri, Oct 1, 2010 at 6:54 PM, Dumitru Ciobanu > <[email protected]> wrote: >> Hi guys, >> >> I was wondering if anybody knows of a way of restricting logins for >> users that don't have a home directory setup. >> This is happening in an ldap environment (the linux boxes are ldap >> clients for Active Directory). We are running RHEL 5.5 and RedHat >> support has no clue if it's possible. >> Right know if the user does not have a home directory (or just bad >> permissions) it gets logged in and lands in /. >> In HP-UX for example one can tweak that through /etc/default/security. >> I'm looking for something similar in Linux or maybe some fancy pam module. >> >> Thanks in advance, >> >> Dumitru >> >> -- >> ===================== >> >> Dumitru Ciobanu >> [email protected] >> -- >> OCLUG general discussion list >> [email protected] >> http://oclug.on.ca/mailman/listinfo/oclug >> > > > > -- > Evil will always triumph, because good is dumb > -- > OCLUG general discussion list > [email protected] > http://oclug.on.ca/mailman/listinfo/oclug > -- ===================== Dumitru Ciobanu [email protected] -- OCLUG general discussion list [email protected] http://oclug.on.ca/mailman/listinfo/oclug