Removing permissions from all users including owner


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Removing permissions from all users including owner
# 1  
Old 06-18-2013
Removing permissions from all users including owner

Hello all:

I will include a "requirement" for an issue I am attempting to solve for my boss. Basically, he would like to know if there is a way to prevent users and owner from editing 'write' script in Vi.

- While working in Unix Vi, users would be able to keep all the previous versions of the script being edited. If an attempt is made to edit a script from command line (using Vi), an error message should be shown, coaxing the user to edit the script from a Windows Sub-version environment. The user, however, should be able to read and execute script.

I am not a Unix user at all, so I do not know much terminology dealing with the subject. If anyone knows of any plug-ins or any ways to make this permission restriction possible, I'd greatly appreciate your comment! Thanks.
# 2  
Old 06-18-2013
On what operating system is "vi" being executed?
# 3  
Old 06-18-2013
Unix Smilie

---------- Post updated at 12:56 PM ---------- Previous update was at 12:53 PM ----------

sorry, windows xp professional 2002 is what my computer runs. The developers' may be different, but I doubt it
# 4  
Old 06-18-2013
Unix is not so much an operating system. It is a standard upon which organizations and companies base their own systems.

Post the output of below command:
Code:
uname

# 5  
Old 06-18-2013
"Unix" is a very broad term. Can you run uname -a from the prompt that is used to launch "vi"?
# 6  
Old 06-18-2013
Unix-AIX
# 7  
Old 06-18-2013
It would really help if you posted the actual output of uname -a...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Permissions on a directory in /home for all users

Hi, I have created a shared directory on /home, where all users on a certain group have read, write and execute permissions. I did this using chmod -R g+rwx /home/shared/ The problem is, when a particular user creates a directory within /home/shared, other users are not able to write to... (8 Replies)
Discussion started by: lost.identity
8 Replies

2. Shell Programming and Scripting

Script for adding users to file permissions

I need a script to add the following two users ids to the permissions for various files: IIS_WPG and IUSR_CowGirl. I am fairly familiar with scripting but haven't been able to figure out how to do this via a script. Manually doing it is slow. I don't want to create users but only add them to a... (2 Replies)
Discussion started by: Stu Loventhal
2 Replies

3. Windows & DOS: Issues & Discussions

Script for adding users to file permissions

I need a script to add the following two users ids to the permissions for various files: IIS_WPG and IUSR_CowGirl. I am fairly familiar with scripting but haven't been able to figure out how to do this via a script. Manually doing it is slow. I don't want to create users but only add them to a... (2 Replies)
Discussion started by: Stu Loventhal
2 Replies

4. UNIX for Dummies Questions & Answers

Using find to search for any owner having execute permissions.

Hi I need help. I need to use find (or grep I don't care) to recursively search for files who have any kind of executable permissions (group and/or owner and/or other). I am looking for *.c and *.h This what I am using now: find . -name *.h -perm -111 -print but I don't want to retype that... (4 Replies)
Discussion started by: dissectcode
4 Replies

5. OS X (Apple)

Permissions appear different for local and OD users

If I look at the permissions of a folder on a network share while using a local admin account on my computer, then authenticating as a open directory user to connect to the share, they appear completely different than if I had logged in as an OD user and looked at it, it also appears different from... (0 Replies)
Discussion started by: glev2005
0 Replies

6. UNIX for Dummies Questions & Answers

can I assign permissions only for some users ?

I know how to change permissions for the owner, group or others. if I want a file readable for a group A of users and writable for a group B how can I do it ? thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies

7. UNIX for Dummies Questions & Answers

different permissions to different users

Hi, how can I assign different permissions to different users in unix ? I want to allow userA to read a specific folder and deny read permission to userB thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies

8. UNIX for Dummies Questions & Answers

How to copy owner permissions to group

Hi, I need a command or a script to change the group permissions to be the same as the owner permissions for all my files and directories (recursive) any idea ? (4 Replies)
Discussion started by: ynixon
4 Replies

9. Shell Programming and Scripting

determine owner directory permissions from within the directory

From within a directory, how do I determine whether I have write permission for it. test -w pwd ; echo ? This doesn't work as it returns false, even though I have write permission. (4 Replies)
Discussion started by: Sniper Pixie
4 Replies
Login or Register to Ask a Question