rksh shell, how do i stop .profile from loading in restricted shell

rksh shell, how do i stop .profile from loading in restricted shell

Post by peac » Wed, 15 Jul 1998 04:00:00



hii

How do i stop the .profile from loading when i login into a restricted
shell ( rksh )

peace

 
 
 

rksh shell, how do i stop .profile from loading in restricted shell

Post by Barry Margoli » Wed, 15 Jul 1998 04:00:00



>How do i stop the .profile from loading when i login into a restricted
>shell ( rksh )

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.

 
 
 

rksh shell, how do i stop .profile from loading in restricted shell

Post by Galactu » Wed, 15 Jul 1998 04:00:00





> >How do i stop the .profile from loading when i login into a restricted
> >shell ( rksh )

> Why would you want to?  That's where you normally configure what his
> restrictions are.

Probably that's the point of the question, assuming "peace" is the
one who has to sit in the rksh.

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.

 
 
 

rksh shell, how do i stop .profile from loading in restricted shell

Post by Richard L. Hamilt » Thu, 16 Jul 1998 04:00:00




[...]
Quote:> if [ "$SHELL" -eq "-rksh" ]

                ^^^
                 =   for string comparison; -eq would be numeric
                     comparison, and would always return true with two
                     strings...

Quote:> then
>   echo .profile not loaded!
> else
>   # entire .profile goes here
> fi

--
ftp> get |fortune
377 I/O error: smart remark generator failed

Bogonics: the primary language inside the Beltway


 
 
 

rksh shell, how do i stop .profile from loading in restricted shell

Post by Thomas R. Stevens » Fri, 17 Jul 1998 04:00:00





> > How do i stop the .profile from loading when i login into a
> > restricted shell ( rksh ).

I wish I had an answer for you. Sorry.

Quote:> Why would you want to?  That's where you normally configure what his
> restrictions are.

Because, normally, .profile is owned by the user, and thus the user
can change their own restrictions. It's better to use /etc/profile for
setting up global user restrictions (we have 50,000+ users, and tring
to update 50,000 .profiles would be a nightmare!).

> --

> 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)

4. YCL Ethernet card

5. where is rksh (restricted shell)

6. How to print?

7. Help! - Restricted shells in HP-UX 10.20 (rksh)

8. Sound Card Problems

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