Computing.Net > Forums > Solaris > Login Messages

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Login Messages

Reply to Message Icon

Name: Param Krish
Date: April 24, 2002 at 12:15:54 Pacific
Comment:

Hi

I want only one of the user to have a separate .profile, and some login messages. This is not for everyuser. I am running Solaris 8 on Sparc. If i did setup a shellscript to get executed in the .profile automatically when the user logins in, it looks like i cannot remove access from .profile to that user. If i give no access, it does not get executed. what should i do? A shell script requires Both Read & Execute access , is it? Why not only a execute access?? i dont want anyone to read it..
Moreover, if i remove Read access from the .profile, i found, the user can easily rename the file and hence, the very purpose of the shell script called from the .profile is also failing..

Is there a solution to implement the same in another way??



Sponsored Link
Ads by Google

Response Number 1
Name: PaulS
Date: April 25, 2002 at 07:59:20 Pacific
Reply:

If you want to limit a user's environment, you may want to set up a restricted shell. Take a look at the man page on rsh (/usr/lib/rsh). The implication is that you could create a .profile that would cd to a restricted home directory, set a path for only restricted commands, and so on. You might also be able to trap signals (interupt) in the .profile to prevent the person from doing a ctl-c.

But I don't think you can do much with changing permissions.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Login Messages

Login Notification Messages www.computing.net/answers/solaris/login-notification-messages/4970.html

console login problem www.computing.net/answers/solaris/console-login-problem/3595.html

Login Problem www.computing.net/answers/solaris/login-problem/3301.html