Why copied file permission is changed in destination. When i
give all permission i.e 777 to file and copy that to other
location in destination the permission is 755. But if give
permission 555 in destination that file permission is 755
and if give permission 444 to file after copy in destination
the file permission is 444. These all are happening in
normal user. How the umask value is calculate here really i
am not understand. Please every body and wite the proper
answer. Thanks in Advance
Answers were Sorted based on User's Feedback
Answer / gowri
for file with permission 777 and with default umask 022 it
gets (777-022=755) so the permission changes to 755.
bt if a file with permission 444 and default umask 022 (444-
022=422) here it makes no sense with 422 permission so it
doesnt change and permission remains the same 444.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ratikant
owner group other
rwx----------------rwx-------------------------rwx
421----------------421-------------------------421
when umask is 022---------->
as it is -----------(-write)--------------------(-write)
------------------------w-------------------------------w
so when permission is 444--->
r-- r-- r--
umask 022
--------------------------------------------------
result is 444
Is This Answer Correct ? | 0 Yes | 0 No |
What are the daemons will run when the system is booting?
What are processing daemon in nis
please post step by step installation of packages from the EIS cd..
How may will you find the process id and disk utilizations.
In an NIS environment if user forgot is password, then as an admin what you will do?
What are the Patch Management Issues you have faced and how did you resolve them?
Explain about init phases
How to mirror a root dg? With eg
Hello Everyone, One of our servers is showing a strange issue, let me paste the output Code: root # uptime 4:37pm 3 users, load average: 0.00, 0.04, 0.04 Its been running since months but you can see after time there isn't any output like up 191 days(s). Even the who command with b and r option isn't giving any output. Code: root # who -b root # root # who -r root # the date command displays correct output. I am not sure but is it because someone has played with utmpx and wtmpx files, is reboot the only solution we have. Can anyone help us since we don't intend to reboot the server for such a reason and also no one has complained till yet.
When iam checking the services its showing unintialized then what should i do step by step.pls tell me the answer as soon as posible.
What is the difference between container and zones?
How many fields in passwd, shadow and group files