1827730 Members
2899 Online
109968 Solutions
New Discussion

User profile

 
SOLVED
Go to solution
peterchu
Super Advisor

User profile

I use RH 8 now, I have a problem about the user login :
one of user is via rlogin to access the system ( not by telnet ), as I know all user login need to run the /etc/profile , is it possible to let the user not run the /etc/profile when login , but only run the user profile ? thx
4 REPLIES 4
Stuart Browne
Honored Contributor

Re: User profile

As far as I'm aware, no.

You either run profiles (all of them), or you don't.

By the same token, you can customize the user profile to remove options you don't want.
One long-haired git at your service...
Mark Grant
Honored Contributor
Solution

Re: User profile

You can cheat of course. Put something like the following at the top of /etc/profile

[[ $LOGNAME = user ]] || {

# The rest of /etc/profile goes here

}

Note the "}" at the end of /etc/profile.

It's a bit of a nasty hack though and theres probably a better way to achieve what you want.
Never preceed any demonstration with anything more predictive than "watch this"
Roberto Polli
Trusted Contributor

Re: User profile

try an empty /etc/profile ;-)

peace, r.
Olivier Drouin
Trusted Contributor

Re: User profile

...or put the code you dont want to run in the specific user profiles...