hii
How do i stop the .profile from loading when i login into a restricted
shell ( rksh )
peace
How do i stop the .profile from loading when i login into a restricted
shell ( rksh )
peace
--
GTE Internetworking, Powered by BBN, Cambridge, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
> Why would you want to? That's where you normally configure what his
> restrictions are.
The simple way would be to simply remove ~/.profile, or to do something
similar to
if [ "$SHELL" -eq "-rksh" ]
then
echo .profile not loaded!
else
# entire .profile goes here
fi
--
5th year Business & Computing Science student left blank
URL: http://www.stack.nl/~galactus/ PGP: 0x416A1A35 intentionally.
^^^Quote:> if [ "$SHELL" -eq "-rksh" ]
--Quote:> then
> echo .profile not loaded!
> else
> # entire .profile goes here
> fi
Bogonics: the primary language inside the Beltway
Because, normally, .profile is owned by the user, and thus the userQuote:> Why would you want to? That's where you normally configure what his
> restrictions are.
> --
> GTE Internetworking, Powered by BBN, Cambridge, MA
> *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
____ __ __ http://tom.cc.wayne.edu ftp://tom.cc.wayne.edu
/ /_/ /_ VMail: (313) 577-4742 Fax: (313) 577-5626
/. /\. __/. PGP Key: http://bs.mit.edu:8001/pks-toplev.html
"A common mistake that people make when trying
to design something completely foolproof was Douglas Adams
to underestimate the ingenuity of complete Mostly Harmless
fools."
1. Restricted shells in HP-UX 10.20 (rksh)
My scenario is:
I have two separate type of users: ITOE (Information Technology Office
Employees) and regular users. The ITOE users have full access to the
environment. All of the regular users have a restricted shell and when they
log in, they see various information that I have edited into their
$HOME/.profile. The problem I am having is that I have to copy a .profile
that is specific to those users every time I add a user to the environmnet.
My question(s) is/are:
Is there an easier way to do this?
Is there a way to specify where the .profile comes from?
Thanks for your help.
Please send responses to:
2. Top 10 posters comp.unix.shell
3. X logins & Restricted Shell (rsh5 or rksh)
5. where is rksh (restricted shell)
7. Help! - Restricted shells in HP-UX 10.20 (rksh)
9. Restricted shells in HP-UX 10.20 (rksh)
10. Restricted shell, .profile - Help
11. Restricted Shell Script for Free Shell
12. "Screen" prgram: New shells won't read /etc/profile or ~/.profile?
13. restricted shell/restricting login