set ksh script in restricted mode


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting set ksh script in restricted mode
# 1  
Old 08-22-2012
set ksh script in restricted mode

Hi,

I came across a post wherein you can use "set -r"(on bash) to activate restricted mode ( wherein you cant run some commands such as cd etc).

Can anyone guide if we have anything similar in ksh ?

Thanks
# 2  
Old 08-22-2012
Used to be rksh...

and still is:
Quote:
User Commands ksh(1)

NAME
ksh, rksh - KornShell, a standard/restricted command and
programming language

SYNOPSIS
/usr/bin/ksh [+ abCefhikmnoprstuvx] [+ o option]...
[arg]...
# 3  
Old 08-22-2012
Google is your friend!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Set Edge Compatibility Mode for IE

hi i have code in iplanet webserver in obj.conf file <If $uri !~'^/app/literature/item/(.*)'> AuthTrans fn="set-variable" insert-srvhdrs="X-UA-Compatible:IE=EmulateIE8" </If> i want to migrate it to apache webserver need your help to replace the above code for apache webserver. i... (0 Replies)
Discussion started by: raghur77
0 Replies

2. Red Hat

set device mode permanently with udev rule

On a test server running CentOS 6, I try to permanently set the owner, group and mode of disk devices for use with a DB2 database. For this I created an udev rule file /etc/udev/rules.d/99-db2.rules: KERNEL=="sdb*", OWNER="db2usrl1", GROUP="db2adml1", MODE="0600" After a reboot, the owner and... (4 Replies)
Discussion started by: hergp
4 Replies

3. Linux

libtool compile mode,how to set include path?

Hi all I want to compile a source gt_util.c into a lo file, I use libtool gcc -g -O -c gt_util.c -I./include but it prompts me : cannot determin name of library object from 'include' how should I use the tool to compile a source to .lo file? Thanks. (0 Replies)
Discussion started by: steven_TTG
0 Replies

4. Shell Programming and Scripting

KSH script eval(?) to set variable

first of all, thanks to all on this board, it has been a huge resource to answer most of my questions! I am stuck on something that should really be simple, and was looking for some help.. I am using KSH on solaris and working on a script to move containers from server to server. Where i am... (4 Replies)
Discussion started by: tksol
4 Replies

5. Shell Programming and Scripting

ksh to bash mode

Hi guys... I have a ksh shell by default, so when I login to my unix box, all my .profile statements gets executed(including the aliases). But for some reasons(may be not comfortable using ksh), I would always switch to BASH(in the same session but as a child process) but in the process I am... (16 Replies)
Discussion started by: anduzzi
16 Replies

6. Shell Programming and Scripting

Ksh script - Design ? - Search file and set variables

Hi - I'm trying to think of a clever way to write a shell script (trying to stay w/ ksh as that's what I know the best...) that will resolve the following problem: Problem - On a daily basis I have to email folks who are on-call to remind them. I was hoping to script this out so I could have... (9 Replies)
Discussion started by: littlefrog
9 Replies

7. Solaris

How to set restricted user by rksh? Cannot use Perl module DBD::Oracle

Hi, all, I need to add a user to our system in order to let him use Oracle and Perl. We want him to remain in his home directory and have no access to our data and other users' files. I created a separate group for this user, and set his shell to rksh when I created his account, by which he... (2 Replies)
Discussion started by: alanlh
2 Replies

8. UNIX for Dummies Questions & Answers

Set User ID on execution mode.

I have a directory. To this directory, for Group bits combination, it is showing as 's'. Which I found out, it means "Set User ID on execution mode". Within this directory I am not able to create subfolder. Does it mean, only the Owner of this directory will be able to create subdirectories &... (5 Replies)
Discussion started by: videsh77
5 Replies

9. UNIX for Dummies Questions & Answers

ksh in vi mode, choose from output

is there a way to choose the complement from the output from the sequense in "ksh -o vi" root# ls testa testb root# cat tes 1) testa 2) testb root# cat tes <-- what to do now? this output looks like a select function, otherwise the numbers wouldn't make sense, is there a chance to use... (2 Replies)
Discussion started by: pressy
2 Replies

10. UNIX for Dummies Questions & Answers

restricted mode (solaris 8)

HI I was wondering how do i get in to the restricted mode in solaris > I can get into the ok prompt ok> or the fourth monitor mode but not the restricted mode > any ideas thanks (3 Replies)
Discussion started by: xNYx
3 Replies
Login or Register to Ask a Question