![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
||||
|
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. |
|
||||
|
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.
|
![]() |
| Bookmarks |
| Tags |
| unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|