![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to change permissions only to files, not directories....? | narrok | UNIX for Dummies Questions & Answers | 3 | 12-13-2008 03:55 AM |
| How to change name for N number of files | kamathg | Shell Programming and Scripting | 6 | 08-08-2007 08:35 AM |
| Change permission for directories and files | mingfei2006 | Shell Programming and Scripting | 1 | 08-23-2006 08:00 AM |
| My device files change!!!! | lenux78 | Red Hat | 2 | 07-13-2006 10:07 AM |
| How do I change ownership of a directory and all of it's files. | mborin | UNIX for Dummies Questions & Answers | 1 | 02-25-2001 06:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how to change mod of files
hi everyone
I have a directory /usr5/sch. The shell is /bin/csh/. In this directory, I have a script called cs-claims-tst that runs an object cobol that going over a few other directory and open files and inserting them to d.b! If i run this script from its current directory, it works o.k, but I have another directory /usr2/hafala. And i did like this: cd /usr2/hafala ln -s /usr5/sch/cs-claims-tst When I run the script in this directory, (shell(/bin/csh)) it's not open my directories unless I will do chmod 777 for the files in all the directories (something like 20). My question is, why doesn't he recognized it My second problem: if there is not solution for this problem that means that I need to go to account call manager and do chmod 777 for the directories from their and i don't know how to do this because the shell in the manager is /usr/bin/ksh. please someone help me to solve the problem thank's a lot Last edited by RTM; 03-22-2006 at 03:25 AM.. Reason: Formatting to be able to read it |
|
||||
|
hi everyone
thanks for your answers! doing like this ls -ld /usr5/sch drwxrwxrwx 13 sch other 151552 Mar 23 13:24 /usr5/sch ls -ld /usr2/hafala drwxrwxrwx 3 hafala other 10240 Mar 22 14:23 /usr2/acct/hafala it's very strange because when i'm creating files in /usr2/hafala the group is ext_cust When i did id in both directories i got something like this uid=245(sch) gid=1(other) however i know what is chmod and i know all the options but when i did the link it's just dont open the files until i will do chmod commnd which if i need to do it i want that it will be part of the script that i'm running how to do it (maybe with rlogin to the user that i can chng the mod?) maybe i should do a hard link ? please help me here ? Last edited by RTM; 04-23-2006 at 11:55 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|