what is the default permission for /etc/shadow file in UNIX
Answers were Sorted based on User's Feedback
Answer / sai kiran
-rw------- 1 root root 1421 Oct 10 22:40
/etc/shadow
600
| Is This Answer Correct ? | 8 Yes | 7 No |
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include<stdlib.h> # include <stdio.h> int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:
What is the unix command to confirm a remote host is alive or not?
How do you know about running processes of a particular user?
How to get the operating system's information in unix?
In vi editor how do you execute unix commands?
What do chmod, chown, chgrp commands do?
How can you create a symbolic link to a file or directory?
How to display a file name which has zero bytes in size.
in UNIX ,What is the command to view contents of a large error log file?
How to convert a hidden file to normal visible file?
How to know a process is a zombie or orphan process?
How do you execute a UNIX command in the background?