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

How to configure domain controller in SAMBA using SOLARIS 10 OS and How to centralize domain name and creating users.How to share files for WINDOWS XP clients

1 Answers   IBM,


How to configure mirror with hot spare in vxvm I know how to create mirror with vxassist: #vxassist -g <diskgroup name> make <volume name> <vol size> layout=mirror I know how to create hot spare with vxedit #vxedit -g <diskgroup name> set spare=on diskname but i don't how to attach hot spare to mirror? can some one plz help in this issue.. Thanks & Regards, SaiKrishna. kanuparthi_sai@yahoo.com my alternate E-Mail id: ksaikrishna7@gmail.com

2 Answers   Wipro,


What are configuration files and to configure it in VCS

2 Answers  


What is the purpose of ha daemons in VCS servers?

4 Answers  


How to bring the resource to online and offline

2 Answers  






one guy asking how to grow disk size in SDS? what is SDS?

2 Answers   TCS,


How can we take the failback in Veritas Cluster Server.

1 Answers   ITC Infotech,


How to display the volume configuration information?

2 Answers  


Tell me some of the differences between Solaris and Sun OS?

8 Answers   Lucent,


what is interface in solaris

2 Answers  


How to stop the VCS

2 Answers  


How can u check parameters in ok boot prompt?

1 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)