HELP changing file permissions


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting HELP changing file permissions
# 1  
Old 12-12-2008
HELP changing file permissions

does anyone know how to write a script that will change file permissions. because the Admin blocked me from altering any of my files im only allowed to read and i heard a script like this can bypass it but i dont know how to write it.


Display current users. Display user Ids only.

Display current process. Prompt the user to check all processes or a specific process. If the user selects all processes, display all process to the screen. If the user selects a specific user, display only those user processes.

Display a listing of the user’s directory and allow permission changes. Prompt the user to change filer permissions (y/n). If yes, prompt the user for the file name. Display the file’s permission. Ask the user to enter the add or remove the following permission: read the user, write user, execute user, read group, write group, execute group, read other, write other and execute other. After file permissions have been changed, display the file’s new permissions.

Display an alphabetized list of the users currently on the system.
# 2  
Old 12-12-2008
Quote:
does anyone know how to write a script that will change file permissions. because the Admin blocked me from altering any of my files im only allowed to read and i heard a script like this can bypass it but i dont know how to write it.
This seems to me like a violation, sorry if I have not understood that properly. Why should an admin block access, any reason behind that?
# 3  
Old 12-12-2008
Quote:
Originally Posted by matrixmadhan
This seems to me like a violation, sorry if I have not understood that properly. Why should an admin block access, any reason behind that?
well its kinda personal between me and him. its been an ongoin beef since the beginning of the school year. basically he tried to test my skills and i managed to get into his system so he made all my file read only and i have a program due tomorrow so i cant edit it since he made all my files read only.
# 4  
Old 12-12-2008
Quote:
well its kinda personal between me and him. its been an ongoin beef since the beginning of the school year. basically he tried to test my skills and i managed to get into his system so he made all my file read only and i have a program due tomorrow so i cant edit it since he made all my files read only.
This situation is kind of tricky, I will leave it to the mods/admins for the follow up.

[warn] this reply may or may not answer your question

Since read-access is available copy of the existing scripts should be possible to a temp location ( /tmp ) or atleast to user's home directory provided 'x' permission on directories that contain required files is not ceased by the admin.

In that case, a copy of the required file can be taken and still be edited as before.
# 5  
Old 12-12-2008
Quote:
Originally Posted by matrixmadhan
This situation is kind of tricky, I will leave it to the mods/admins for the follow up.

[warn] this reply may or may not answer your question

Since read-access is available copy of the existing scripts should be possible to a temp location ( /tmp ) or atleast to user's home directory provided 'x' permission on directories that contain required files is not ceased by the admin.

In that case, a copy of the required file can be taken and still be edited as before.
you read my mind. that was the exact same thing i did. it didnt work at all. like this guy is good. and he has alot of experience under his belt. so its difficult. i tried using some1 else unix account but no one wants to be held accountable for my actions.
# 6  
Old 12-12-2008
Quote:
it didnt work at all.
What didn't work? - copying the required files to a temp folder

Does that mean 'x' permission on directory was ceased?
# 7  
Old 12-12-2008
Why wouldn't your friends want to help you? There is more to this that you are telling. If you have violated some school policy on computer access then you have to deal with the consequences. A SysAdmin would not do this sort of stuff because you had a disagreement. If you feel this 'abuse' is unwarranted you should go to his manager or some school official and tell them that he is prohibiting you from doing your class assignments. You pay a tuition and part of that tuition goes to time allowed on the computer to do your assignments.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies

2. Shell Programming and Scripting

changing the permissions

HI, I wann give permissions to a folder which contains multiple folders..... how can i give permissions to all folder at a time tat means if i give permissions to main folder it the same permissions has to take on all the folders in the main folders how can i use one command to give... (1 Reply)
Discussion started by: nani1984
1 Replies

3. Homework & Coursework Questions

changing permissions of a file whos name was passed to 755

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a shell script that gives a passed file the "755" access permissions. The shell script should: Change... (5 Replies)
Discussion started by: anix007
5 Replies

4. Homework & Coursework Questions

changing permissions of a file whos name was passed to 755

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a shell script that gives a passed file the "755" access permissions. The shell script should: Change... (0 Replies)
Discussion started by: anix007
0 Replies

5. Cybersecurity

changing /cn@0:console file permissions

I'm doing a security sweep of a Sun Sol 5.8 system. The file: /dev/console, which links to /devices/pseudo/cn@0:console, has the following perms: crw--w--w- I would like to get rid of the world write permissions. I can change the file permissions, but as soon as log back in, they are changed... (4 Replies)
Discussion started by: ErnieG
4 Replies

6. UNIX for Dummies Questions & Answers

changing permissions on a 444 file (ie chmod 444)

if I have a file set to permisions 444 (r-- r-- r--) should anyone other than the owner and root be able to change these permissions or delete the file. Apologies if this is a no-brainer but I cant test it myself and someone in our organisation is playin around with files they shouldnt be (1 Reply)
Discussion started by: ajcannon
1 Replies

7. UNIX for Dummies Questions & Answers

Changing file permissions

Is there a way to change a unix user's default file permissions so that when he creates a file, by default permissions are 777??? Thanks! (7 Replies)
Discussion started by: FredSmith
7 Replies

8. UNIX for Dummies Questions & Answers

changing default file permissions

How can I change the default permissions that are assigned when I create a file? (By default the file has: -rw-r--r-- ..... I'd like it to be -rw-r----- How can I change this default behavior? (8 Replies)
Discussion started by: FredSmith
8 Replies

9. UNIX for Advanced & Expert Users

Changing file permissions on upload

Hello ! When I connect to a RH FTP server, the files I transfer (from my "windows computer") to this server have the following permissions : -rw------- but I would like those files to have the following permissions : - rw-rw-r-x How can I do that ??? :) Thanks for your help ! G. (6 Replies)
Discussion started by: guix
6 Replies

10. Shell Programming and Scripting

changing file permissions

Use the following to Change permission of fileB (fileB could be fileB*) to change its permission same as the permission of fileA. chmod `ls -l fileA | awk '{pr int "u+", substr($1,2,1), substr($1,3,1), substr($1,4,1), ",g+", substr($1,5,1), substr($1,6,1), substr($1,7,1), ",o+",... (0 Replies)
Discussion started by: gagansharma
0 Replies
Login or Register to Ask a Question