i need my script1.sh to generate /tmp/temp.txt with full permissions i.e
But the script1.sh generates temp.txt with different permissions as shown below.
I tried umask 600, 000 but they also did not help.
The reason i wish to give complete permissions is; so that other user executing script1.sh should not get the /tmp/temp.txt: Permission denied error.
You do realize that umask only has an effect when creating a new file, don't you? To change the mode of an existing file, use chmod mode file...; not umask.
But, we know that the data you're showing us above was for a case where /tmp/temp.txt already existed and we know that your latest update to that file was not performed by the echo command you showed us. If the file had not already existed and you used the above commands, the output from ls -l would have been:
not:
This User Gave Thanks to Don Cragun For This Post:
hello every body
AIX 4.3.3, i want to set a write permission to files created by other users from windwos explorer or other AIX box in nfs files systems.
how can i do this
any helps will be appreciated (0 Replies)
Hi!
My question is this:
Is it possible to change the default permissions in UNIX (666 for files and 777 for directories)?.
I am not talking about using the command "umask".
I mean, with the command "umask" you can modify permissions from a default permissions x. Is it possible to make... (4 Replies)
Hello people
I need to find a way to generate a file that contains the names of all *.jpg files that were generated after a specific date
The search should start in my current folder and recursively search inner folders
It would be best to list the file names one below the other in the output... (3 Replies)
I have a file with permisson 711; but when an other user run the program, it can't open. This is the message:
/sbin/sh: ./myprogram: cannot open
Can any1 tell me why please?
Thanks! (6 Replies)
Hi expert,
I would like to know how to generate file and folder ( including nested subfolder and files) permissions under oracle directory ? (8 Replies)
Hi guys
I really want to know about the consequence of giving following command, on solaris 10 (sparc.)
What would be effect of this on whole system and services running on system and what commands will be required exactly to get back the original perms .
I recently tried above command... (3 Replies)
I'm getting to grips with this concept of the umask.
What I thought was, setting umask uga+rwx would result in creating files with all permissions for everyone. Seems not to be the case though. Read and write bits get set, but not the execute bit.
Is there some gap in my understanding, or is... (2 Replies)
I've got a number of people sending files to me in different directory structures, and users on many different groups who need access to these incoming paths.
My problem is that umask assumes a default of 666 for files. No execute bit, meaning that my users can't even see the incoming folders.... (2 Replies)
I want to create a GROUP with rwx permission. Also, I want to create a GROUP with root privileges, so that next time i create a user, I just need to add it to any of the groups and privileges automatically applied.
please help.
Thanks,
Shouvanik (4 Replies)
Dear Gents,
Please I need your help... I need small script :) to do the following.
I have a thousand of files in a folder produced daily.
I need first to merge all files called. txt (0009.txt, 0010.txt, 0011.txt) and and to output a resume of all information on 2 separate files in csv... (14 Replies)