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:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. UNIX for Dummies Questions & Answers
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
3. Shell Programming and Scripting
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
4. 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
5. Solaris
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
6. 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
7. Linux
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
8. 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
9. UNIX for Dummies Questions & Answers
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
10. UNIX for Dummies Questions & Answers
Hi there,
For /etc/hosts.deny was it used to deny access from the internet? (2 Replies)
Discussion started by: alvinoo
2 Replies
LEARN ABOUT OPENSOLARIS
acltomode
acltomode(3SEC) File Access Control Library Functions acltomode(3SEC)
NAME
acltomode, aclfrommode - convert an ACL to or from permission bits
SYNOPSIS
cc [ flag... ] file... -lsec [ library... ]
#include <sys/types.h>
#include <sys/acl.h>
int acltomode(aclent_t *aclbufp, int nentries, mode_t *modep);
int aclfrommode(aclent_t *aclbufp, int nentries, mode_t *modep);
DESCRIPTION
The acltomode() function converts an ACL pointed to by aclbufp into the permission bits buffer pointed to by modep. If the USER_OBJ ACL
entry, GROUP_OBJ ACL entry, or the OTHER_OBJ ACL entry cannot be found in the ACL buffer, then the function fails with errno set to EIN-
VAL.
The USER_OBJ ACL entry permission bits are copied to the file owner class bits in the permission bits buffer. The OTHER_OBJ ACL entry per-
mission bits are copied to the file other class bits in the permission bits buffer. If there is a CLASS_OBJ (ACL mask) entry, the CLASS_OBJ
ACL entry permission bits are copied to the file group class bits in the permission bits buffer. Otherwise, the GROUP_OBJ ACL entry permis-
sion bits are copied to the file group class bits in the permission bits buffer.
The aclfrommode() function converts the permission bits pointed to by modep into an ACL pointed to by aclbufp. If the USER_OBJ ACL entry,
GROUP_OBJ ACL entry, or the OTHER_OBJ ACL entry cannot be found in the ACL buffer, the function fails with errno set to EINVAL.
The file owner class bits from the permission bits buffer are copied to the USER_OBJ ACL entry. The file other class bits from the permis-
sion bits buffer are copied to the OTHER_OBJ ACL entry. If there is a CLASS_OBJ (ACL mask) entry, the file group class bits from the per-
mission bits buffer are copied to the CLASS_OBJ ACL entry, and the GROUP_OBJ ACL entry is not modified. Otherwise, the file group class
bits from the permission bits buffer are copied to the GROUP_OBJ ACL entry.
The nentries argument represents the number of ACL entries in the buffer pointed to by aclbufp.
RETURN VALUES
Upon successful completion, the function returns 0. Otherwise, it returns -1 and sets errno to indicate the error.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
acl(2), attributes(5)
SunOS 5.11 10 Dec 2001 acltomode(3SEC)