Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: A fix for users disappearing from the login window' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: A fix for users disappearing from the login window
Authored by: kaih on Jul 30, '05 05:08:29AM

I haven't tested this again in Tiger, but in 10.3 and previous, any user account with UID of less than 500 also won't show up in the Login Window.
Not exactly a solution to your problem, but worth keeping in mind also if you want to hide user accounts

Rather than using /usr/bin/false, you can get scponly from a variety of sources - my personal favourite method is Darwin Ports - port install scponly.

This provides a shell that can be used as the login shell so a user can't log in interactively, however can scp/sftp files to/from their account...

Cheers,
Kai

---
k:.



[ Reply to This | # ]
10.4: A fix for users disappearing from the login window
Authored by: magnamous on Aug 01, '05 04:13:58AM
I've actually been playing with that method in NetInfo on 10.4 this evening, and it doesn't seem to work any more. I had one user's info set like this:

shell /bin/bash
uid 504

I changed it to:

shell /bin/bash
uid 400

But it didn't seem to produce the desired effect (that is, it was still visible in the Login Window). Then I changed it to this:

shell /usr/bin/false
uid 400

When I went to the login window, that user had disappeared from the list. And then I changed it to this:

shell /usr/bin/false
uid 504

Which also worked. However, when I changed it to this:

shell /sbin/nologin
uid 504

The user re-appeared in the Login Window list.

I would prefer to be able to use /sbin/nologin because of the error message it gives, but then the user is visible in the list. I wish there was a way to have my cake and eat it too: I want /sbin/nologin as the shell, but I want to be able to set whether the user is visible in the list or not independently from the shell variable. :P

[ Reply to This | # ]