1748019 Members
4689 Online
108757 Solutions
New Discussion юеВ

Re: lockword for a file

 
Sriram Nadiminti
Occasional Advisor

lockword for a file

Hi
Can any one know how to set a password for execution of a given shell script
file?
I'm not looking for crypt.

In MPE the lockword can be kept while file creation time.

thanks
2 REPLIES 2
Dan Hull
Regular Advisor

Re: lockword for a file

There isn't a built-in way in Unix to set a password on a specific file. That's
what you use permissions for. Other than that, you would have to build a
password into the script itself. Just don't forget to disallow write
permissions to the file :)
Sriram Nadiminti
Occasional Advisor

Re: lockword for a file

Hi Thanks for your response.
I have seen a way to do this. eg., netscape admin startup can have a
lockword.

Also, as you said, if it is a script, and you could share, it would be quiet
helpful.

thanks in advance