Operating System - HP-UX
1825747 Members
2878 Online
109687 Solutions
New Discussion

Re: restricting users to cat a file

 
ashwani_1
Occasional Contributor

restricting users to cat a file

Is there a way that i cat restrict a user to cat , more or vi a file by setting up in its .profile or by a shell script whn a user logs in .

I do not wish to change the permission of the file coz i have to give read permission in order to execute some binaries which takes input from this file ( text password file )
3 REPLIES 3
Suraj Singh_1
Trusted Contributor

Re: restricting users to cat a file

Go through the man pages of "setacl" command.

I think that is what u r looking for..

rgds
What we cannot speak about we must pass over in silence.
Robert Salter
Respected Contributor

Re: restricting users to cat a file

You might want to look into using 'rsh', restricted shell for the user. You can control which commands they can use. Do the users need command line access?

l8tr
Time to smoke and joke
HGN
Honored Contributor

Re: restricting users to cat a file

Hi

Like what Rob mentioned here rsh might be a good idea to consider and you can use -l option there. There are a lot of web pages which has more details about rsh.

Rgds

HGN