Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Environment discovery under Linux

by graff (Chancellor)
on Oct 01, 2008 at 04:46 UTC ( [id://714707]=note: print w/replies, xml ) Need Help??


in reply to Environment discovery under Linux

Um... If you are talking about users on a network of linux machines, and determining what shell gets invoked when people login or otherwise connect, wouldn't you just look at the entry for the given user in /etc/passwd? That is what sets the login shell.

If it's a matter of warning users about the risks starting up other shells after they are logged in/connected, that should be in the text of "/etc/motd" ("message-of-the-day"), which gets displayed at login (before the initial shell prompt). But as for controlling shell behavior at login, /etc/passwd handles that.

(Or maybe I'm completely missing the point about your question...)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://714707]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-28 18:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found