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


 
Thread Tools Search this Thread
Operating Systems Solaris Is it possible to deny a user to use Vi editor in Solaris?
# 1  
Old 09-16-2011
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............
# 2  
Old 09-16-2011
Yes, set ACL on the vi executable for the user and remove execute permission for any user you specify

Last edited by Tommyk; 09-16-2011 at 06:56 AM.. Reason: clarify the answer
This User Gave Thanks to Tommyk For This Post:
# 3  
Old 09-16-2011
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.
This User Gave Thanks to achenle For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/etc/hosts.deny

Hi there, For /etc/hosts.deny was it used to deny access from the internet? (2 Replies)
Discussion started by: alvinoo
2 Replies

2. UNIX for Dummies Questions & Answers

Allow user@ip_good but deny user@any_other_ip in sshd.

Is it possible? Scenario: ALLOW only access from: userok@ip_good DENY access from userok@* and ALLOW acces from *@* Regards ISrael. (4 Replies)
Discussion started by: iga3725
4 Replies

3. Solaris

How to set VI editor column size on Solaris?

I am setting the size using "stty columns 120" . But I still get the prompt saying "terminal too wide " when I am in vi. is there any time limit for this setting? how to set the column size to 120 permanently? Thanks in advance, Devi (4 Replies)
Discussion started by: pvkdevi
4 Replies

4. Linux

Space bar issue in Vi editor on Linux - Solaris

Hi I have a process generating a file in Solaris. Now we have migrated the process to Linux. When we open the file in vi on solaris and hit space bar, it stops after reaching the end of line. But in linux it continues to go on the next line. So I want to know whether the difference is between the... (4 Replies)
Discussion started by: sudhamacs
4 Replies

5. Solaris

Installing a new text editor program on Solaris

I have installed a new text editor program on Solaris and now the only way to open it is via the command line (is that correct) So is there a way to like for example add an icon on the cde main menu so as like just click it and the program opens I am running Solaris 9 I am still a... (4 Replies)
Discussion started by: Theeb
4 Replies

6. Solaris

User entry in both cron.allow and cron.deny

Hello All, Anybody please help me to know ,what happens when a user having entry in both cron.allow and cron.deny files.Wheather the user will be able to access the crontab??? Thanks in advance Vaisakh (5 Replies)
Discussion started by: ksvaisakh
5 Replies

7. Solaris

Using vi editor with Solaris

When I try to edit a ( >100 lines) document using the vi editor I have problems with the screen clearing and "painting" new text. It looks as if I have not matched the terminal emulation between the server and my laptop emulator. I set the Solaris up as VT 100 as well as Terra Term. I get the same... (2 Replies)
Discussion started by: PigSnack
2 Replies

8. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

9. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

10. UNIX for Dummies Questions & Answers

Deny dba command to a user group!!

Dear all i am relatively new in using UNIX i have a problem, We are using IBM Informix Dynamic Server Version 9.40.FC7W4 we have 2 bsic user groups that we are using the 1st is root and another i wasnt to restrict the command "dba" that takes the users of that group to the database. I have... (3 Replies)
Discussion started by: masquerer
3 Replies
Login or Register to Ask a Question