HELP changing file permissions


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting HELP changing file permissions
Prev   Next
# 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.
 
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
errors(4)						     Kernel Interfaces Manual							 errors(4)

NAME
errors - Contains a record of uucico daemon errors SYNOPSIS
/usr/spool/uucp/.Admin/errors DESCRIPTION
The /usr/spool/uucp/.Admin/errors file contains a record of uucico daemon errors that the uucp program cannot correct. For example, if the uucico daemon is unable to access a directory that is needed for a file transfer, the uucp program records this in the errors file. If debugging is enabled for the uucico daemon, the uucp program sends the error messages to standard output instead of to the errors file. EXAMPLES
Following is the text of an error that might appear in the errors file: ASSERT ERROR (uucico) pid: 303 (7/18-8:25:09) SYS- TAT OPEN FAIL /usr/spool/uucp/.Status/ (21) [SCCSID: @(#)systat.c 7.2 87/07/08 16:43:37, FILE: systat.c, LINE:100] This error occurred on July 18 at 8:25:09 a.m. [(7/18-8:25:09)] when the uucico daemon, running as process 303 [(uucico) pid: 303], could not open the /usr/spool/uucp/.Status directory [SYSTAT OPEN FAIL /usr/spool/uucp/.Status/]. To prevent this error from occurring again, you should make sure the permissions for the .Status directory are correct. It should be owned by the uucp login ID and group uucp, with permissions of 777 (read, write, and execute for owner, group, and all others). FILES
Contains the errors file and other uucp administrative files Lists the last time a remote system was contacted and the minimum time until the next retry RELATED INFORMATION
Commands: uudemon.cleanu(4) Daemons: uucico(8) delim off errors(4)