The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to change permissions in a certain directory? praveen_indramo UNIX for Dummies Questions & Answers 1 03-25-2008 12:07 PM
Change permissions of /var/log/messages anindra UNIX for Dummies Questions & Answers 3 11-05-2007 12:53 PM
need command to change permissions calredd UNIX for Dummies Questions & Answers 1 04-28-2007 01:53 PM
File Permissions change date kpatel SUN Solaris 4 04-25-2005 02:04 PM
How to change permissions in UNIX? a8111978 Filesystems, Disks and Memory 2 06-24-2002 03:40 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-14-2008
ponnuvel ponnuvel is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 2
Thumbs up How to change the permissions of ksh?

Suppose, I want to execute unix commands. For that I have to go to ksh, but if I don't have execute permission to ksh itself then is there any way to change the permission of ksh? chmod command does not work for this because, I don't have permission to ksh itself...
Let me know, if you have any idea.
  #2 (permalink)  
Old 04-14-2008
Heathe_Kyle Heathe_Kyle is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 15
If you don't have permission to execute ksh, then your administrator might have ksh locked down for some reason.

First, what shell are you running?

# echo $SHELL

Second, do you know the path to the ksh executable? What is the existing mode? On my system:

Code:
# whereis ksh
ksh: /usr/bin/ksh /usr/share/man/man1/ksh.1.gz
# ls -l /usr/bin/ksh
-rwxr-xr-x   2 bin      bin       315440 Dec  5  2006 /usr/bin/ksh

As you can see, the ksh file is executable by everyone. I can't think of a reason why your systems administrator would lock down ksh to a more restrictive mode. Give me an answer to the 2 questions I asked and we'll see where we can go from there.
  #3 (permalink)  
Old 04-15-2008
ponnuvel ponnuvel is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 2
ksh is not locked. I am working on a project where I am using a different shell rksh. If I want to go ksh then I will type a command & enter into ksh. but the problem is that the ksh is built in a binary CEC which I used to replace frequently. while doing it once, I moved the existing binary & placed a new binary then exited from ksh. But after that, from my rksh I can't execute anything as I don't have execute permission to the CEC binary. My rksh commands internally calls that CEC binary, so If I dont have x permission to CEC binary then there's no way except reinstallation.
  #4 (permalink)  
Old 04-15-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Is there another shell you can log into? Are there other users with accounts on the box who could help you?
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0