![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CIACTech02-002: Microsoft Browser Helper Objects (BHO) Could Hide Malicious Code | iBot | Security Advisories (RSS) | 0 | 12-24-2007 09:40 AM |
| How to embed shell script in a awk code | rajbal | Shell Programming and Scripting | 8 | 09-28-2006 04:19 PM |
| Can anyone find a bug in this code?? shell script | amon | Shell Programming and Scripting | 1 | 09-19-2006 02:11 AM |
| Capture Oracle return code in shell script | Vikas Sood | Shell Programming and Scripting | 1 | 05-22-2006 05:32 PM |
| How to hide user inputted text for interactive unix shell script? | patrickpang | Shell Programming and Scripting | 1 | 04-04-2006 08:42 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|||||
|
Chmod 777 means everyone can read, edit and execute the file. If you want to prevent others from reading the file, you can use something else with the chmod command, like "chmod 711 file" which will make the file executable for everyone, but only able to be read or edited by you, the owner.
|
|
|||||
|
Quote:
Nevertheless, I agree with you that putting passwords in a script is asking for trouble. Time constraints and little knowledge of shell scripting (I am teaching myself) leave me with no other option for the time being. Al. |
|
|||||
|
Quote:
For all my tests, I -"physically" logged in as user A, ran the script, logged off -"physically" logged in as user B, ran the script, logged off -... Not sure if makes a difference....? |
|
|||||
|
This is very odd. Yes, my uname -r is B.11.00.
What is the first line of your script? I have: #! /usr/bin/ksh Could you post the results of a ls -ln script or whatever you called your script. And a id -u The numeric uids control access. If your current uid as displayed by "id -u" is not zero or equal to numeric uid that owns the script you should not be able to run it. Unless the interpreter itself is suid to either root or the owner of the script. My ksh is 555. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|