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



Why copied file permission is changed in destination. When i give all permission i.e 777 to file an..

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

Why copied file permission is changed in destination. When i give all permission i.e 777 to file an..

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

Post New Answer

More Solaris Commands Interview Questions

What are the daemons will run when the system is booting?

2 Answers   EDS,


What are processing daemon in nis

2 Answers  


please post step by step installation of packages from the EIS cd..

0 Answers   Wipro,


How may will you find the process id and disk utilizations.

7 Answers  


In an NIS environment if user forgot is password, then as an admin what you will do?

1 Answers   IBM,






What are the Patch Management Issues you have faced and how did you resolve them?

1 Answers   IBM,


Explain about init phases

4 Answers  


How to mirror a root dg? With eg

1 Answers  


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.

1 Answers  


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.

1 Answers   Wipro,


What is the difference between container and zones?

1 Answers   IBM,


How many fields in passwd, shadow and group files

2 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)