Is it possible to deny a user to use Vi editor in Solaris?

Hi,

I want to deny Vi editor to few users, is it possible to do the same in Solaris 10. If yes, then how?

Thanks in advance............

Yes, set ACL on the vi executable for the user and remove execute permission for any user you specify

1 Like

Better take away access to:

ed
sed
cat
cp
vim
dd

And every shell that can do redirection, too. And probably hundreds of other utilities, too.

Even then, you can't stop them from making a copy of vi (or those other utilities) from somewhere else, and running THAT.

If a user can write to a file, they can write to a file.

If you don't want them changing files, set the permissions on the file.

1 Like